New Folder Scanner - WIP
This commit is contained in:
@@ -37,4 +37,5 @@ type AlbumRepository interface {
|
||||
GetAllIds() ([]string, error)
|
||||
GetStarred(...QueryOptions) (Albums, error)
|
||||
Search(q string, offset int, size int) (Albums, error)
|
||||
Refresh(ids ...string) error
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ type ArtistRepository interface {
|
||||
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
|
||||
|
||||
+2
-3
@@ -14,11 +14,10 @@ type ArtistIndex struct {
|
||||
type ArtistInfos []ArtistInfo
|
||||
type ArtistIndexes []ArtistIndex
|
||||
|
||||
// TODO Combine ArtistIndex with Artist
|
||||
type ArtistIndexRepository interface {
|
||||
CountAll() (int64, error)
|
||||
Exists(id string) (bool, error)
|
||||
Put(m *ArtistIndex) error
|
||||
Get(id string) (*ArtistIndex, error)
|
||||
Refresh() error
|
||||
GetAll() (ArtistIndexes, error)
|
||||
DeleteAll() error
|
||||
}
|
||||
|
||||
@@ -51,4 +51,5 @@ type MediaFileRepository interface {
|
||||
GetAllIds() ([]string, error)
|
||||
Search(q string, offset int, size int) (MediaFiles, error)
|
||||
Delete(id string) error
|
||||
DeleteByPath(path string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user