2020-03-25 05:40:00 +03:00
|
|
|
package app
|
|
|
|
|
|
|
|
// Store ...
|
|
|
|
type Store interface {
|
|
|
|
Close() error
|
2020-03-25 09:01:29 +03:00
|
|
|
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
|
2020-03-25 05:40:00 +03:00
|
|
|
}
|