aboutsummaryrefslogtreecommitdiff
path: root/models/model.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-02 00:38:31 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-02 00:38:31 +0000
commita69f9cfc6ba6ff332d1e2d8303020d49443ca8cb (patch)
treea487561c677a1c54fecae70fa5f46294449bd1b4 /models/model.go
parentbce250b0e75812c4f61b925d898c320d6ef11c5c (diff)
downloadcommunique-a69f9cfc6ba6ff332d1e2d8303020d49443ca8cb.tar.gz
working dedup
Diffstat (limited to '')
-rw-r--r--models/model.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/model.go b/models/model.go
index 354b3bd..8832ce1 100644
--- a/models/model.go
+++ b/models/model.go
@@ -3,7 +3,10 @@ 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
}