Files
navidrome/model/index.go
T
2020-01-17 20:54:28 -05:00

24 lines
404 B
Go

package model
type ArtistInfo struct {
ArtistID string
Artist string
AlbumCount int
}
type ArtistIndex struct {
ID string
Artists ArtistInfos
}
type ArtistInfos []ArtistInfo
type ArtistIndexes []ArtistIndex
// TODO Combine ArtistIndex with Artist
type ArtistIndexRepository interface {
Put(m *ArtistIndex) error
Refresh() error
GetAll() (ArtistIndexes, error)
DeleteAll() error
}