summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
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