Refactor server handlers and routing to use a handler struct

This commit is contained in:
2025-07-17 21:46:26 +02:00
parent 1e962438bf
commit 6f571dd91c
4 changed files with 82 additions and 30 deletions

View File

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