Versions in this module Expand all Collapse all v1 v1.0.0 Jun 20, 2026 v0 v0.2.0 Jun 20, 2026 Changes in this version type GithubRelease + func CheckAppRelease() (*GithubRelease, error) v0.1.0 Jun 20, 2026 Changes in this version + func CreateBackup(src string, backupDst string) error + func DownloadRelease(url string, destPath string, progressChan chan float64) error + func ExtractArchive(archivePath string, destDir string) error + func GetMemoryUsage(pid int) (float64, error) + func MatchAsset(release *GithubRelease, specs *hardware.HardwareSpecs) (mainAsset *ReleaseAsset, cudartAsset *ReleaseAsset, err error) + func QueryLocalVersion(llamaCppDir string) (version string, commit string, buildInfo string, err error) + func QueryServerRequests(port int) (int, error) + func RollbackBackup(backupSrc string, dst string) error + type GithubRelease struct + Assets []ReleaseAsset + Body string + Name string + TagName string + func CheckLatestRelease() (*GithubRelease, error) + type InstanceInfo struct + LogFile string + ModelPath string + PID int + Port int + Uptime time.Duration + type ReleaseAsset struct + BrowserDownloadURL string + Name string + Size int64 + type ServerInstance struct + Cmd *exec.Cmd + LaunchTime time.Time + LogFile string + ModelPath string + PID int + Port int + type ServerRunner struct + func NewServerRunner(logDir string) *ServerRunner + func (sr *ServerRunner) GetAllInstances() []InstanceInfo + func (sr *ServerRunner) GetStatus() (ServerStatus, string, int) + func (sr *ServerRunner) Start(llamaCppDir string, modelPath string, ctxSize uint32, threads int, ...) error + func (sr *ServerRunner) Stop() error + func (sr *ServerRunner) StopInstance(port int) error + type ServerStatus int + const StatusFailed + const StatusRunning + const StatusStopped