Versions in this module Expand all Collapse all v0 v0.23.0 Aug 18, 2026 v0.22.0 Aug 18, 2026 Changes in this version + type DB struct + func Open() (*DB, error) + func (d *DB) AddScanDir(path string) error + func (d *DB) Close() + func (d *DB) CreateInferenceEngine(e model.InferenceEngine) error + func (d *DB) DeleteInferenceEngine(id string) (err error) + func (d *DB) DeleteProfile(id int64) error + func (d *DB) GetInferenceEngineByID(id string) (model.InferenceEngine, error) + func (d *DB) GetProfile(id int64) (model.Profile, error) + func (d *DB) GetSetting(key string) (string, error) + func (d *DB) ListAllProfiles() ([]ProfileEntry, error) + func (d *DB) ListInferenceEngines() ([]model.InferenceEngine, error) + func (d *DB) ListModels() ([]model.ModelEntry, error) + func (d *DB) ListProfiles(modelID int64) ([]model.Profile, error) + func (d *DB) ListRecentModels(limit int) ([]model.ModelEntry, error) + func (d *DB) ListRecents(limit int) ([]RecentEntry, error) + func (d *DB) ListScanDirs() ([]string, error) + func (d *DB) MarkModelUsed(id int64) error + func (d *DB) MarkRecent(modelID, profileID int64) error + func (d *DB) RemoveScanDir(path string) (err error) + func (d *DB) SetSetting(key, value string) error + func (d *DB) Sync(scanned []model.ModelEntry) (int, int, error) + func (d *DB) SyncPerRoot(scannedByRoot map[string][]model.ModelEntry) (int, int, error) + func (d *DB) UpdateInferenceEngineName(id, name string) error + func (d *DB) UpdateInferenceEnginePath(id, path string) error + func (d *DB) UpsertModel(m *model.ModelEntry) error + func (d *DB) UpsertProfile(p *model.Profile) error + type ProfileEntry struct + DraftModelName string + InferenceEngine model.InferenceEngine + Model model.ModelEntry + Profile model.Profile + type RecentEntry struct + DraftModelName string + InferenceEngine model.InferenceEngine + Model model.ModelEntry + Profile model.Profile