navidrome/model/artist.go

20 lines
391 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 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)
2020-01-16 22:53:48 +01:00
Refresh(ids ...string) error
}
2016-03-04 22:42:09 +01:00
type Artists []Artist