summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index e539bc98a..8a8faae85 100644
--- a/store/store.go
+++ b/store/store.go
@@ -37,6 +37,7 @@ type Store interface {
OAuth() OAuthStore
System() SystemStore
Webhook() WebhookStore
+ Preference() PreferenceStore
Close()
}
@@ -149,3 +150,9 @@ type WebhookStore interface {
GetIncomingByUser(userId string) StoreChannel
DeleteIncoming(webhookId string, time int64) StoreChannel
}
+
+type PreferenceStore interface {
+ Save(preference *model.Preference) StoreChannel
+ Update(preference *model.Preference) StoreChannel
+ GetByName(userId string, category string, name string) StoreChannel
+}