summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-06 21:09:05 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-06 21:09:05 -0600
commit001a4448ca5fb0018eeb442915b473b121c04bf3 (patch)
tree983a464f35bc6ff6a2ce3a05082dc4622adfee0d /store/store.go
parent5bcb9f1c50ed9c319d2a21f2ecb4816c51d18b40 (diff)
downloadchat-001a4448ca5fb0018eeb442915b473b121c04bf3.tar.gz
chat-001a4448ca5fb0018eeb442915b473b121c04bf3.tar.bz2
chat-001a4448ca5fb0018eeb442915b473b121c04bf3.zip
PLT-1429 adding sql storage for slash commands
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 8e03c8ee7..b19bba826 100644
--- a/store/store.go
+++ b/store/store.go
@@ -37,6 +37,7 @@ type Store interface {
OAuth() OAuthStore
System() SystemStore
Webhook() WebhookStore
+ Command() CommandStore
Preference() PreferenceStore
MarkSystemRanUnitTests()
Close()
@@ -182,6 +183,15 @@ type WebhookStore interface {
UpdateOutgoing(hook *model.OutgoingWebhook) StoreChannel
}
+type CommandStore interface {
+ Save(webhook *model.Command) StoreChannel
+ Get(id string) StoreChannel
+ GetByTeam(teamId string) StoreChannel
+ Delete(commandId string, time int64) StoreChannel
+ PermanentDeleteByUser(userId string) StoreChannel
+ Update(hook *model.Command) StoreChannel
+}
+
type PreferenceStore interface {
Save(preferences *model.Preferences) StoreChannel
Get(userId string, category string, name string) StoreChannel