Rename model.Model to record.Record

This commit is contained in:
Daniel 2018-09-05 17:19:45 +02:00
parent 9b7365376c
commit d76bfd55dc
23 changed files with 31 additions and 619 deletions

View file

@ -2,15 +2,15 @@ package storage
import (
"github.com/Safing/portbase/database/iterator"
"github.com/Safing/portbase/database/model"
"github.com/Safing/portbase/database/record"
"github.com/Safing/portbase/database/query"
)
// Interface defines the database storage API.
type Interface interface {
Exists(key string) (bool, error)
Get(key string) (model.Model, error)
Put(m model.Model) error
Get(key string) (record.Record, error)
Put(m record.Record) error
Delete(key string) error
Query(q *query.Query) (*iterator.Iterator, error)