mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-28 22:44:59 +00:00
[Refactor]: Core/API Split (#1506)
Refactors api folder to core, creates firm split between backend code and api frontend.
This commit is contained in:
parent
bcf02449b3
commit
ab7b4d5ee9
77 changed files with 3441 additions and 3117 deletions
24
core/mqtt/manager.go
Normal file
24
core/mqtt/manager.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package mqtt
|
||||
|
||||
import (
|
||||
"github.com/go-skynet/LocalAI/core/services"
|
||||
"github.com/go-skynet/LocalAI/pkg/model"
|
||||
"github.com/go-skynet/LocalAI/pkg/schema"
|
||||
)
|
||||
|
||||
// PLACEHOLDER DURING PART 1 OF THE REFACTOR
|
||||
|
||||
type MQTTManager struct {
|
||||
configLoader *services.ConfigLoader
|
||||
modelLoader *model.ModelLoader
|
||||
startupOptions *schema.StartupOptions
|
||||
}
|
||||
|
||||
func NewMQTTManager(cl *services.ConfigLoader, ml *model.ModelLoader, options *schema.StartupOptions) (*MQTTManager, error) {
|
||||
|
||||
return &MQTTManager{
|
||||
configLoader: cl,
|
||||
modelLoader: ml,
|
||||
startupOptions: options,
|
||||
}, nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue