mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-07 01:24:27 +00:00
Refactor server handlers and routing to use a handler struct
This commit is contained in:
@@ -4,3 +4,16 @@ type Instance struct {
|
||||
Status string
|
||||
Options *LlamaServerOptions
|
||||
}
|
||||
|
||||
type InstanceManager interface {
|
||||
}
|
||||
|
||||
type instanceManager struct {
|
||||
instances map[string]*Instance
|
||||
}
|
||||
|
||||
func NewInstanceManager() InstanceManager {
|
||||
return &instanceManager{
|
||||
instances: make(map[string]*Instance),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user