summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-03-14 16:07:58 -0700
committer=Corey Hulen <corey@hulen.com>2016-03-15 18:27:45 -0700
commit36b17bf99ddd35c0c223722f8b6f4f1c71b2235e (patch)
tree6bc07d42d19d1d7a5bef26864bb93a1bc91da5f1 /store/store.go
parentea3f25924ea64a2dd1e73624c0d30824e1efb240 (diff)
downloadchat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.tar.gz
chat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.tar.bz2
chat-36b17bf99ddd35c0c223722f8b6f4f1c71b2235e.zip
PLT-2115 Adding compliance
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/store/store.go b/store/store.go
index 7aef18203..94c426117 100644
--- a/store/store.go
+++ b/store/store.go
@@ -33,6 +33,7 @@ type Store interface {
Post() PostStore
User() UserStore
Audit() AuditStore
+ Compliance() ComplianceStore
Session() SessionStore
OAuth() OAuthStore
System() SystemStore
@@ -105,7 +106,6 @@ type PostStore interface {
AnalyticsUserCountsWithPostsByDay(teamId string) StoreChannel
AnalyticsPostCountsByDay(teamId string) StoreChannel
AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) StoreChannel
- ComplianceExport(startTime int64, endTime int64) StoreChannel
}
type UserStore interface {
@@ -152,6 +152,14 @@ type AuditStore interface {
PermanentDeleteByUser(userId string) StoreChannel
}
+type ComplianceStore interface {
+ Save(compliance *model.Compliance) StoreChannel
+ Update(compliance *model.Compliance) StoreChannel
+ Get(id string) StoreChannel
+ GetAll() StoreChannel
+ ComplianceExport(compliance *model.Compliance) StoreChannel
+}
+
type OAuthStore interface {
SaveApp(app *model.OAuthApp) StoreChannel
UpdateApp(app *model.OAuthApp) StoreChannel