From 2c8af031648d110148dfe672c4fc3063f1743374 Mon Sep 17 00:00:00 2001 From: James Mills Date: Wed, 25 Mar 2020 16:01:29 +1000 Subject: Refactored the way views are stored with a mgiration off the old data (to be removed) --- app/store.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/store.go') 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 } -- cgit v1.2.3