Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericDBI ¶
type HistoryEntry ¶
type MediaDBI ¶
type MediaDBI interface {
GenericDBI
BeginTransaction() error
CommitTransaction() error
RollbackTransaction() error
Exists() bool
UpdateLastGenerated() error
GetLastGenerated() (time.Time, error)
ReindexTables() error
SearchMediaPathExact(systems []systemdefs.System, query string) ([]SearchResult, error)
SearchMediaPathWords(systems []systemdefs.System, query string) ([]SearchResult, error)
SearchMediaPathGlob(systems []systemdefs.System, query string) ([]SearchResult, error)
IndexedSystems() ([]string, error)
SystemIndexed(system systemdefs.System) bool
RandomGame(systems []systemdefs.System) (SearchResult, error)
FindSystem(row System) (System, error)
InsertSystem(row System) (System, error)
FindOrInsertSystem(row System) (System, error)
FindMediaTitle(row MediaTitle) (MediaTitle, error)
InsertMediaTitle(row MediaTitle) (MediaTitle, error)
FindOrInsertMediaTitle(row MediaTitle) (MediaTitle, error)
FindMedia(row Media) (Media, error)
InsertMedia(row Media) (Media, error)
FindOrInsertMedia(row Media) (Media, error)
FindTagType(row TagType) (TagType, error)
InsertTagType(row TagType) (TagType, error)
FindOrInsertTagType(row TagType) (TagType, error)
FindTag(row Tag) (Tag, error)
InsertTag(row Tag) (Tag, error)
FindOrInsertTag(row Tag) (Tag, error)
FindMediaTag(row MediaTag) (MediaTag, error)
InsertMediaTag(row MediaTag) (MediaTag, error)
FindOrInsertMediaTag(row MediaTag) (MediaTag, error)
}
type SearchResult ¶
type UserDBI ¶
type UserDBI interface {
GenericDBI
AddHistory(entry *HistoryEntry) error
GetHistory(lastID int) ([]HistoryEntry, error)
AddMapping(m *Mapping) error
GetMapping(id int64) (Mapping, error)
DeleteMapping(id int64) error
UpdateMapping(id int64, m *Mapping) error
GetAllMappings() ([]Mapping, error)
GetEnabledMappings() ([]Mapping, error)
UpdateZapLinkHost(host string, zapscript int) error
GetZapLinkHost(host string) (bool, bool, error)
UpdateZapLinkCache(url string, zapscript string) error
GetZapLinkCache(url string) (string, error)
}
Click to show internal directories.
Click to hide internal directories.