Documentation
¶
Index ¶
- type DB
- 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
- type RecentEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) AddScanDir ¶
func (*DB) CreateInferenceEngine ¶
func (d *DB) CreateInferenceEngine(e model.InferenceEngine) error
func (*DB) DeleteInferenceEngine ¶
func (*DB) DeleteProfile ¶
func (*DB) GetInferenceEngineByID ¶
func (d *DB) GetInferenceEngineByID(id string) (model.InferenceEngine, error)
func (*DB) ListAllProfiles ¶
func (d *DB) ListAllProfiles() ([]ProfileEntry, error)
func (*DB) ListInferenceEngines ¶
func (d *DB) ListInferenceEngines() ([]model.InferenceEngine, error)
func (*DB) ListModels ¶
func (d *DB) ListModels() ([]model.ModelEntry, error)
func (*DB) ListRecentModels ¶
func (d *DB) ListRecentModels(limit int) ([]model.ModelEntry, error)
func (*DB) ListRecents ¶
func (d *DB) ListRecents(limit int) ([]RecentEntry, error)
func (*DB) ListScanDirs ¶
func (*DB) MarkModelUsed ¶
func (*DB) MarkRecent ¶
func (*DB) RemoveScanDir ¶
func (*DB) SetSetting ¶
func (*DB) SyncPerRoot ¶
func (*DB) UpdateInferenceEngineName ¶
func (*DB) UpdateInferenceEnginePath ¶
func (*DB) UpsertModel ¶
func (d *DB) UpsertModel(m *model.ModelEntry) error
type ProfileEntry ¶
type ProfileEntry struct {
Model model.ModelEntry
InferenceEngine model.InferenceEngine
Profile model.Profile
DraftModelName string
}
type RecentEntry ¶
type RecentEntry struct {
Model model.ModelEntry
InferenceEngine model.InferenceEngine
Profile model.Profile
DraftModelName string
}
Click to show internal directories.
Click to hide internal directories.