Refactor instance management and add InstanceManager interface

This commit is contained in:
2025-07-18 17:53:22 +02:00
parent 40b020ff3e
commit b0873d5629
5 changed files with 185 additions and 24 deletions

View File

@@ -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
}