diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-20 07:59:56 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-20 07:59:56 -0600 |
commit | f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef (patch) | |
tree | c40d7064cd2045c36b5c95db8faa9997497e459a /store/store.go | |
parent | 1acd38b7b19521d06d274c42c00ce7072cd92196 (diff) | |
download | chat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.tar.gz chat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.tar.bz2 chat-f5eb3c1bcb0c7e367f64bd8e5a0d2d5418f8e2ef.zip |
PLT-7 adding loc for db calls audits and prefs
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/store/store.go b/store/store.go index 179cfecd7..be35c6d59 100644 --- a/store/store.go +++ b/store/store.go @@ -4,9 +4,11 @@ package store import ( + "time" + l4g "github.com/alecthomas/log4go" "github.com/mattermost/platform/model" - "time" + goi18n "github.com/nicksnyder/go-i18n/i18n" ) type StoreResult struct { @@ -139,9 +141,9 @@ type SessionStore interface { } type AuditStore interface { - Save(audit *model.Audit) StoreChannel - Get(user_id string, limit int) StoreChannel - PermanentDeleteByUser(userId string) StoreChannel + Save(T goi18n.TranslateFunc, audit *model.Audit) StoreChannel + Get(T goi18n.TranslateFunc, user_id string, limit int) StoreChannel + PermanentDeleteByUser(T goi18n.TranslateFunc, userId string) StoreChannel } type OAuthStore interface { @@ -183,10 +185,10 @@ type WebhookStore interface { } type PreferenceStore interface { - Save(preferences *model.Preferences) StoreChannel - Get(userId string, category string, name string) StoreChannel - GetCategory(userId string, category string) StoreChannel - GetAll(userId string) StoreChannel - PermanentDeleteByUser(userId string) StoreChannel - IsFeatureEnabled(feature, userId string) StoreChannel + Save(T goi18n.TranslateFunc, preferences *model.Preferences) StoreChannel + Get(T goi18n.TranslateFunc, userId string, category string, name string) StoreChannel + GetCategory(T goi18n.TranslateFunc, userId string, category string) StoreChannel + GetAll(T goi18n.TranslateFunc, userId string) StoreChannel + PermanentDeleteByUser(T goi18n.TranslateFunc, userId string) StoreChannel + IsFeatureEnabled(T goi18n.TranslateFunc, feature, userId string) StoreChannel } |