added empty interface implementation

This commit is contained in:
Philipp Häfelfinger 2019-04-06 22:47:56 +02:00
parent dd03f75fca
commit 564554ffb0
1 changed files with 17 additions and 1 deletions

View File

@ -49,7 +49,7 @@ type CategoryProvider interface {
SaveCategory(category CategoryData) error SaveCategory(category CategoryData) error
GetCategoryByPiwigoId(id int) (CategoryData, error) GetCategoryByPiwigoId(id int) (CategoryData, error)
GetCategoryByKey(key string) (CategoryData, error) GetCategoryByKey(key string) (CategoryData, error)
GetCategoriesToCreate()([]CategoryData, error) GetCategoriesToCreate() ([]CategoryData, error)
} }
type ImageMetadataProvider interface { type ImageMetadataProvider interface {
@ -70,6 +70,22 @@ func NewLocalDataStore() *LocalDataStore {
return &LocalDataStore{} return &LocalDataStore{}
} }
func (d *LocalDataStore) SaveCategory(category CategoryData) error {
panic("implement me")
}
func (d *LocalDataStore) GetCategoryByPiwigoId(id int) (CategoryData, error) {
panic("implement me")
}
func (d *LocalDataStore) GetCategoryByKey(key string) (CategoryData, error) {
panic("implement me")
}
func (d *LocalDataStore) GetCategoriesToCreate() ([]CategoryData, error) {
panic("implement me")
}
func (d *LocalDataStore) Initialize(connectionString string) error { func (d *LocalDataStore) Initialize(connectionString string) error {
if connectionString == "" { if connectionString == "" {
return errors.New("connection string could not be empty.") return errors.New("connection string could not be empty.")