New Folder Scanner - WIP

This commit is contained in:
Deluan
2020-01-16 16:53:48 -05:00
parent 7a16d41abe
commit 123f543a94
27 changed files with 1092 additions and 60 deletions
+1
View File
@@ -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
}
+1
View File
@@ -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
View File
@@ -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
}
+1
View File
@@ -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
}