summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2018-09-17 15:51:26 +0100
committerGitHub <noreply@github.com>2018-09-17 15:51:26 +0100
commitab99f0656fabed8a62a8c6340be7d538cc7bf8d9 (patch)
treebb68ee1d0c743be23bba470f5d81ef11dc134182 /store/store.go
parent5786b0d6d57b90bbb0c262235dd9d19b497b5fae (diff)
downloadchat-ab99f0656fabed8a62a8c6340be7d538cc7bf8d9.tar.gz
chat-ab99f0656fabed8a62a8c6340be7d538cc7bf8d9.tar.bz2
chat-ab99f0656fabed8a62a8c6340be7d538cc7bf8d9.zip
MM-11781: Basic Data Export Command Line. (#9296)
* MM-11781: Basic Data Export Command Line. * ChannelStore new unit tests. * TeamStore new unit tests. * Unit test for new UserStore function. * Unit tests for post store new methods. * Review fixes. * Fix duplicate command name.
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 8c731f8d5..8073b9437 100644
--- a/store/store.go
+++ b/store/store.go
@@ -111,6 +111,8 @@ type TeamStore interface {
ResetAllTeamSchemes() StoreChannel
ClearAllCustomRoleAssignments() StoreChannel
AnalyticsGetTeamCountForScheme(schemeId string) StoreChannel
+ GetAllForExportAfter(limit int, afterId string) StoreChannel
+ GetTeamMembersForExport(userId string) StoreChannel
}
type ChannelStore interface {
@@ -179,6 +181,8 @@ type ChannelStore interface {
EnableExperimentalPublicChannelsMaterialization()
DisableExperimentalPublicChannelsMaterialization()
IsExperimentalPublicChannelsMaterializationEnabled() bool
+ GetAllChannelsForExportAfter(limit int, afterId string) StoreChannel
+ GetChannelMembersForExport(userId string, teamId string) StoreChannel
}
type ChannelMemberHistoryStore interface {
@@ -217,6 +221,8 @@ type PostStore interface {
PermanentDeleteBatch(endTime int64, limit int64) StoreChannel
GetOldest() StoreChannel
GetMaxPostSize() StoreChannel
+ GetParentsForExportAfter(limit int, afterId string) StoreChannel
+ GetRepliesForExport(parentId string) StoreChannel
}
type UserStore interface {
@@ -272,6 +278,7 @@ type UserStore interface {
GetEtagForProfilesNotInTeam(teamId string) StoreChannel
ClearAllCustomRoleAssignments() StoreChannel
InferSystemInstallDate() StoreChannel
+ GetAllAfter(limit int, afterId string) StoreChannel
}
type SessionStore interface {