summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-01 10:56:07 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-13 09:42:23 -0400
commitda66599fa39ddbff96b0844fabac161e130a2bc4 (patch)
treeda6ba69abdf1fa846805ef8cca3f1449aa6df15f /store/store.go
parent3229457de0eb6e04fff6ce4fe1466a828be5f6f6 (diff)
downloadchat-da66599fa39ddbff96b0844fabac161e130a2bc4.tar.gz
chat-da66599fa39ddbff96b0844fabac161e130a2bc4.tar.bz2
chat-da66599fa39ddbff96b0844fabac161e130a2bc4.zip
Added Preferences table to store user preferences
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
+}