mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-07 01:24:27 +00:00
Implement start and stop instance logic
This commit is contained in:
@@ -5,15 +5,16 @@ import (
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
type InstanceOptions struct {
|
||||
Name string `json:"name,omitempty"` // Display name
|
||||
|
||||
// Auto restart
|
||||
AutoRestart bool `json:"auto_restart,omitempty"`
|
||||
MaxRestarts int `json:"max_restarts,omitempty"`
|
||||
RestartDelay int `json:"restart_delay,omitempty"` // in seconds
|
||||
AutoRestart bool `json:"auto_restart,omitempty"`
|
||||
MaxRestarts int `json:"max_restarts,omitempty"`
|
||||
RestartDelay time.Duration `json:"restart_delay,omitempty"` // in seconds
|
||||
|
||||
*LlamaServerOptions
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user