Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache keeps lightweight per-library search snapshots in memory.
func (*Cache) Invalidate ¶ added in v0.3.0
Invalidate removes the cached search snapshot for a library.
type PersistedEntry ¶ added in v0.3.0
type PersistedEntry struct {
ItemID string
LibraryID string
MediaType string
Title string
Author string
Duration float64
PodcastTitle string
EpisodeID string
EpisodeTitle string
EpisodeDuration float64
SeriesID string
SeriesName string
PrimarySearchText string
SecondarySearchText string
CombinedSearchText string
FuzzySearchText string
PrimaryTokens []string
CombinedTokens []string
}
PersistedEntry is a gob-serializable representation of snapshotEntry.
type PersistedSnapshot ¶ added in v0.3.0
type PersistedSnapshot struct {
LibraryID string
MediaType string
BuiltAt time.Time
LastAccessedAt time.Time
Entries []PersistedEntry
}
PersistedSnapshot is a gob-serializable representation of a librarySnapshot for disk cache persistence.