quintodrome/domain/index.go

21 lines
334 B
Go
Raw Normal View History

2016-03-02 05:07:24 -09:00
package domain
type ArtistInfo struct {
ArtistId string
2016-03-02 09:18:39 -09:00
Artist string
2016-03-02 05:07:24 -09:00
}
type ArtistIndex struct {
2016-03-02 09:18:39 -09:00
Id string
2016-03-02 05:07:24 -09:00
Artists []ArtistInfo
}
2016-03-03 17:01:55 -09:00
type ArtistIndexes []ArtistIndex
2016-03-02 05:07:24 -09:00
type ArtistIndexRepository interface {
BaseRepository
2016-03-02 05:07:24 -09:00
Put(m *ArtistIndex) error
Get(id string) (*ArtistIndex, error)
2016-03-03 17:01:55 -09:00
GetAll() (ArtistIndexes, error)
2016-03-02 05:07:24 -09:00
}