diff --git a/src/storage/interface.go b/src/storage/interface.go index d49fdfe..eea5d45 100644 --- a/src/storage/interface.go +++ b/src/storage/interface.go @@ -1,6 +1,6 @@ package storage -type IStorage interface { +type Storage interface { Close() error CountItems() int CreateFeed(params CreateFeedParams) *Feed @@ -25,3 +25,4 @@ type IStorage interface { UpdateItemStatus(item_id int64, status ItemStatus) bool UpdateSettings(params UpdateSettingsParams) bool } + diff --git a/src/storage/feed.go b/src/storage/sqlite/feed.go similarity index 100% rename from src/storage/feed.go rename to src/storage/sqlite/feed.go diff --git a/src/storage/feed_test.go b/src/storage/sqlite/feed_test.go similarity index 100% rename from src/storage/feed_test.go rename to src/storage/sqlite/feed_test.go diff --git a/src/storage/feedstate.go b/src/storage/sqlite/feedstate.go similarity index 100% rename from src/storage/feedstate.go rename to src/storage/sqlite/feedstate.go diff --git a/src/storage/feedstate_test.go b/src/storage/sqlite/feedstate_test.go similarity index 100% rename from src/storage/feedstate_test.go rename to src/storage/sqlite/feedstate_test.go diff --git a/src/storage/folder.go b/src/storage/sqlite/folder.go similarity index 100% rename from src/storage/folder.go rename to src/storage/sqlite/folder.go diff --git a/src/storage/folder_test.go b/src/storage/sqlite/folder_test.go similarity index 100% rename from src/storage/folder_test.go rename to src/storage/sqlite/folder_test.go diff --git a/src/storage/item.go b/src/storage/sqlite/item.go similarity index 100% rename from src/storage/item.go rename to src/storage/sqlite/item.go diff --git a/src/storage/item_test.go b/src/storage/sqlite/item_test.go similarity index 100% rename from src/storage/item_test.go rename to src/storage/sqlite/item_test.go diff --git a/src/storage/migration.go b/src/storage/sqlite/migration.go similarity index 100% rename from src/storage/migration.go rename to src/storage/sqlite/migration.go diff --git a/src/storage/settings.go b/src/storage/sqlite/settings.go similarity index 100% rename from src/storage/settings.go rename to src/storage/sqlite/settings.go diff --git a/src/storage/settings_test.go b/src/storage/sqlite/settings_test.go similarity index 100% rename from src/storage/settings_test.go rename to src/storage/sqlite/settings_test.go diff --git a/src/storage/storage.go b/src/storage/sqlite/storage.go similarity index 100% rename from src/storage/storage.go rename to src/storage/sqlite/storage.go diff --git a/src/storage/storage_test.go b/src/storage/sqlite/storage_test.go similarity index 100% rename from src/storage/storage_test.go rename to src/storage/sqlite/storage_test.go