mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 09:04:27 +00:00
Refactor instance management and add InstanceManager interface
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
package llamactl
|
||||
|
||||
import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type Instance struct {
|
||||
ID uuid.UUID
|
||||
Port int
|
||||
Status string
|
||||
Options *LlamaServerOptions
|
||||
}
|
||||
|
||||
type InstanceManager interface {
|
||||
}
|
||||
|
||||
type instanceManager struct {
|
||||
instances map[string]*Instance
|
||||
}
|
||||
|
||||
func NewInstanceManager() InstanceManager {
|
||||
return &instanceManager{
|
||||
instances: make(map[string]*Instance),
|
||||
}
|
||||
Options *InstanceOptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user