aboutsummaryrefslogtreecommitdiff
path: root/models/model.go
blob: 8832ce120fa86aaed22caea998489629ca66ad06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
package models

import "github.com/dgraph-io/badger/v3"

type model interface {
	Name() string
	Save(txn *badger.Txn) error
	SaveDedup(txn *badger.Txn) error
	Keybase() string
	Key() string
	DedupKey() string
}