diff options
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index 3c950495d..c95888c22 100644 --- a/store/store.go +++ b/store/store.go @@ -63,6 +63,7 @@ type Store interface { Reaction() ReactionStore Job() JobStore UserAccessToken() UserAccessTokenStore + ChannelMemberHistory() ChannelMemberHistoryStore Plugin() PluginStore MarkSystemRanUnitTests() Close() @@ -160,6 +161,13 @@ type ChannelStore interface { GetChannelUnread(channelId, userId string) StoreChannel } +type ChannelMemberHistoryStore interface { + LogJoinEvent(userId string, channelId string, joinTime int64) StoreChannel + LogLeaveEvent(userId string, channelId string, leaveTime int64) StoreChannel + GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) StoreChannel + PurgeHistoryBefore(time int64, channelId string) StoreChannel +} + type PostStore interface { Save(post *model.Post) StoreChannel Update(newPost *model.Post, oldPost *model.Post) StoreChannel @@ -276,6 +284,7 @@ type ComplianceStore interface { Get(id string) StoreChannel GetAll(offset, limit int) StoreChannel ComplianceExport(compliance *model.Compliance) StoreChannel + MessageExport(after int64, limit int) StoreChannel } type OAuthStore interface { |