diff options
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index d883ea5a2..e86b5f116 100644 --- a/store/store.go +++ b/store/store.go @@ -41,6 +41,7 @@ type Store interface { System() SystemStore Webhook() WebhookStore Command() CommandStore + CommandWebhook() CommandWebhookStore Preference() PreferenceStore License() LicenseStore Token() TokenStore @@ -326,6 +327,13 @@ type CommandStore interface { AnalyticsCommandCount(teamId string) StoreChannel } +type CommandWebhookStore interface { + Save(webhook *model.CommandWebhook) StoreChannel + Get(id string) StoreChannel + TryUse(id string, limit int) StoreChannel + Cleanup() +} + type PreferenceStore interface { Save(preferences *model.Preferences) StoreChannel Get(userId string, category string, name string) StoreChannel |