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

20 lines
391 B
Go

package model
type Artist struct {
ID string
Name string
AlbumCount int
}
type ArtistRepository interface {
CountAll() (int64, error)
Exists(id string) (bool, error)
Put(m *Artist) error
Get(id string) (*Artist, error)
PurgeInactive(active Artists) error
Search(q string, offset int, size int) (Artists, error)
Refresh(ids ...string) error
}
type Artists []Artist