quintodrome/model/index.go

25 lines
445 B
Go
Raw Normal View History

2020-01-14 18:22:34 -09:00
package model
2016-03-02 05:07:24 -09:00
type ArtistInfo struct {
ArtistID string
2016-03-27 16:13:00 -08:00
Artist string
AlbumCount int
2016-03-02 05:07:24 -09:00
}
type ArtistIndex struct {
2020-01-10 15:41:35 -09:00
ID string
2016-03-03 17:42:12 -09:00
Artists ArtistInfos
}
type ArtistInfos []ArtistInfo
2016-03-03 17:01:55 -09:00
type ArtistIndexes []ArtistIndex
2016-03-02 05:07:24 -09:00
type ArtistIndexRepository interface {
CountAll() (int64, error)
Exists(id string) (bool, error)
2016-03-02 05:07:24 -09:00
Put(m *ArtistIndex) error
Get(id string) (*ArtistIndex, error)
GetAll() (ArtistIndexes, error)
2016-03-26 18:29:26 -08:00
DeleteAll() error
2016-03-02 05:07:24 -09:00
}