aboutsummaryrefslogtreecommitdiff
path: root/models/model.go
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-29 20:08:16 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-29 20:08:16 +0000
commita4288b06bf13210721c8f2fae64bc12c118f9041 (patch)
tree49808a68d61aa450c6625477e468968fd3198ded /models/model.go
parent5a990719a02f4fd33817a2188be17b3b50498b49 (diff)
downloadcommunique-a4288b06bf13210721c8f2fae64bc12c118f9041.tar.gz
refactor
Diffstat (limited to '')
-rw-r--r--models/model.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/model.go b/models/model.go
new file mode 100644
index 0000000..56f1680
--- /dev/null
+++ b/models/model.go
@@ -0,0 +1,8 @@
+package models
+
+import "github.com/dgraph-io/badger/v3"
+
+type model interface {
+ Save(txn *badger.Txn) error
+ Keybase() string
+}