navidrome/model/artist.go

28 lines
613 B
Go
Raw Normal View History

2020-01-15 04:22:34 +01:00
package model
type Artist struct {
ID string
2016-03-28 02:13:00 +02:00
Name string
AlbumCount int
}
type Artists []Artist
type ArtistIndex struct {
ID string
Artists Artists
}
type ArtistIndexes []ArtistIndex
type ArtistRepository interface {
CountAll() (int64, error)
Exists(id string) (bool, error)
Put(m *Artist) error
Get(id string) (*Artist, error)
2020-01-22 05:01:43 +01:00
GetStarred(userId string, options ...QueryOptions) (Artists, error)
SetStar(star bool, ids ...string) error
Search(q string, offset int, size int) (Artists, error)
2020-01-16 22:53:48 +01:00
Refresh(ids ...string) error
GetIndex() (ArtistIndexes, error)
2020-01-18 05:28:11 +01:00
PurgeEmpty() error
}