summaryrefslogtreecommitdiff
path: root/app/store.go
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-25 16:01:29 +1000
committerJames Mills <prologic@shortcircuit.net.au>2020-03-25 16:01:29 +1000
commit2c8af031648d110148dfe672c4fc3063f1743374 (patch)
treeb474bfb91fa8dcc524940f779757422f44efafd1 /app/store.go
parent7113a7bd05c72406fc971fa720b05bb934732c04 (diff)
Refactored the way views are stored with a mgiration off the old data (to be removed)
Diffstat (limited to 'app/store.go')
-rw-r--r--app/store.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/store.go b/app/store.go
index e7c27e4..747a224 100644
--- a/app/store.go
+++ b/app/store.go
@@ -3,6 +3,9 @@ package app
// Store ...
type Store interface {
Close() error
- GetViews(collection, id string) (int64, error)
- IncView(collection, id string) error
+ Migrate(collection, id string) error
+ GetViews_(collection, id string) (int64, error)
+ IncView_(collection, id string) error
+ GetViews(id string) (int64, error)
+ IncViews(id string) error
}