diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-02 00:38:31 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-02 00:38:31 +0000 |
commit | a69f9cfc6ba6ff332d1e2d8303020d49443ca8cb (patch) | |
tree | a487561c677a1c54fecae70fa5f46294449bd1b4 /models/model.go | |
parent | bce250b0e75812c4f61b925d898c320d6ef11c5c (diff) | |
download | communique-a69f9cfc6ba6ff332d1e2d8303020d49443ca8cb.tar.gz |
working dedup
Diffstat (limited to '')
-rw-r--r-- | models/model.go | 3 |
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 } |