Documentation ¶
Index ¶
- type AuditStore
- type BotStore
- func (_m *BotStore) Get(userID string, includeDeleted bool) (*model.Bot, error)
- func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)
- func (_m *BotStore) PermanentDelete(userID string) error
- func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, error)
- func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, error)
- type ChannelMemberHistoryStore
- func (_m *ChannelMemberHistoryStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelID string) ([]*model.ChannelMemberHistoryResult, error)
- func (_m *ChannelMemberHistoryStore) LogJoinEvent(userID string, channelID string, joinTime int64) error
- func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userID string, channelID string, leaveTime int64) error
- func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (_m *ChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, ...) (int64, model.RetentionPolicyCursor, error)
- type ChannelStore
- func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamID string, channelType string) (int64, error)
- func (_m *ChannelStore) AnalyticsTypeCount(teamID string, channelType model.ChannelType) (int64, error)
- func (_m *ChannelStore) Autocomplete(userID string, term string, includeDeleted bool) (model.ChannelListWithTeamData, error)
- func (_m *ChannelStore) AutocompleteInTeam(teamID string, userID string, term string, includeDeleted bool) (model.ChannelList, error)
- func (_m *ChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (model.ChannelList, error)
- func (_m *ChannelStore) ClearAllCustomRoleAssignments() error
- func (_m *ChannelStore) ClearCaches()
- func (_m *ChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error
- func (_m *ChannelStore) CountPostsAfter(channelID string, timestamp int64, userID string) (int, int, error)
- func (_m *ChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, ...) (*model.Channel, error)
- func (_m *ChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
- func (_m *ChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error)
- func (_m *ChannelStore) Delete(channelID string, time int64) error
- func (_m *ChannelStore) DeleteSidebarCategory(categoryID string) error
- func (_m *ChannelStore) DeleteSidebarChannelsByPreferences(preferences model.Preferences) error
- func (_m *ChannelStore) Get(id string, allowFromCache bool) (*model.Channel, error)
- func (_m *ChannelStore) GetAll(teamID string) ([]*model.Channel, error)
- func (_m *ChannelStore) GetAllChannelMembersById(id string) ([]string, error)
- func (_m *ChannelStore) GetAllChannelMembersForUser(userID string, allowFromCache bool, includeDeleted bool) (map[string]string, error)
- func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelID string, allowFromCache bool) (map[string]model.StringMap, error)
- func (_m *ChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (model.ChannelListWithTeamData, error)
- func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error)
- func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterID string) ([]*model.ChannelForExport, error)
- func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID string) ([]*model.DirectChannelForExport, error)
- func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error)
- func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error)
- func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error)
- func (_m *ChannelStore) GetChannelCounts(teamID string, userID string) (*model.ChannelCounts, error)
- func (_m *ChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error)
- func (_m *ChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error)
- func (_m *ChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error)
- func (_m *ChannelStore) GetChannels(teamID string, userID string, includeDeleted bool, lastDeleteAt int) (model.ChannelList, error)
- func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, error)
- func (_m *ChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, error)
- func (_m *ChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error)
- func (_m *ChannelStore) GetChannelsByUser(userID string, includeDeleted bool, lastDeleteAt int, pageSize int, ...) (model.ChannelList, error)
- func (_m *ChannelStore) GetChannelsWithTeamDataByIds(channelIds []string, includeDeleted bool) ([]*model.ChannelWithTeamData, error)
- func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID string) (model.ChannelList, error)
- func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, error)
- func (_m *ChannelStore) GetForPost(postID string) (*model.Channel, error)
- func (_m *ChannelStore) GetFromMaster(id string) (*model.Channel, error)
- func (_m *ChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error)
- func (_m *ChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error)
- func (_m *ChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error)
- func (_m *ChannelStore) GetMemberCountFromCache(channelID string) int64
- func (_m *ChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error)
- func (_m *ChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error)
- func (_m *ChannelStore) GetMembers(channelID string, offset int, limit int) (model.ChannelMembers, error)
- func (_m *ChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (model.ChannelMembers, error)
- func (_m *ChannelStore) GetMembersByIds(channelID string, userIds []string) (model.ChannelMembers, error)
- func (_m *ChannelStore) GetMembersForUser(teamID string, userID string) (model.ChannelMembers, error)
- func (_m *ChannelStore) GetMembersForUserWithPagination(userID string, page int, perPage int) (model.ChannelMembersWithTeamData, error)
- func (_m *ChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (model.ChannelList, error)
- func (_m *ChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error)
- func (_m *ChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error)
- func (_m *ChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)
- func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (model.ChannelList, error)
- func (_m *ChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)
- func (_m *ChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
- func (_m *ChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error)
- func (_m *ChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error)
- func (_m *ChannelStore) GetTeamChannels(teamID string) (model.ChannelList, error)
- func (_m *ChannelStore) GetTeamForChannel(channelID string) (*model.Team, error)
- func (_m *ChannelStore) GetTeamMembersForChannel(channelID string) ([]string, error)
- func (_m *ChannelStore) GroupSyncedChannelCount() (int64, error)
- func (_m *ChannelStore) IncrementMentionCount(channelID string, userID string, updateThreads bool, isRoot bool) error
- func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userID string)
- func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelID string)
- func (_m *ChannelStore) InvalidateChannel(id string)
- func (_m *ChannelStore) InvalidateChannelByName(teamID string, name string)
- func (_m *ChannelStore) InvalidateGuestCount(channelID string)
- func (_m *ChannelStore) InvalidateMemberCount(channelID string)
- func (_m *ChannelStore) InvalidatePinnedPostCount(channelID string)
- func (_m *ChannelStore) IsUserInChannelUseCache(userID string, channelID string) bool
- func (_m *ChannelStore) MigrateChannelMembers(fromChannelID string, fromUserID string) (map[string]string, error)
- func (_m *ChannelStore) MigratePublicChannels() error
- func (_m *ChannelStore) PermanentDelete(channelID string) error
- func (_m *ChannelStore) PermanentDeleteByTeam(teamID string) error
- func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelID string) error
- func (_m *ChannelStore) PermanentDeleteMembersByUser(userID string) error
- func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelID string) error
- func (_m *ChannelStore) RemoveMember(channelID string, userID string) error
- func (_m *ChannelStore) RemoveMembers(channelID string, userIds []string) error
- func (_m *ChannelStore) ResetAllChannelSchemes() error
- func (_m *ChannelStore) Restore(channelID string, time int64) error
- func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)
- func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, error)
- func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, error)
- func (_m *ChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
- func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (model.ChannelListWithTeamData, int64, error)
- func (_m *ChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (model.ChannelList, error)
- func (_m *ChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (model.ChannelList, error)
- func (_m *ChannelStore) SearchGroupChannels(userID string, term string) (model.ChannelList, error)
- func (_m *ChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (model.ChannelList, error)
- func (_m *ChannelStore) SearchMore(userID string, teamID string, term string) (model.ChannelList, error)
- func (_m *ChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error
- func (_m *ChannelStore) SetShared(channelId string, shared bool) error
- func (_m *ChannelStore) Update(channel *model.Channel) (*model.Channel, error)
- func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userID string, updateThreads bool) (map[string]int64, error)
- func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, mentionCountRoot int, ...) (*model.ChannelUnreadAt, error)
- func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error)
- func (_m *ChannelStore) UpdateMemberNotifyProps(channelID string, userID string, props map[string]string) (*model.ChannelMember, error)
- func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) error
- func (_m *ChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
- func (_m *ChannelStore) UpdateSidebarCategories(userID string, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, ...)
- func (_m *ChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error
- func (_m *ChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error
- func (_m *ChannelStore) UpdateSidebarChannelsByPreferences(preferences model.Preferences) error
- func (_m *ChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error)
- type ClusterDiscoveryStore
- func (_m *ClusterDiscoveryStore) Cleanup() error
- func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error)
- func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error)
- func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error)
- func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error
- func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error
- type CommandStore
- func (_m *CommandStore) AnalyticsCommandCount(teamID string) (int64, error)
- func (_m *CommandStore) Delete(commandID string, time int64) error
- func (_m *CommandStore) Get(id string) (*model.Command, error)
- func (_m *CommandStore) GetByTeam(teamID string) ([]*model.Command, error)
- func (_m *CommandStore) GetByTrigger(teamID string, trigger string) (*model.Command, error)
- func (_m *CommandStore) PermanentDeleteByTeam(teamID string) error
- func (_m *CommandStore) PermanentDeleteByUser(userID string) error
- func (_m *CommandStore) Save(webhook *model.Command) (*model.Command, error)
- func (_m *CommandStore) Update(hook *model.Command) (*model.Command, error)
- type CommandWebhookStore
- type ComplianceStore
- func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance, cursor model.ComplianceExportCursor, limit int) ([]*model.CompliancePost, model.ComplianceExportCursor, error)
- func (_m *ComplianceStore) Get(id string) (*model.Compliance, error)
- func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, error)
- func (_m *ComplianceStore) MessageExport(cursor model.MessageExportCursor, limit int) ([]*model.MessageExport, model.MessageExportCursor, error)
- func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error)
- func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error)
- type EmojiStore
- func (_m *EmojiStore) Delete(emoji *model.Emoji, time int64) error
- func (_m *EmojiStore) Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error)
- func (_m *EmojiStore) GetByName(ctx context.Context, name string, allowFromCache bool) (*model.Emoji, error)
- func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, error)
- func (_m *EmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error)
- func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error)
- func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error)
- type FileInfoStore
- func (_m *FileInfoStore) AttachToPost(fileID string, postID string, creatorID string) error
- func (_m *FileInfoStore) ClearCaches()
- func (_m *FileInfoStore) CountAll() (int64, error)
- func (_m *FileInfoStore) DeleteForPost(postID string) (string, error)
- func (_m *FileInfoStore) Get(id string) (*model.FileInfo, error)
- func (_m *FileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error)
- func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, error)
- func (_m *FileInfoStore) GetFilesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.FileForIndexing, error)
- func (_m *FileInfoStore) GetForPost(postID string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, error)
- func (_m *FileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error)
- func (_m *FileInfoStore) GetFromMaster(id string) (*model.FileInfo, error)
- func (_m *FileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error)
- func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted bool)
- func (_m *FileInfoStore) PermanentDelete(fileID string) error
- func (_m *FileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (_m *FileInfoStore) PermanentDeleteByUser(userID string) (int64, error)
- func (_m *FileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, error)
- func (_m *FileInfoStore) Search(paramsList []*model.SearchParams, userID string, teamID string, page int, ...) (*model.FileInfoList, error)
- func (_m *FileInfoStore) SetContent(fileID string, content string) error
- func (_m *FileInfoStore) Upsert(info *model.FileInfo) (*model.FileInfo, error)
- type GroupStore
- func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error)
- func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
- func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string, includeRemovedMembers bool) ([]*model.UserChannelIDPair, error)
- func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error)
- func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error)
- func (_m *GroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error)
- func (_m *GroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error)
- func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error)
- func (_m *GroupStore) Create(group *model.Group) (*model.Group, error)
- func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
- func (_m *GroupStore) Delete(groupID string) (*model.Group, error)
- func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
- func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error)
- func (_m *GroupStore) DistinctGroupMemberCount() (int64, error)
- func (_m *GroupStore) Get(groupID string) (*model.Group, error)
- func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error)
- func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error)
- func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error)
- func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error)
- func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error)
- func (_m *GroupStore) GetByUser(userID string) ([]*model.Group, error)
- func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
- func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error)
- func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error)
- func (_m *GroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
- func (_m *GroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
- func (_m *GroupStore) GetMemberCount(groupID string) (int64, error)
- func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error)
- func (_m *GroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, error)
- func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error)
- func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, error)
- func (_m *GroupStore) GroupChannelCount() (int64, error)
- func (_m *GroupStore) GroupCount() (int64, error)
- func (_m *GroupStore) GroupCountWithAllowReference() (int64, error)
- func (_m *GroupStore) GroupMemberCount() (int64, error)
- func (_m *GroupStore) GroupTeamCount() (int64, error)
- func (_m *GroupStore) PermanentDeleteMembersByUser(userID string) error
- func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error)
- func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
- func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemovedMembers bool) ([]*model.UserTeamIDPair, error)
- func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error)
- func (_m *GroupStore) Update(group *model.Group) (*model.Group, error)
- func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
- func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error)
- type JSONSerializable
- type JobStore
- func (_m *JobStore) Cleanup(expiryTime int64, batchSize int) error
- func (_m *JobStore) Delete(id string) (string, error)
- func (_m *JobStore) Get(id string) (*model.Job, error)
- func (_m *JobStore) GetAllByStatus(status string) ([]*model.Job, error)
- func (_m *JobStore) GetAllByType(jobType string) ([]*model.Job, error)
- func (_m *JobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, error)
- func (_m *JobStore) GetAllByTypesPage(jobTypes []string, offset int, limit int) ([]*model.Job, error)
- func (_m *JobStore) GetAllPage(offset int, limit int) ([]*model.Job, error)
- func (_m *JobStore) GetCountByStatusAndType(status string, jobType string) (int64, error)
- func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, error)
- func (_m *JobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error)
- func (_m *JobStore) Save(job *model.Job) (*model.Job, error)
- func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, error)
- func (_m *JobStore) UpdateStatus(id string, status string) (*model.Job, error)
- func (_m *JobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error)
- type LicenseStore
- type LinkMetadataStore
- type OAuthStore
- func (_m *OAuthStore) DeleteApp(id string) error
- func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, error)
- func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)
- func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string) ([]*model.AccessData, error)
- func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, error)
- func (_m *OAuthStore) GetAppByUser(userID string, offset int, limit int) ([]*model.OAuthApp, error)
- func (_m *OAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, error)
- func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, error)
- func (_m *OAuthStore) GetAuthorizedApps(userID string, offset int, limit int) ([]*model.OAuthApp, error)
- func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*model.AccessData, error)
- func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userID string) error
- func (_m *OAuthStore) RemoveAccessData(token string) error
- func (_m *OAuthStore) RemoveAllAccessData() error
- func (_m *OAuthStore) RemoveAuthData(code string) error
- func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)
- func (_m *OAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error)
- func (_m *OAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, error)
- func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error)
- func (_m *OAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error)
- type ObjectCache
- func (_m *ObjectCache) AddWithDefaultExpires(key interface{}, value interface{})
- func (_m *ObjectCache) AddWithExpiresInSecs(key interface{}, value interface{}, expireAtSecs int64)
- func (_m *ObjectCache) Get(key interface{}) (interface{}, bool)
- func (_m *ObjectCache) GetInvalidateClusterEvent() string
- func (_m *ObjectCache) Len() int
- func (_m *ObjectCache) Name() string
- func (_m *ObjectCache) Purge()
- func (_m *ObjectCache) Remove(key interface{})
- type PluginStore
- func (_m *PluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
- func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
- func (_m *PluginStore) Delete(pluginID string, key string) error
- func (_m *PluginStore) DeleteAllExpired() error
- func (_m *PluginStore) DeleteAllForPlugin(PluginID string) error
- func (_m *PluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error)
- func (_m *PluginStore) List(pluginID string, page int, perPage int) ([]string, error)
- func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error)
- func (_m *PluginStore) SetWithOptions(pluginID string, key string, value []byte, options model.PluginKVSetOptions) (bool, error)
- type PostStore
- func (_m *PostStore) AnalyticsPostCount(teamID string, mustHaveFile bool, mustHaveHashtag bool) (int64, error)
- func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error)
- func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error)
- func (_m *PostStore) ClearCaches()
- func (_m *PostStore) Delete(postID string, time int64, deleteByID string) error
- func (_m *PostStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *PostStore) Get(ctx context.Context, id string, skipFetchThreads bool, collapsedThreads bool, ...) (*model.PostList, error)
- func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterID string) ([]*model.DirectPostForExport, error)
- func (_m *PostStore) GetEtag(channelID string, allowFromCache bool, collapsedThreads bool) string
- func (_m *PostStore) GetFlaggedPosts(userID string, offset int, limit int) (*model.PostList, error)
- func (_m *PostStore) GetFlaggedPostsForChannel(userID string, channelID string, offset int, limit int) (*model.PostList, error)
- func (_m *PostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset int, limit int) (*model.PostList, error)
- func (_m *PostStore) GetMaxPostSize() int
- func (_m *PostStore) GetOldest() (*model.Post, error)
- func (_m *PostStore) GetOldestEntityCreationTime() (int64, error)
- func (_m *PostStore) GetParentsForExportAfter(limit int, afterID string) ([]*model.PostForExport, error)
- func (_m *PostStore) GetPostAfterTime(channelID string, time int64, collapsedThreads bool) (*model.Post, error)
- func (_m *PostStore) GetPostIdAfterTime(channelID string, time int64, collapsedThreads bool) (string, error)
- func (_m *PostStore) GetPostIdBeforeTime(channelID string, time int64, collapsedThreads bool) (string, error)
- func (_m *PostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, error)
- func (_m *PostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, error)
- func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, error)
- func (_m *PostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, error)
- func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, error)
- func (_m *PostStore) GetPostsCreatedAt(channelID string, time int64) ([]*model.Post, error)
- func (_m *PostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, error)
- func (_m *PostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOptions, ...) ([]*model.Post, model.GetPostsSinceForSyncCursor, error)
- func (_m *PostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error)
- func (_m *PostStore) GetSingle(id string, inclDeleted bool) (*model.Post, error)
- func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error)
- func (_m *PostStore) InvalidateLastPostTimeCache(channelID string)
- func (_m *PostStore) Overwrite(post *model.Post) (*model.Post, error)
- func (_m *PostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, error)
- func (_m *PostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (_m *PostStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, ...) (int64, model.RetentionPolicyCursor, error)
- func (_m *PostStore) PermanentDeleteByChannel(channelID string) error
- func (_m *PostStore) PermanentDeleteByUser(userID string) error
- func (_m *PostStore) Save(post *model.Post) (*model.Post, error)
- func (_m *PostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, error)
- func (_m *PostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error)
- func (_m *PostStore) SearchPostsForUser(paramsList []*model.SearchParams, userID string, teamID string, page int, ...) (*model.PostSearchResults, error)
- func (_m *PostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, error)
- type PreferenceStore
- func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, error)
- func (_m *PreferenceStore) Delete(userID string, category string, name string) error
- func (_m *PreferenceStore) DeleteCategory(userID string, category string) error
- func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) error
- func (_m *PreferenceStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *PreferenceStore) Get(userID string, category string, name string) (*model.Preference, error)
- func (_m *PreferenceStore) GetAll(userID string) (model.Preferences, error)
- func (_m *PreferenceStore) GetCategory(userID string, category string) (model.Preferences, error)
- func (_m *PreferenceStore) PermanentDeleteByUser(userID string) error
- func (_m *PreferenceStore) Save(preferences model.Preferences) error
- type ProductNoticesStore
- func (_m *ProductNoticesStore) Clear(notices []string) error
- func (_m *ProductNoticesStore) ClearOldNotices(currentNotices model.ProductNotices) error
- func (_m *ProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeViewState, error)
- func (_m *ProductNoticesStore) View(userID string, notices []string) error
- type ReactionStore
- func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error)
- func (_m *ReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, error)
- func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) error
- func (_m *ReactionStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *ReactionStore) GetForPost(postID string, allowFromCache bool) ([]*model.Reaction, error)
- func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted bool) ([]*model.Reaction, error)
- func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (_m *ReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error)
- type RemoteClusterStore
- func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error)
- func (_m *RemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error)
- func (_m *RemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error)
- func (_m *RemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluster, error)
- func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error
- func (_m *RemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteCluster, error)
- func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error)
- type RetentionPolicyStore
- func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string) error
- func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) error
- func (_m *RetentionPolicyStore) Delete(id string) error
- func (_m *RetentionPolicyStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *RetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (_m *RetentionPolicyStore) GetAll(offset int, limit int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (_m *RetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error)
- func (_m *RetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error)
- func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error)
- func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
- func (_m *RetentionPolicyStore) GetCount() (int64, error)
- func (_m *RetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error)
- func (_m *RetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error)
- func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error)
- func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error)
- func (_m *RetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error
- func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error
- func (_m *RetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- type RoleStore
- func (_m *RoleStore) AllChannelSchemeRoles() ([]*model.Role, error)
- func (_m *RoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error)
- func (_m *RoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error)
- func (_m *RoleStore) Delete(roleID string) (*model.Role, error)
- func (_m *RoleStore) Get(roleID string) (*model.Role, error)
- func (_m *RoleStore) GetAll() ([]*model.Role, error)
- func (_m *RoleStore) GetByName(ctx context.Context, name string) (*model.Role, error)
- func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, error)
- func (_m *RoleStore) PermanentDeleteAll() error
- func (_m *RoleStore) Save(role *model.Role) (*model.Role, error)
- type SchemeStore
- func (_m *SchemeStore) CountByScope(scope string) (int64, error)
- func (_m *SchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, ...) (int64, error)
- func (_m *SchemeStore) Delete(schemeID string) (*model.Scheme, error)
- func (_m *SchemeStore) Get(schemeID string) (*model.Scheme, error)
- func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, error)
- func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error)
- func (_m *SchemeStore) PermanentDeleteAll() error
- func (_m *SchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error)
- type SessionStore
- func (_m *SessionStore) AnalyticsSessionCount() (int64, error)
- func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64) error
- func (_m *SessionStore) Get(ctx context.Context, sessionIDOrToken string) (*model.Session, error)
- func (_m *SessionStore) GetSessions(userID string) ([]*model.Session, error)
- func (_m *SessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error)
- func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userID string) ([]*model.Session, error)
- func (_m *SessionStore) PermanentDeleteSessionsByUser(teamID string) error
- func (_m *SessionStore) Remove(sessionIDOrToken string) error
- func (_m *SessionStore) RemoveAllSessions() error
- func (_m *SessionStore) Save(session *model.Session) (*model.Session, error)
- func (_m *SessionStore) UpdateDeviceId(id string, deviceID string, expiresAt int64) (string, error)
- func (_m *SessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
- func (_m *SessionStore) UpdateExpiresAt(sessionID string, time int64) error
- func (_m *SessionStore) UpdateLastActivityAt(sessionID string, time int64) error
- func (_m *SessionStore) UpdateProps(session *model.Session) error
- func (_m *SessionStore) UpdateRoles(userID string, roles string) (string, error)
- type SharedChannelStore
- func (_m *SharedChannelStore) Delete(channelId string) (bool, error)
- func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error)
- func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error)
- func (_m *SharedChannelStore) GetAll(offset int, limit int, opts model.SharedChannelFilterOpts) ([]*model.SharedChannel, error)
- func (_m *SharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (int64, error)
- func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error)
- func (_m *SharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote, error)
- func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error)
- func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error)
- func (_m *SharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error)
- func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error)
- func (_m *SharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error)
- func (_m *SharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error)
- func (_m *SharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error)
- func (_m *SharedChannelStore) HasChannel(channelID string) (bool, error)
- func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error)
- func (_m *SharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChannel, error)
- func (_m *SharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachment) (*model.SharedChannelAttachment, error)
- func (_m *SharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
- func (_m *SharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.SharedChannelUser, error)
- func (_m *SharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChannel, error)
- func (_m *SharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error
- func (_m *SharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
- func (_m *SharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error
- func (_m *SharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error
- func (_m *SharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error)
- type SqlStore
- type StatusStore
- func (_m *StatusStore) Get(userID string) (*model.Status, error)
- func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error)
- func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error)
- func (_m *StatusStore) ResetAll() error
- func (_m *StatusStore) SaveOrUpdate(status *model.Status) error
- func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error)
- func (_m *StatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error
- type Store
- func (_m *Store) Audit() store.AuditStore
- func (_m *Store) Bot() store.BotStore
- func (_m *Store) Channel() store.ChannelStore
- func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore
- func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult
- func (_m *Store) Close()
- func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore
- func (_m *Store) Command() store.CommandStore
- func (_m *Store) CommandWebhook() store.CommandWebhookStore
- func (_m *Store) Compliance() store.ComplianceStore
- func (_m *Store) Context() context.Context
- func (_m *Store) DropAllTables()
- func (_m *Store) Emoji() store.EmojiStore
- func (_m *Store) FileInfo() store.FileInfoStore
- func (_m *Store) GetCurrentSchemaVersion() string
- func (_m *Store) GetDbVersion(numerical bool) (string, error)
- func (_m *Store) Group() store.GroupStore
- func (_m *Store) Job() store.JobStore
- func (_m *Store) License() store.LicenseStore
- func (_m *Store) LinkMetadata() store.LinkMetadataStore
- func (_m *Store) LockToMaster()
- func (_m *Store) MarkSystemRanUnitTests()
- func (_m *Store) OAuth() store.OAuthStore
- func (_m *Store) Plugin() store.PluginStore
- func (_m *Store) Post() store.PostStore
- func (_m *Store) Preference() store.PreferenceStore
- func (_m *Store) ProductNotices() store.ProductNoticesStore
- func (_m *Store) Reaction() store.ReactionStore
- func (_m *Store) RecycleDBConnections(d time.Duration)
- func (_m *Store) RemoteCluster() store.RemoteClusterStore
- func (_m *Store) ReplicaLagAbs() error
- func (_m *Store) ReplicaLagTime() error
- func (_m *Store) RetentionPolicy() store.RetentionPolicyStore
- func (_m *Store) Role() store.RoleStore
- func (_m *Store) Scheme() store.SchemeStore
- func (_m *Store) Session() store.SessionStore
- func (_m *Store) SetContext(_a0 context.Context)
- func (_m *Store) SharedChannel() store.SharedChannelStore
- func (_m *Store) Status() store.StatusStore
- func (_m *Store) System() store.SystemStore
- func (_m *Store) Team() store.TeamStore
- func (_m *Store) TermsOfService() store.TermsOfServiceStore
- func (_m *Store) Thread() store.ThreadStore
- func (_m *Store) Token() store.TokenStore
- func (_m *Store) TotalMasterDbConnections() int
- func (_m *Store) TotalReadDbConnections() int
- func (_m *Store) TotalSearchDbConnections() int
- func (_m *Store) UnlockFromMaster()
- func (_m *Store) UploadSession() store.UploadSessionStore
- func (_m *Store) User() store.UserStore
- func (_m *Store) UserAccessToken() store.UserAccessTokenStore
- func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore
- func (_m *Store) Webhook() store.WebhookStore
- type SystemStore
- func (_m *SystemStore) Get() (model.StringMap, error)
- func (_m *SystemStore) GetByName(name string) (*model.System, error)
- func (_m *SystemStore) InsertIfExists(system *model.System) (*model.System, error)
- func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, error)
- func (_m *SystemStore) Save(system *model.System) error
- func (_m *SystemStore) SaveOrUpdate(system *model.System) error
- func (_m *SystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error
- func (_m *SystemStore) Update(system *model.System) error
- type TeamStore
- func (_m *TeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, error)
- func (_m *TeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error)
- func (_m *TeamStore) ClearAllCustomRoleAssignments() error
- func (_m *TeamStore) ClearCaches()
- func (_m *TeamStore) Get(id string) (*model.Team, error)
- func (_m *TeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
- func (_m *TeamStore) GetAll() ([]*model.Team, error)
- func (_m *TeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.TeamForExport, error)
- func (_m *TeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) ([]*model.Team, error)
- func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error)
- func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error)
- func (_m *TeamStore) GetByInviteId(inviteID string) (*model.Team, error)
- func (_m *TeamStore) GetByName(name string) (*model.Team, error)
- func (_m *TeamStore) GetByNames(name []string) ([]*model.Team, error)
- func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error)
- func (_m *TeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error)
- func (_m *TeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error)
- func (_m *TeamStore) GetMember(ctx context.Context, teamID string, userID string) (*model.TeamMember, error)
- func (_m *TeamStore) GetMembers(teamID string, offset int, limit int, ...) ([]*model.TeamMember, error)
- func (_m *TeamStore) GetMembersByIds(teamID string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error)
- func (_m *TeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error)
- func (_m *TeamStore) GetTeamsByScheme(schemeID string, offset int, limit int) ([]*model.Team, error)
- func (_m *TeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error)
- func (_m *TeamStore) GetTeamsForUser(ctx context.Context, userID string) ([]*model.TeamMember, error)
- func (_m *TeamStore) GetTeamsForUserWithPagination(userID string, page int, perPage int) ([]*model.TeamMember, error)
- func (_m *TeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
- func (_m *TeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, error)
- func (_m *TeamStore) GroupSyncedTeamCount() (int64, error)
- func (_m *TeamStore) InvalidateAllTeamIdsForUser(userID string)
- func (_m *TeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (map[string]string, error)
- func (_m *TeamStore) PermanentDelete(teamID string) error
- func (_m *TeamStore) RemoveAllMembersByTeam(teamID string) error
- func (_m *TeamStore) RemoveAllMembersByUser(userID string) error
- func (_m *TeamStore) RemoveMember(teamID string, userID string) error
- func (_m *TeamStore) RemoveMembers(teamID string, userIds []string) error
- func (_m *TeamStore) ResetAllTeamSchemes() error
- func (_m *TeamStore) Save(team *model.Team) (*model.Team, error)
- func (_m *TeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
- func (_m *TeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error)
- func (_m *TeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error)
- func (_m *TeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int64, error)
- func (_m *TeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error)
- func (_m *TeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error)
- func (_m *TeamStore) Update(team *model.Team) (*model.Team, error)
- func (_m *TeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) error
- func (_m *TeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, error)
- func (_m *TeamStore) UpdateMembersRole(teamID string, userIDs []string) error
- func (_m *TeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error)
- func (_m *TeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool, error)
- type TermsOfServiceStore
- type ThreadStore
- func (_m *ThreadStore) CollectThreadsWithNewerReplies(userId string, channelIds []string, timestamp int64) ([]string, error)
- func (_m *ThreadStore) Delete(postID string) error
- func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) error
- func (_m *ThreadStore) DeleteOrphanedRows(limit int) (int64, error)
- func (_m *ThreadStore) Get(id string) (*model.Thread, error)
- func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error)
- func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error)
- func (_m *ThreadStore) GetPosts(threadID string, since int64) ([]*model.Post, error)
- func (_m *ThreadStore) GetThreadFollowers(threadID string, fetchOnlyActive bool) ([]string, error)
- func (_m *ThreadStore) GetThreadForUser(teamID string, threadMembership *model.ThreadMembership, extended bool) (*model.ThreadResponse, error)
- func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) (*model.Threads, error)
- func (_m *ThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error)
- func (_m *ThreadStore) MarkAllAsRead(userID string, teamID string) error
- func (_m *ThreadStore) MarkAllAsReadInChannels(userID string, channelIDs []string) error
- func (_m *ThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error
- func (_m *ThreadStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, ...) (int64, model.RetentionPolicyCursor, error)
- func (_m *ThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, ...) (int64, model.RetentionPolicyCursor, error)
- func (_m *ThreadStore) Save(thread *model.Thread) (*model.Thread, error)
- func (_m *ThreadStore) SaveMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
- func (_m *ThreadStore) SaveMultiple(thread []*model.Thread) ([]*model.Thread, int, error)
- func (_m *ThreadStore) Update(thread *model.Thread) (*model.Thread, error)
- func (_m *ThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
- func (_m *ThreadStore) UpdateUnreadsByChannel(userId string, changedThreads []string, timestamp int64, ...) error
- type TokenStore
- func (_m *TokenStore) Cleanup()
- func (_m *TokenStore) Delete(token string) error
- func (_m *TokenStore) GetAllTokensByType(tokenType string) ([]*model.Token, error)
- func (_m *TokenStore) GetByToken(token string) (*model.Token, error)
- func (_m *TokenStore) RemoveAllTokensByType(tokenType string) error
- func (_m *TokenStore) Save(recovery *model.Token) error
- type UploadSessionStore
- func (_m *UploadSessionStore) Delete(id string) error
- func (_m *UploadSessionStore) Get(id string) (*model.UploadSession, error)
- func (_m *UploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error)
- func (_m *UploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error)
- func (_m *UploadSessionStore) Update(session *model.UploadSession) error
- type UserAccessTokenStore
- func (_m *UserAccessTokenStore) Delete(tokenID string) error
- func (_m *UserAccessTokenStore) DeleteAllForUser(userID string) error
- func (_m *UserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error)
- func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenID string) error
- func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenID string) error
- type UserStore
- func (_m *UserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error)
- func (_m *UserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error)
- func (_m *UserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)
- func (_m *UserStore) AnalyticsGetGuestCount() (int64, error)
- func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error)
- func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, error)
- func (_m *UserStore) AutocompleteUsersInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
- func (_m *UserStore) ClearAllCustomRoleAssignments() error
- func (_m *UserStore) ClearCaches()
- func (_m *UserStore) Count(options model.UserCountOptions) (int64, error)
- func (_m *UserStore) DeactivateGuests() ([]string, error)
- func (_m *UserStore) DemoteUserToGuest(userID string) (*model.User, error)
- func (_m *UserStore) Get(ctx context.Context, id string) (*model.User, error)
- func (_m *UserStore) GetAll() ([]*model.User, error)
- func (_m *UserStore) GetAllAfter(limit int, afterID string) ([]*model.User, error)
- func (_m *UserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, error)
- func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, error)
- func (_m *UserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error)
- func (_m *UserStore) GetAllUsingAuthService(authService string) ([]*model.User, error)
- func (_m *UserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error)
- func (_m *UserStore) GetByAuth(authData *string, authService string) (*model.User, error)
- func (_m *UserStore) GetByEmail(email string) (*model.User, error)
- func (_m *UserStore) GetByUsername(username string) (*model.User, error)
- func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, error)
- func (_m *UserStore) GetEtagForAllProfiles() string
- func (_m *UserStore) GetEtagForProfiles(teamID string) string
- func (_m *UserStore) GetEtagForProfilesNotInTeam(teamID string) string
- func (_m *UserStore) GetForLogin(loginID string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, error)
- func (_m *UserStore) GetKnownUsers(userID string) ([]string, error)
- func (_m *UserStore) GetMany(ctx context.Context, ids []string) ([]*model.User, error)
- func (_m *UserStore) GetNewUsersForTeam(teamID string, offset int, limit int, ...) ([]*model.User, error)
- func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userID string, channelIds []string) (map[string][]*model.User, error)
- func (_m *UserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, ...) ([]*model.User, error)
- func (_m *UserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error)
- func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
- func (_m *UserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error)
- func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error)
- func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error)
- func (_m *UserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error)
- func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, error)
- func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, limit int, ...) ([]*model.User, error)
- func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, error)
- func (_m *UserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error)
- func (_m *UserStore) GetUnreadCount(userID string) (int64, error)
- func (_m *UserStore) GetUnreadCountForChannel(userID string, channelID string) (int64, error)
- func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, error)
- func (_m *UserStore) InferSystemInstallDate() (int64, error)
- func (_m *UserStore) InvalidateProfileCacheForUser(userID string)
- func (_m *UserStore) InvalidateProfilesInChannelCache(channelID string)
- func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userID string)
- func (_m *UserStore) IsEmpty(excludeBots bool) (bool, error)
- func (_m *UserStore) PermanentDelete(userID string) error
- func (_m *UserStore) PromoteGuestToUser(userID string) error
- func (_m *UserStore) ResetAuthDataToEmailForUsers(service string, userIDs []string, includeDeleted bool, dryRun bool) (int, error)
- func (_m *UserStore) ResetLastPictureUpdate(userID string) error
- func (_m *UserStore) Save(user *model.User) (*model.User, error)
- func (_m *UserStore) Search(teamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) SearchInChannel(channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) SearchNotInTeam(notInTeamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, error)
- func (_m *UserStore) UpdateAuthData(userID string, service string, authData *string, email string, resetMfa bool) (string, error)
- func (_m *UserStore) UpdateFailedPasswordAttempts(userID string, attempts int) error
- func (_m *UserStore) UpdateLastPictureUpdate(userID string) error
- func (_m *UserStore) UpdateMfaActive(userID string, active bool) error
- func (_m *UserStore) UpdateMfaSecret(userID string, secret string) error
- func (_m *UserStore) UpdateNotifyProps(userID string, props map[string]string) error
- func (_m *UserStore) UpdatePassword(userID string, newPassword string) error
- func (_m *UserStore) UpdateUpdateAt(userID string) (int64, error)
- func (_m *UserStore) VerifyEmail(userID string, email string) (string, error)
- type UserTermsOfServiceStore
- func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string) error
- func (_m *UserTermsOfServiceStore) GetByUser(userID string) (*model.UserTermsOfService, error)
- func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error)
- type WebhookStore
- func (_m *WebhookStore) AnalyticsIncomingCount(teamID string) (int64, error)
- func (_m *WebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error)
- func (_m *WebhookStore) ClearCaches()
- func (_m *WebhookStore) DeleteIncoming(webhookID string, time int64) error
- func (_m *WebhookStore) DeleteOutgoing(webhookID string, time int64) error
- func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (_m *WebhookStore) InvalidateWebhookCache(webhook string)
- func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelID string) error
- func (_m *WebhookStore) PermanentDeleteIncomingByUser(userID string) error
- func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error
- func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userID string) error
- func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
- func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
- func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
- func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditStore ¶
AuditStore is an autogenerated mock type for the AuditStore type
func (*AuditStore) PermanentDeleteByUser ¶
func (_m *AuditStore) PermanentDeleteByUser(userID string) error
PermanentDeleteByUser provides a mock function with given fields: userID
type BotStore ¶
BotStore is an autogenerated mock type for the BotStore type
func (*BotStore) PermanentDelete ¶
PermanentDelete provides a mock function with given fields: userID
type ChannelMemberHistoryStore ¶
ChannelMemberHistoryStore is an autogenerated mock type for the ChannelMemberHistoryStore type
func (*ChannelMemberHistoryStore) DeleteOrphanedRows ¶
func (_m *ChannelMemberHistoryStore) DeleteOrphanedRows(limit int) (int64, error)
DeleteOrphanedRows provides a mock function with given fields: limit
func (*ChannelMemberHistoryStore) GetUsersInChannelDuring ¶
func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelID string) ([]*model.ChannelMemberHistoryResult, error)
GetUsersInChannelDuring provides a mock function with given fields: startTime, endTime, channelID
func (*ChannelMemberHistoryStore) LogJoinEvent ¶
func (_m *ChannelMemberHistoryStore) LogJoinEvent(userID string, channelID string, joinTime int64) error
LogJoinEvent provides a mock function with given fields: userID, channelID, joinTime
func (*ChannelMemberHistoryStore) LogLeaveEvent ¶
func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userID string, channelID string, leaveTime int64) error
LogLeaveEvent provides a mock function with given fields: userID, channelID, leaveTime
func (*ChannelMemberHistoryStore) PermanentDeleteBatch ¶
func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
func (*ChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies ¶
func (_m *ChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)
PermanentDeleteBatchForRetentionPolicies provides a mock function with given fields: now, globalPolicyEndTime, limit, cursor
type ChannelStore ¶
ChannelStore is an autogenerated mock type for the ChannelStore type
func (*ChannelStore) AnalyticsDeletedTypeCount ¶
func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamID string, channelType string) (int64, error)
AnalyticsDeletedTypeCount provides a mock function with given fields: teamID, channelType
func (*ChannelStore) AnalyticsTypeCount ¶
func (_m *ChannelStore) AnalyticsTypeCount(teamID string, channelType model.ChannelType) (int64, error)
AnalyticsTypeCount provides a mock function with given fields: teamID, channelType
func (*ChannelStore) Autocomplete ¶ added in v6.2.0
func (_m *ChannelStore) Autocomplete(userID string, term string, includeDeleted bool) (model.ChannelListWithTeamData, error)
Autocomplete provides a mock function with given fields: userID, term, includeDeleted
func (*ChannelStore) AutocompleteInTeam ¶
func (_m *ChannelStore) AutocompleteInTeam(teamID string, userID string, term string, includeDeleted bool) (model.ChannelList, error)
AutocompleteInTeam provides a mock function with given fields: teamID, userID, term, includeDeleted
func (*ChannelStore) AutocompleteInTeamForSearch ¶
func (_m *ChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (model.ChannelList, error)
AutocompleteInTeamForSearch provides a mock function with given fields: teamID, userID, term, includeDeleted
func (*ChannelStore) ClearAllCustomRoleAssignments ¶
func (_m *ChannelStore) ClearAllCustomRoleAssignments() error
ClearAllCustomRoleAssignments provides a mock function with given fields:
func (*ChannelStore) ClearCaches ¶
func (_m *ChannelStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*ChannelStore) ClearSidebarOnTeamLeave ¶
func (_m *ChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error
ClearSidebarOnTeamLeave provides a mock function with given fields: userID, teamID
func (*ChannelStore) CountPostsAfter ¶
func (_m *ChannelStore) CountPostsAfter(channelID string, timestamp int64, userID string) (int, int, error)
CountPostsAfter provides a mock function with given fields: channelID, timestamp, userID
func (*ChannelStore) CreateDirectChannel ¶
func (_m *ChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error)
CreateDirectChannel provides a mock function with given fields: userID, otherUserID, channelOptions
func (*ChannelStore) CreateInitialSidebarCategories ¶
func (_m *ChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
CreateInitialSidebarCategories provides a mock function with given fields: userID, teamID
func (*ChannelStore) CreateSidebarCategory ¶
func (_m *ChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error)
CreateSidebarCategory provides a mock function with given fields: userID, teamID, newCategory
func (*ChannelStore) Delete ¶
func (_m *ChannelStore) Delete(channelID string, time int64) error
Delete provides a mock function with given fields: channelID, time
func (*ChannelStore) DeleteSidebarCategory ¶
func (_m *ChannelStore) DeleteSidebarCategory(categoryID string) error
DeleteSidebarCategory provides a mock function with given fields: categoryID
func (*ChannelStore) DeleteSidebarChannelsByPreferences ¶
func (_m *ChannelStore) DeleteSidebarChannelsByPreferences(preferences model.Preferences) error
DeleteSidebarChannelsByPreferences provides a mock function with given fields: preferences
func (*ChannelStore) GetAll ¶
func (_m *ChannelStore) GetAll(teamID string) ([]*model.Channel, error)
GetAll provides a mock function with given fields: teamID
func (*ChannelStore) GetAllChannelMembersById ¶ added in v6.2.0
func (_m *ChannelStore) GetAllChannelMembersById(id string) ([]string, error)
GetAllChannelMembersById provides a mock function with given fields: id
func (*ChannelStore) GetAllChannelMembersForUser ¶
func (_m *ChannelStore) GetAllChannelMembersForUser(userID string, allowFromCache bool, includeDeleted bool) (map[string]string, error)
GetAllChannelMembersForUser provides a mock function with given fields: userID, allowFromCache, includeDeleted
func (*ChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶
func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelID string, allowFromCache bool) (map[string]model.StringMap, error)
GetAllChannelMembersNotifyPropsForChannel provides a mock function with given fields: channelID, allowFromCache
func (*ChannelStore) GetAllChannels ¶
func (_m *ChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (model.ChannelListWithTeamData, error)
GetAllChannels provides a mock function with given fields: page, perPage, opts
func (*ChannelStore) GetAllChannelsCount ¶
func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error)
GetAllChannelsCount provides a mock function with given fields: opts
func (*ChannelStore) GetAllChannelsForExportAfter ¶
func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterID string) ([]*model.ChannelForExport, error)
GetAllChannelsForExportAfter provides a mock function with given fields: limit, afterID
func (*ChannelStore) GetAllDirectChannelsForExportAfter ¶
func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID string) ([]*model.DirectChannelForExport, error)
GetAllDirectChannelsForExportAfter provides a mock function with given fields: limit, afterID
func (*ChannelStore) GetByName ¶
func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error)
GetByName provides a mock function with given fields: team_id, name, allowFromCache
func (*ChannelStore) GetByNameIncludeDeleted ¶
func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error)
GetByNameIncludeDeleted provides a mock function with given fields: team_id, name, allowFromCache
func (*ChannelStore) GetByNames ¶
func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error)
GetByNames provides a mock function with given fields: team_id, names, allowFromCache
func (*ChannelStore) GetChannelCounts ¶
func (_m *ChannelStore) GetChannelCounts(teamID string, userID string) (*model.ChannelCounts, error)
GetChannelCounts provides a mock function with given fields: teamID, userID
func (*ChannelStore) GetChannelMembersForExport ¶
func (_m *ChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error)
GetChannelMembersForExport provides a mock function with given fields: userID, teamID
func (*ChannelStore) GetChannelMembersTimezones ¶
func (_m *ChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error)
GetChannelMembersTimezones provides a mock function with given fields: channelID
func (*ChannelStore) GetChannelUnread ¶
func (_m *ChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error)
GetChannelUnread provides a mock function with given fields: channelID, userID
func (*ChannelStore) GetChannels ¶
func (_m *ChannelStore) GetChannels(teamID string, userID string, includeDeleted bool, lastDeleteAt int) (model.ChannelList, error)
GetChannels provides a mock function with given fields: teamID, userID, includeDeleted, lastDeleteAt
func (*ChannelStore) GetChannelsBatchForIndexing ¶
func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, error)
GetChannelsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*ChannelStore) GetChannelsByIds ¶
func (_m *ChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, error)
GetChannelsByIds provides a mock function with given fields: channelIds, includeDeleted
func (*ChannelStore) GetChannelsByScheme ¶
func (_m *ChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error)
GetChannelsByScheme provides a mock function with given fields: schemeID, offset, limit
func (*ChannelStore) GetChannelsByUser ¶ added in v6.2.0
func (_m *ChannelStore) GetChannelsByUser(userID string, includeDeleted bool, lastDeleteAt int, pageSize int, fromChannelID string) (model.ChannelList, error)
GetChannelsByUser provides a mock function with given fields: userID, includeDeleted, lastDeleteAt, pageSize, fromChannelID
func (*ChannelStore) GetChannelsWithTeamDataByIds ¶ added in v6.2.0
func (_m *ChannelStore) GetChannelsWithTeamDataByIds(channelIds []string, includeDeleted bool) ([]*model.ChannelWithTeamData, error)
GetChannelsWithTeamDataByIds provides a mock function with given fields: channelIds, includeDeleted
func (*ChannelStore) GetDeleted ¶
func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userID string) (model.ChannelList, error)
GetDeleted provides a mock function with given fields: team_id, offset, limit, userID
func (*ChannelStore) GetDeletedByName ¶
GetDeletedByName provides a mock function with given fields: team_id, name
func (*ChannelStore) GetForPost ¶
func (_m *ChannelStore) GetForPost(postID string) (*model.Channel, error)
GetForPost provides a mock function with given fields: postID
func (*ChannelStore) GetFromMaster ¶
func (_m *ChannelStore) GetFromMaster(id string) (*model.Channel, error)
GetFromMaster provides a mock function with given fields: id
func (*ChannelStore) GetGuestCount ¶
func (_m *ChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error)
GetGuestCount provides a mock function with given fields: channelID, allowFromCache
func (*ChannelStore) GetMember ¶
func (_m *ChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error)
GetMember provides a mock function with given fields: ctx, channelID, userID
func (*ChannelStore) GetMemberCount ¶
func (_m *ChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error)
GetMemberCount provides a mock function with given fields: channelID, allowFromCache
func (*ChannelStore) GetMemberCountFromCache ¶
func (_m *ChannelStore) GetMemberCountFromCache(channelID string) int64
GetMemberCountFromCache provides a mock function with given fields: channelID
func (*ChannelStore) GetMemberCountsByGroup ¶
func (_m *ChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error)
GetMemberCountsByGroup provides a mock function with given fields: ctx, channelID, includeTimezones
func (*ChannelStore) GetMemberForPost ¶
func (_m *ChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error)
GetMemberForPost provides a mock function with given fields: postID, userID
func (*ChannelStore) GetMembers ¶
func (_m *ChannelStore) GetMembers(channelID string, offset int, limit int) (model.ChannelMembers, error)
GetMembers provides a mock function with given fields: channelID, offset, limit
func (*ChannelStore) GetMembersByChannelIds ¶
func (_m *ChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (model.ChannelMembers, error)
GetMembersByChannelIds provides a mock function with given fields: channelIds, userID
func (*ChannelStore) GetMembersByIds ¶
func (_m *ChannelStore) GetMembersByIds(channelID string, userIds []string) (model.ChannelMembers, error)
GetMembersByIds provides a mock function with given fields: channelID, userIds
func (*ChannelStore) GetMembersForUser ¶
func (_m *ChannelStore) GetMembersForUser(teamID string, userID string) (model.ChannelMembers, error)
GetMembersForUser provides a mock function with given fields: teamID, userID
func (*ChannelStore) GetMembersForUserWithPagination ¶
func (_m *ChannelStore) GetMembersForUserWithPagination(userID string, page int, perPage int) (model.ChannelMembersWithTeamData, error)
GetMembersForUserWithPagination provides a mock function with given fields: userID, page, perPage
func (*ChannelStore) GetMoreChannels ¶
func (_m *ChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (model.ChannelList, error)
GetMoreChannels provides a mock function with given fields: teamID, userID, offset, limit
func (*ChannelStore) GetPinnedPostCount ¶
func (_m *ChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error)
GetPinnedPostCount provides a mock function with given fields: channelID, allowFromCache
func (*ChannelStore) GetPinnedPosts ¶
func (_m *ChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error)
GetPinnedPosts provides a mock function with given fields: channelID
func (*ChannelStore) GetPrivateChannelsForTeam ¶
func (_m *ChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)
GetPrivateChannelsForTeam provides a mock function with given fields: teamID, offset, limit
func (*ChannelStore) GetPublicChannelsByIdsForTeam ¶
func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (model.ChannelList, error)
GetPublicChannelsByIdsForTeam provides a mock function with given fields: teamID, channelIds
func (*ChannelStore) GetPublicChannelsForTeam ¶
func (_m *ChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)
GetPublicChannelsForTeam provides a mock function with given fields: teamID, offset, limit
func (*ChannelStore) GetSidebarCategories ¶
func (_m *ChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
GetSidebarCategories provides a mock function with given fields: userID, teamID
func (*ChannelStore) GetSidebarCategory ¶
func (_m *ChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error)
GetSidebarCategory provides a mock function with given fields: categoryID
func (*ChannelStore) GetSidebarCategoryOrder ¶
func (_m *ChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error)
GetSidebarCategoryOrder provides a mock function with given fields: userID, teamID
func (*ChannelStore) GetTeamChannels ¶
func (_m *ChannelStore) GetTeamChannels(teamID string) (model.ChannelList, error)
GetTeamChannels provides a mock function with given fields: teamID
func (*ChannelStore) GetTeamForChannel ¶
func (_m *ChannelStore) GetTeamForChannel(channelID string) (*model.Team, error)
GetTeamForChannel provides a mock function with given fields: channelID
func (*ChannelStore) GetTeamMembersForChannel ¶ added in v6.2.0
func (_m *ChannelStore) GetTeamMembersForChannel(channelID string) ([]string, error)
GetTeamMembersForChannel provides a mock function with given fields: channelID
func (*ChannelStore) GroupSyncedChannelCount ¶
func (_m *ChannelStore) GroupSyncedChannelCount() (int64, error)
GroupSyncedChannelCount provides a mock function with given fields:
func (*ChannelStore) IncrementMentionCount ¶
func (_m *ChannelStore) IncrementMentionCount(channelID string, userID string, updateThreads bool, isRoot bool) error
IncrementMentionCount provides a mock function with given fields: channelID, userID, updateThreads, isRoot
func (*ChannelStore) InvalidateAllChannelMembersForUser ¶
func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userID string)
InvalidateAllChannelMembersForUser provides a mock function with given fields: userID
func (*ChannelStore) InvalidateCacheForChannelMembersNotifyProps ¶
func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelID string)
InvalidateCacheForChannelMembersNotifyProps provides a mock function with given fields: channelID
func (*ChannelStore) InvalidateChannel ¶
func (_m *ChannelStore) InvalidateChannel(id string)
InvalidateChannel provides a mock function with given fields: id
func (*ChannelStore) InvalidateChannelByName ¶
func (_m *ChannelStore) InvalidateChannelByName(teamID string, name string)
InvalidateChannelByName provides a mock function with given fields: teamID, name
func (*ChannelStore) InvalidateGuestCount ¶
func (_m *ChannelStore) InvalidateGuestCount(channelID string)
InvalidateGuestCount provides a mock function with given fields: channelID
func (*ChannelStore) InvalidateMemberCount ¶
func (_m *ChannelStore) InvalidateMemberCount(channelID string)
InvalidateMemberCount provides a mock function with given fields: channelID
func (*ChannelStore) InvalidatePinnedPostCount ¶
func (_m *ChannelStore) InvalidatePinnedPostCount(channelID string)
InvalidatePinnedPostCount provides a mock function with given fields: channelID
func (*ChannelStore) IsUserInChannelUseCache ¶
func (_m *ChannelStore) IsUserInChannelUseCache(userID string, channelID string) bool
IsUserInChannelUseCache provides a mock function with given fields: userID, channelID
func (*ChannelStore) MigrateChannelMembers ¶
func (_m *ChannelStore) MigrateChannelMembers(fromChannelID string, fromUserID string) (map[string]string, error)
MigrateChannelMembers provides a mock function with given fields: fromChannelID, fromUserID
func (*ChannelStore) MigratePublicChannels ¶
func (_m *ChannelStore) MigratePublicChannels() error
MigratePublicChannels provides a mock function with given fields:
func (*ChannelStore) PermanentDelete ¶
func (_m *ChannelStore) PermanentDelete(channelID string) error
PermanentDelete provides a mock function with given fields: channelID
func (*ChannelStore) PermanentDeleteByTeam ¶
func (_m *ChannelStore) PermanentDeleteByTeam(teamID string) error
PermanentDeleteByTeam provides a mock function with given fields: teamID
func (*ChannelStore) PermanentDeleteMembersByChannel ¶
func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelID string) error
PermanentDeleteMembersByChannel provides a mock function with given fields: channelID
func (*ChannelStore) PermanentDeleteMembersByUser ¶
func (_m *ChannelStore) PermanentDeleteMembersByUser(userID string) error
PermanentDeleteMembersByUser provides a mock function with given fields: userID
func (*ChannelStore) RemoveAllDeactivatedMembers ¶
func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelID string) error
RemoveAllDeactivatedMembers provides a mock function with given fields: channelID
func (*ChannelStore) RemoveMember ¶
func (_m *ChannelStore) RemoveMember(channelID string, userID string) error
RemoveMember provides a mock function with given fields: channelID, userID
func (*ChannelStore) RemoveMembers ¶
func (_m *ChannelStore) RemoveMembers(channelID string, userIds []string) error
RemoveMembers provides a mock function with given fields: channelID, userIds
func (*ChannelStore) ResetAllChannelSchemes ¶
func (_m *ChannelStore) ResetAllChannelSchemes() error
ResetAllChannelSchemes provides a mock function with given fields:
func (*ChannelStore) Restore ¶
func (_m *ChannelStore) Restore(channelID string, time int64) error
Restore provides a mock function with given fields: channelID, time
func (*ChannelStore) Save ¶
func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)
Save provides a mock function with given fields: channel, maxChannelsPerTeam
func (*ChannelStore) SaveDirectChannel ¶
func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)
SaveDirectChannel provides a mock function with given fields: channel, member1, member2
func (*ChannelStore) SaveMember ¶
func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, error)
SaveMember provides a mock function with given fields: member
func (*ChannelStore) SaveMultipleMembers ¶
func (_m *ChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
SaveMultipleMembers provides a mock function with given fields: members
func (*ChannelStore) SearchAllChannels ¶
func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (model.ChannelListWithTeamData, int64, error)
SearchAllChannels provides a mock function with given fields: term, opts
func (*ChannelStore) SearchArchivedInTeam ¶
func (_m *ChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (model.ChannelList, error)
SearchArchivedInTeam provides a mock function with given fields: teamID, term, userID
func (*ChannelStore) SearchForUserInTeam ¶
func (_m *ChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (model.ChannelList, error)
SearchForUserInTeam provides a mock function with given fields: userID, teamID, term, includeDeleted
func (*ChannelStore) SearchGroupChannels ¶
func (_m *ChannelStore) SearchGroupChannels(userID string, term string) (model.ChannelList, error)
SearchGroupChannels provides a mock function with given fields: userID, term
func (*ChannelStore) SearchInTeam ¶
func (_m *ChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (model.ChannelList, error)
SearchInTeam provides a mock function with given fields: teamID, term, includeDeleted
func (*ChannelStore) SearchMore ¶
func (_m *ChannelStore) SearchMore(userID string, teamID string, term string) (model.ChannelList, error)
SearchMore provides a mock function with given fields: userID, teamID, term
func (*ChannelStore) SetDeleteAt ¶
func (_m *ChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error
SetDeleteAt provides a mock function with given fields: channelID, deleteAt, updateAt
func (*ChannelStore) SetShared ¶
func (_m *ChannelStore) SetShared(channelId string, shared bool) error
SetShared provides a mock function with given fields: channelId, shared
func (*ChannelStore) UpdateLastViewedAt ¶
func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userID string, updateThreads bool) (map[string]int64, error)
UpdateLastViewedAt provides a mock function with given fields: channelIds, userID, updateThreads
func (*ChannelStore) UpdateLastViewedAtPost ¶
func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, mentionCountRoot int, updateThreads bool, setUnreadCountRoot bool) (*model.ChannelUnreadAt, error)
UpdateLastViewedAtPost provides a mock function with given fields: unreadPost, userID, mentionCount, mentionCountRoot, updateThreads, setUnreadCountRoot
func (*ChannelStore) UpdateMember ¶
func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error)
UpdateMember provides a mock function with given fields: member
func (*ChannelStore) UpdateMemberNotifyProps ¶ added in v6.1.0
func (_m *ChannelStore) UpdateMemberNotifyProps(channelID string, userID string, props map[string]string) (*model.ChannelMember, error)
UpdateMemberNotifyProps provides a mock function with given fields: channelID, userID, props
func (*ChannelStore) UpdateMembersRole ¶
func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) error
UpdateMembersRole provides a mock function with given fields: channelID, userIDs
func (*ChannelStore) UpdateMultipleMembers ¶
func (_m *ChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
UpdateMultipleMembers provides a mock function with given fields: members
func (*ChannelStore) UpdateSidebarCategories ¶
func (_m *ChannelStore) UpdateSidebarCategories(userID string, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, error)
UpdateSidebarCategories provides a mock function with given fields: userID, teamID, categories
func (*ChannelStore) UpdateSidebarCategoryOrder ¶
func (_m *ChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error
UpdateSidebarCategoryOrder provides a mock function with given fields: userID, teamID, categoryOrder
func (*ChannelStore) UpdateSidebarChannelCategoryOnMove ¶
func (_m *ChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error
UpdateSidebarChannelCategoryOnMove provides a mock function with given fields: channel, newTeamID
func (*ChannelStore) UpdateSidebarChannelsByPreferences ¶
func (_m *ChannelStore) UpdateSidebarChannelsByPreferences(preferences model.Preferences) error
UpdateSidebarChannelsByPreferences provides a mock function with given fields: preferences
func (*ChannelStore) UserBelongsToChannels ¶
func (_m *ChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error)
UserBelongsToChannels provides a mock function with given fields: userID, channelIds
type ClusterDiscoveryStore ¶
ClusterDiscoveryStore is an autogenerated mock type for the ClusterDiscoveryStore type
func (*ClusterDiscoveryStore) Cleanup ¶
func (_m *ClusterDiscoveryStore) Cleanup() error
Cleanup provides a mock function with given fields:
func (*ClusterDiscoveryStore) Delete ¶
func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error)
Delete provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) Exists ¶
func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error)
Exists provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) GetAll ¶
func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error)
GetAll provides a mock function with given fields: discoveryType, clusterName
func (*ClusterDiscoveryStore) Save ¶
func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error
Save provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) SetLastPingAt ¶
func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error
SetLastPingAt provides a mock function with given fields: discovery
type CommandStore ¶
CommandStore is an autogenerated mock type for the CommandStore type
func (*CommandStore) AnalyticsCommandCount ¶
func (_m *CommandStore) AnalyticsCommandCount(teamID string) (int64, error)
AnalyticsCommandCount provides a mock function with given fields: teamID
func (*CommandStore) Delete ¶
func (_m *CommandStore) Delete(commandID string, time int64) error
Delete provides a mock function with given fields: commandID, time
func (*CommandStore) Get ¶
func (_m *CommandStore) Get(id string) (*model.Command, error)
Get provides a mock function with given fields: id
func (*CommandStore) GetByTeam ¶
func (_m *CommandStore) GetByTeam(teamID string) ([]*model.Command, error)
GetByTeam provides a mock function with given fields: teamID
func (*CommandStore) GetByTrigger ¶
GetByTrigger provides a mock function with given fields: teamID, trigger
func (*CommandStore) PermanentDeleteByTeam ¶
func (_m *CommandStore) PermanentDeleteByTeam(teamID string) error
PermanentDeleteByTeam provides a mock function with given fields: teamID
func (*CommandStore) PermanentDeleteByUser ¶
func (_m *CommandStore) PermanentDeleteByUser(userID string) error
PermanentDeleteByUser provides a mock function with given fields: userID
type CommandWebhookStore ¶
CommandWebhookStore is an autogenerated mock type for the CommandWebhookStore type
func (*CommandWebhookStore) Cleanup ¶
func (_m *CommandWebhookStore) Cleanup()
Cleanup provides a mock function with given fields:
func (*CommandWebhookStore) Get ¶
func (_m *CommandWebhookStore) Get(id string) (*model.CommandWebhook, error)
Get provides a mock function with given fields: id
func (*CommandWebhookStore) Save ¶
func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, error)
Save provides a mock function with given fields: webhook
type ComplianceStore ¶
ComplianceStore is an autogenerated mock type for the ComplianceStore type
func (*ComplianceStore) ComplianceExport ¶
func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance, cursor model.ComplianceExportCursor, limit int) ([]*model.CompliancePost, model.ComplianceExportCursor, error)
ComplianceExport provides a mock function with given fields: compliance, cursor, limit
func (*ComplianceStore) Get ¶
func (_m *ComplianceStore) Get(id string) (*model.Compliance, error)
Get provides a mock function with given fields: id
func (*ComplianceStore) GetAll ¶
func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, error)
GetAll provides a mock function with given fields: offset, limit
func (*ComplianceStore) MessageExport ¶
func (_m *ComplianceStore) MessageExport(cursor model.MessageExportCursor, limit int) ([]*model.MessageExport, model.MessageExportCursor, error)
MessageExport provides a mock function with given fields: cursor, limit
func (*ComplianceStore) Save ¶
func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error)
Save provides a mock function with given fields: compliance
func (*ComplianceStore) Update ¶
func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error)
Update provides a mock function with given fields: compliance
type EmojiStore ¶
EmojiStore is an autogenerated mock type for the EmojiStore type
func (*EmojiStore) Delete ¶
func (_m *EmojiStore) Delete(emoji *model.Emoji, time int64) error
Delete provides a mock function with given fields: emoji, time
func (*EmojiStore) Get ¶
func (_m *EmojiStore) Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error)
Get provides a mock function with given fields: ctx, id, allowFromCache
func (*EmojiStore) GetByName ¶
func (_m *EmojiStore) GetByName(ctx context.Context, name string, allowFromCache bool) (*model.Emoji, error)
GetByName provides a mock function with given fields: ctx, name, allowFromCache
func (*EmojiStore) GetList ¶
GetList provides a mock function with given fields: offset, limit, sort
func (*EmojiStore) GetMultipleByName ¶
func (_m *EmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error)
GetMultipleByName provides a mock function with given fields: names
type FileInfoStore ¶
FileInfoStore is an autogenerated mock type for the FileInfoStore type
func (*FileInfoStore) AttachToPost ¶
func (_m *FileInfoStore) AttachToPost(fileID string, postID string, creatorID string) error
AttachToPost provides a mock function with given fields: fileID, postID, creatorID
func (*FileInfoStore) ClearCaches ¶
func (_m *FileInfoStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*FileInfoStore) CountAll ¶
func (_m *FileInfoStore) CountAll() (int64, error)
CountAll provides a mock function with given fields:
func (*FileInfoStore) DeleteForPost ¶
func (_m *FileInfoStore) DeleteForPost(postID string) (string, error)
DeleteForPost provides a mock function with given fields: postID
func (*FileInfoStore) Get ¶
func (_m *FileInfoStore) Get(id string) (*model.FileInfo, error)
Get provides a mock function with given fields: id
func (*FileInfoStore) GetByIds ¶
func (_m *FileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error)
GetByIds provides a mock function with given fields: ids
func (*FileInfoStore) GetByPath ¶
func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, error)
GetByPath provides a mock function with given fields: path
func (*FileInfoStore) GetFilesBatchForIndexing ¶
func (_m *FileInfoStore) GetFilesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.FileForIndexing, error)
GetFilesBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*FileInfoStore) GetForPost ¶
func (_m *FileInfoStore) GetForPost(postID string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, error)
GetForPost provides a mock function with given fields: postID, readFromMaster, includeDeleted, allowFromCache
func (*FileInfoStore) GetForUser ¶
func (_m *FileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error)
GetForUser provides a mock function with given fields: userID
func (*FileInfoStore) GetFromMaster ¶
func (_m *FileInfoStore) GetFromMaster(id string) (*model.FileInfo, error)
GetFromMaster provides a mock function with given fields: id
func (*FileInfoStore) GetWithOptions ¶
func (_m *FileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error)
GetWithOptions provides a mock function with given fields: page, perPage, opt
func (*FileInfoStore) InvalidateFileInfosForPostCache ¶
func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted bool)
InvalidateFileInfosForPostCache provides a mock function with given fields: postID, deleted
func (*FileInfoStore) PermanentDelete ¶
func (_m *FileInfoStore) PermanentDelete(fileID string) error
PermanentDelete provides a mock function with given fields: fileID
func (*FileInfoStore) PermanentDeleteBatch ¶
func (_m *FileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
func (*FileInfoStore) PermanentDeleteByUser ¶
func (_m *FileInfoStore) PermanentDeleteByUser(userID string) (int64, error)
PermanentDeleteByUser provides a mock function with given fields: userID
func (*FileInfoStore) Search ¶
func (_m *FileInfoStore) Search(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.FileInfoList, error)
Search provides a mock function with given fields: paramsList, userID, teamID, page, perPage
func (*FileInfoStore) SetContent ¶
func (_m *FileInfoStore) SetContent(fileID string, content string) error
SetContent provides a mock function with given fields: fileID, content
type GroupStore ¶
GroupStore is an autogenerated mock type for the GroupStore type
func (*GroupStore) AdminRoleGroupsForSyncableMember ¶
func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error)
AdminRoleGroupsForSyncableMember provides a mock function with given fields: userID, syncableID, syncableType
func (*GroupStore) ChannelMembersMinusGroupMembers ¶
func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
ChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs, page, perPage
func (*GroupStore) ChannelMembersToAdd ¶
func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string, includeRemovedMembers bool) ([]*model.UserChannelIDPair, error)
ChannelMembersToAdd provides a mock function with given fields: since, channelID, includeRemovedMembers
func (*GroupStore) ChannelMembersToRemove ¶
func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error)
ChannelMembersToRemove provides a mock function with given fields: channelID
func (*GroupStore) CountChannelMembersMinusGroupMembers ¶
func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error)
CountChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs
func (*GroupStore) CountGroupsByChannel ¶
func (_m *GroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error)
CountGroupsByChannel provides a mock function with given fields: channelID, opts
func (*GroupStore) CountGroupsByTeam ¶
func (_m *GroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error)
CountGroupsByTeam provides a mock function with given fields: teamID, opts
func (*GroupStore) CountTeamMembersMinusGroupMembers ¶
func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error)
CountTeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs
func (*GroupStore) CreateGroupSyncable ¶
func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
CreateGroupSyncable provides a mock function with given fields: groupSyncable
func (*GroupStore) Delete ¶
func (_m *GroupStore) Delete(groupID string) (*model.Group, error)
Delete provides a mock function with given fields: groupID
func (*GroupStore) DeleteGroupSyncable ¶
func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
DeleteGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
func (*GroupStore) DeleteMember ¶
func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error)
DeleteMember provides a mock function with given fields: groupID, userID
func (*GroupStore) DistinctGroupMemberCount ¶
func (_m *GroupStore) DistinctGroupMemberCount() (int64, error)
DistinctGroupMemberCount provides a mock function with given fields:
func (*GroupStore) Get ¶
func (_m *GroupStore) Get(groupID string) (*model.Group, error)
Get provides a mock function with given fields: groupID
func (*GroupStore) GetAllBySource ¶
func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error)
GetAllBySource provides a mock function with given fields: groupSource
func (*GroupStore) GetAllGroupSyncablesByGroupId ¶
func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error)
GetAllGroupSyncablesByGroupId provides a mock function with given fields: groupID, syncableType
func (*GroupStore) GetByIDs ¶
func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error)
GetByIDs provides a mock function with given fields: groupIDs
func (*GroupStore) GetByName ¶
func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error)
GetByName provides a mock function with given fields: name, opts
func (*GroupStore) GetByRemoteID ¶
func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error)
GetByRemoteID provides a mock function with given fields: remoteID, groupSource
func (*GroupStore) GetByUser ¶
func (_m *GroupStore) GetByUser(userID string) ([]*model.Group, error)
GetByUser provides a mock function with given fields: userID
func (*GroupStore) GetGroupSyncable ¶
func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
GetGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
func (*GroupStore) GetGroups ¶
func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error)
GetGroups provides a mock function with given fields: page, perPage, opts
func (*GroupStore) GetGroupsAssociatedToChannelsByTeam ¶
func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error)
GetGroupsAssociatedToChannelsByTeam provides a mock function with given fields: teamID, opts
func (*GroupStore) GetGroupsByChannel ¶
func (_m *GroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
GetGroupsByChannel provides a mock function with given fields: channelID, opts
func (*GroupStore) GetGroupsByTeam ¶
func (_m *GroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
GetGroupsByTeam provides a mock function with given fields: teamID, opts
func (*GroupStore) GetMemberCount ¶
func (_m *GroupStore) GetMemberCount(groupID string) (int64, error)
GetMemberCount provides a mock function with given fields: groupID
func (*GroupStore) GetMemberUsers ¶
func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error)
GetMemberUsers provides a mock function with given fields: groupID
func (*GroupStore) GetMemberUsersInTeam ¶
GetMemberUsersInTeam provides a mock function with given fields: groupID, teamID
func (*GroupStore) GetMemberUsersNotInChannel ¶
func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error)
GetMemberUsersNotInChannel provides a mock function with given fields: groupID, channelID
func (*GroupStore) GetMemberUsersPage ¶
func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, error)
GetMemberUsersPage provides a mock function with given fields: groupID, page, perPage
func (*GroupStore) GroupChannelCount ¶
func (_m *GroupStore) GroupChannelCount() (int64, error)
GroupChannelCount provides a mock function with given fields:
func (*GroupStore) GroupCount ¶
func (_m *GroupStore) GroupCount() (int64, error)
GroupCount provides a mock function with given fields:
func (*GroupStore) GroupCountWithAllowReference ¶
func (_m *GroupStore) GroupCountWithAllowReference() (int64, error)
GroupCountWithAllowReference provides a mock function with given fields:
func (*GroupStore) GroupMemberCount ¶
func (_m *GroupStore) GroupMemberCount() (int64, error)
GroupMemberCount provides a mock function with given fields:
func (*GroupStore) GroupTeamCount ¶
func (_m *GroupStore) GroupTeamCount() (int64, error)
GroupTeamCount provides a mock function with given fields:
func (*GroupStore) PermanentDeleteMembersByUser ¶
func (_m *GroupStore) PermanentDeleteMembersByUser(userID string) error
PermanentDeleteMembersByUser provides a mock function with given fields: userID
func (*GroupStore) PermittedSyncableAdmins ¶
func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error)
PermittedSyncableAdmins provides a mock function with given fields: syncableID, syncableType
func (*GroupStore) TeamMembersMinusGroupMembers ¶
func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
TeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs, page, perPage
func (*GroupStore) TeamMembersToAdd ¶
func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemovedMembers bool) ([]*model.UserTeamIDPair, error)
TeamMembersToAdd provides a mock function with given fields: since, teamID, includeRemovedMembers
func (*GroupStore) TeamMembersToRemove ¶
func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error)
TeamMembersToRemove provides a mock function with given fields: teamID
func (*GroupStore) UpdateGroupSyncable ¶
func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
UpdateGroupSyncable provides a mock function with given fields: groupSyncable
func (*GroupStore) UpsertMember ¶
func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error)
UpsertMember provides a mock function with given fields: groupID, userID
type JSONSerializable ¶
JSONSerializable is an autogenerated mock type for the JSONSerializable type
func (*JSONSerializable) ToJSON ¶
func (_m *JSONSerializable) ToJSON() string
ToJSON provides a mock function with given fields:
type JobStore ¶
JobStore is an autogenerated mock type for the JobStore type
func (*JobStore) Cleanup ¶ added in v6.1.0
Cleanup provides a mock function with given fields: expiryTime, batchSize
func (*JobStore) GetAllByStatus ¶
GetAllByStatus provides a mock function with given fields: status
func (*JobStore) GetAllByType ¶
GetAllByType provides a mock function with given fields: jobType
func (*JobStore) GetAllByTypePage ¶
GetAllByTypePage provides a mock function with given fields: jobType, offset, limit
func (*JobStore) GetAllByTypesPage ¶
func (_m *JobStore) GetAllByTypesPage(jobTypes []string, offset int, limit int) ([]*model.Job, error)
GetAllByTypesPage provides a mock function with given fields: jobTypes, offset, limit
func (*JobStore) GetAllPage ¶
GetAllPage provides a mock function with given fields: offset, limit
func (*JobStore) GetCountByStatusAndType ¶
GetCountByStatusAndType provides a mock function with given fields: status, jobType
func (*JobStore) GetNewestJobByStatusAndType ¶
GetNewestJobByStatusAndType provides a mock function with given fields: status, jobType
func (*JobStore) GetNewestJobByStatusesAndType ¶
func (_m *JobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error)
GetNewestJobByStatusesAndType provides a mock function with given fields: statuses, jobType
func (*JobStore) UpdateOptimistically ¶
UpdateOptimistically provides a mock function with given fields: job, currentStatus
func (*JobStore) UpdateStatus ¶
UpdateStatus provides a mock function with given fields: id, status
type LicenseStore ¶
LicenseStore is an autogenerated mock type for the LicenseStore type
func (*LicenseStore) Get ¶
func (_m *LicenseStore) Get(id string) (*model.LicenseRecord, error)
Get provides a mock function with given fields: id
func (*LicenseStore) GetAll ¶
func (_m *LicenseStore) GetAll() ([]*model.LicenseRecord, error)
GetAll provides a mock function with given fields:
func (*LicenseStore) Save ¶
func (_m *LicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error)
Save provides a mock function with given fields: license
type LinkMetadataStore ¶
LinkMetadataStore is an autogenerated mock type for the LinkMetadataStore type
func (*LinkMetadataStore) Get ¶
func (_m *LinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error)
Get provides a mock function with given fields: url, timestamp
func (*LinkMetadataStore) Save ¶
func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error)
Save provides a mock function with given fields: linkMetadata
type OAuthStore ¶
OAuthStore is an autogenerated mock type for the OAuthStore type
func (*OAuthStore) DeleteApp ¶
func (_m *OAuthStore) DeleteApp(id string) error
DeleteApp provides a mock function with given fields: id
func (*OAuthStore) GetAccessData ¶
func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, error)
GetAccessData provides a mock function with given fields: token
func (*OAuthStore) GetAccessDataByRefreshToken ¶
func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)
GetAccessDataByRefreshToken provides a mock function with given fields: token
func (*OAuthStore) GetAccessDataByUserForApp ¶
func (_m *OAuthStore) GetAccessDataByUserForApp(userID string, clientId string) ([]*model.AccessData, error)
GetAccessDataByUserForApp provides a mock function with given fields: userID, clientId
func (*OAuthStore) GetApp ¶
func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, error)
GetApp provides a mock function with given fields: id
func (*OAuthStore) GetAppByUser ¶
GetAppByUser provides a mock function with given fields: userID, offset, limit
func (*OAuthStore) GetAuthData ¶
func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, error)
GetAuthData provides a mock function with given fields: code
func (*OAuthStore) GetAuthorizedApps ¶
func (_m *OAuthStore) GetAuthorizedApps(userID string, offset int, limit int) ([]*model.OAuthApp, error)
GetAuthorizedApps provides a mock function with given fields: userID, offset, limit
func (*OAuthStore) GetPreviousAccessData ¶
func (_m *OAuthStore) GetPreviousAccessData(userID string, clientId string) (*model.AccessData, error)
GetPreviousAccessData provides a mock function with given fields: userID, clientId
func (*OAuthStore) PermanentDeleteAuthDataByUser ¶
func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userID string) error
PermanentDeleteAuthDataByUser provides a mock function with given fields: userID
func (*OAuthStore) RemoveAccessData ¶
func (_m *OAuthStore) RemoveAccessData(token string) error
RemoveAccessData provides a mock function with given fields: token
func (*OAuthStore) RemoveAllAccessData ¶
func (_m *OAuthStore) RemoveAllAccessData() error
RemoveAllAccessData provides a mock function with given fields:
func (*OAuthStore) RemoveAuthData ¶
func (_m *OAuthStore) RemoveAuthData(code string) error
RemoveAuthData provides a mock function with given fields: code
func (*OAuthStore) SaveAccessData ¶
func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)
SaveAccessData provides a mock function with given fields: accessData
func (*OAuthStore) SaveAuthData ¶
SaveAuthData provides a mock function with given fields: authData
func (*OAuthStore) UpdateAccessData ¶
func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error)
UpdateAccessData provides a mock function with given fields: accessData
type ObjectCache ¶
ObjectCache is an autogenerated mock type for the ObjectCache type
func (*ObjectCache) AddWithDefaultExpires ¶
func (_m *ObjectCache) AddWithDefaultExpires(key interface{}, value interface{})
AddWithDefaultExpires provides a mock function with given fields: key, value
func (*ObjectCache) AddWithExpiresInSecs ¶
func (_m *ObjectCache) AddWithExpiresInSecs(key interface{}, value interface{}, expireAtSecs int64)
AddWithExpiresInSecs provides a mock function with given fields: key, value, expireAtSecs
func (*ObjectCache) Get ¶
func (_m *ObjectCache) Get(key interface{}) (interface{}, bool)
Get provides a mock function with given fields: key
func (*ObjectCache) GetInvalidateClusterEvent ¶
func (_m *ObjectCache) GetInvalidateClusterEvent() string
GetInvalidateClusterEvent provides a mock function with given fields:
func (*ObjectCache) Len ¶
func (_m *ObjectCache) Len() int
Len provides a mock function with given fields:
func (*ObjectCache) Name ¶
func (_m *ObjectCache) Name() string
Name provides a mock function with given fields:
func (*ObjectCache) Purge ¶
func (_m *ObjectCache) Purge()
Purge provides a mock function with given fields:
func (*ObjectCache) Remove ¶
func (_m *ObjectCache) Remove(key interface{})
Remove provides a mock function with given fields: key
type PluginStore ¶
PluginStore is an autogenerated mock type for the PluginStore type
func (*PluginStore) CompareAndDelete ¶
func (_m *PluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
CompareAndDelete provides a mock function with given fields: keyVal, oldValue
func (*PluginStore) CompareAndSet ¶
func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
CompareAndSet provides a mock function with given fields: keyVal, oldValue
func (*PluginStore) Delete ¶
func (_m *PluginStore) Delete(pluginID string, key string) error
Delete provides a mock function with given fields: pluginID, key
func (*PluginStore) DeleteAllExpired ¶
func (_m *PluginStore) DeleteAllExpired() error
DeleteAllExpired provides a mock function with given fields:
func (*PluginStore) DeleteAllForPlugin ¶
func (_m *PluginStore) DeleteAllForPlugin(PluginID string) error
DeleteAllForPlugin provides a mock function with given fields: PluginID
func (*PluginStore) Get ¶
func (_m *PluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error)
Get provides a mock function with given fields: pluginID, key
func (*PluginStore) SaveOrUpdate ¶
func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error)
SaveOrUpdate provides a mock function with given fields: keyVal
func (*PluginStore) SetWithOptions ¶
func (_m *PluginStore) SetWithOptions(pluginID string, key string, value []byte, options model.PluginKVSetOptions) (bool, error)
SetWithOptions provides a mock function with given fields: pluginID, key, value, options
type PostStore ¶
PostStore is an autogenerated mock type for the PostStore type
func (*PostStore) AnalyticsPostCount ¶
func (_m *PostStore) AnalyticsPostCount(teamID string, mustHaveFile bool, mustHaveHashtag bool) (int64, error)
AnalyticsPostCount provides a mock function with given fields: teamID, mustHaveFile, mustHaveHashtag
func (*PostStore) AnalyticsPostCountsByDay ¶
func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error)
AnalyticsPostCountsByDay provides a mock function with given fields: options
func (*PostStore) AnalyticsUserCountsWithPostsByDay ¶
func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error)
AnalyticsUserCountsWithPostsByDay provides a mock function with given fields: teamID
func (*PostStore) ClearCaches ¶
func (_m *PostStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*PostStore) Delete ¶
Delete provides a mock function with given fields: postID, time, deleteByID
func (*PostStore) DeleteOrphanedRows ¶
DeleteOrphanedRows provides a mock function with given fields: limit
func (*PostStore) Get ¶
func (_m *PostStore) Get(ctx context.Context, id string, skipFetchThreads bool, collapsedThreads bool, collapsedThreadsExtended bool, userID string) (*model.PostList, error)
Get provides a mock function with given fields: ctx, id, skipFetchThreads, collapsedThreads, collapsedThreadsExtended, userID
func (*PostStore) GetDirectPostParentsForExportAfter ¶
func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterID string) ([]*model.DirectPostForExport, error)
GetDirectPostParentsForExportAfter provides a mock function with given fields: limit, afterID
func (*PostStore) GetEtag ¶
GetEtag provides a mock function with given fields: channelID, allowFromCache, collapsedThreads
func (*PostStore) GetFlaggedPosts ¶
GetFlaggedPosts provides a mock function with given fields: userID, offset, limit
func (*PostStore) GetFlaggedPostsForChannel ¶
func (_m *PostStore) GetFlaggedPostsForChannel(userID string, channelID string, offset int, limit int) (*model.PostList, error)
GetFlaggedPostsForChannel provides a mock function with given fields: userID, channelID, offset, limit
func (*PostStore) GetFlaggedPostsForTeam ¶
func (_m *PostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset int, limit int) (*model.PostList, error)
GetFlaggedPostsForTeam provides a mock function with given fields: userID, teamID, offset, limit
func (*PostStore) GetMaxPostSize ¶
GetMaxPostSize provides a mock function with given fields:
func (*PostStore) GetOldestEntityCreationTime ¶
GetOldestEntityCreationTime provides a mock function with given fields:
func (*PostStore) GetParentsForExportAfter ¶
func (_m *PostStore) GetParentsForExportAfter(limit int, afterID string) ([]*model.PostForExport, error)
GetParentsForExportAfter provides a mock function with given fields: limit, afterID
func (*PostStore) GetPostAfterTime ¶
func (_m *PostStore) GetPostAfterTime(channelID string, time int64, collapsedThreads bool) (*model.Post, error)
GetPostAfterTime provides a mock function with given fields: channelID, time, collapsedThreads
func (*PostStore) GetPostIdAfterTime ¶
func (_m *PostStore) GetPostIdAfterTime(channelID string, time int64, collapsedThreads bool) (string, error)
GetPostIdAfterTime provides a mock function with given fields: channelID, time, collapsedThreads
func (*PostStore) GetPostIdBeforeTime ¶
func (_m *PostStore) GetPostIdBeforeTime(channelID string, time int64, collapsedThreads bool) (string, error)
GetPostIdBeforeTime provides a mock function with given fields: channelID, time, collapsedThreads
func (*PostStore) GetPosts ¶
func (_m *PostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, error)
GetPosts provides a mock function with given fields: options, allowFromCache
func (*PostStore) GetPostsAfter ¶
GetPostsAfter provides a mock function with given fields: options
func (*PostStore) GetPostsBatchForIndexing ¶
func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, error)
GetPostsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*PostStore) GetPostsBefore ¶
GetPostsBefore provides a mock function with given fields: options
func (*PostStore) GetPostsByIds ¶
GetPostsByIds provides a mock function with given fields: postIds
func (*PostStore) GetPostsCreatedAt ¶
GetPostsCreatedAt provides a mock function with given fields: channelID, time
func (*PostStore) GetPostsSince ¶
func (_m *PostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, error)
GetPostsSince provides a mock function with given fields: options, allowFromCache
func (*PostStore) GetPostsSinceForSync ¶
func (_m *PostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOptions, cursor model.GetPostsSinceForSyncCursor, limit int) ([]*model.Post, model.GetPostsSinceForSyncCursor, error)
GetPostsSinceForSync provides a mock function with given fields: options, cursor, limit
func (*PostStore) GetRepliesForExport ¶
func (_m *PostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error)
GetRepliesForExport provides a mock function with given fields: parentID
func (*PostStore) HasAutoResponsePostByUserSince ¶
func (_m *PostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error)
HasAutoResponsePostByUserSince provides a mock function with given fields: options, userId
func (*PostStore) InvalidateLastPostTimeCache ¶
InvalidateLastPostTimeCache provides a mock function with given fields: channelID
func (*PostStore) OverwriteMultiple ¶
OverwriteMultiple provides a mock function with given fields: posts
func (*PostStore) PermanentDeleteBatch ¶
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
func (*PostStore) PermanentDeleteBatchForRetentionPolicies ¶
func (_m *PostStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)
PermanentDeleteBatchForRetentionPolicies provides a mock function with given fields: now, globalPolicyEndTime, limit, cursor
func (*PostStore) PermanentDeleteByChannel ¶
PermanentDeleteByChannel provides a mock function with given fields: channelID
func (*PostStore) PermanentDeleteByUser ¶
PermanentDeleteByUser provides a mock function with given fields: userID
func (*PostStore) SaveMultiple ¶
SaveMultiple provides a mock function with given fields: posts
func (*PostStore) Search ¶
func (_m *PostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error)
Search provides a mock function with given fields: teamID, userID, params
func (*PostStore) SearchPostsForUser ¶ added in v6.1.0
func (_m *PostStore) SearchPostsForUser(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.PostSearchResults, error)
SearchPostsForUser provides a mock function with given fields: paramsList, userID, teamID, page, perPage
type PreferenceStore ¶
PreferenceStore is an autogenerated mock type for the PreferenceStore type
func (*PreferenceStore) CleanupFlagsBatch ¶
func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, error)
CleanupFlagsBatch provides a mock function with given fields: limit
func (*PreferenceStore) Delete ¶
func (_m *PreferenceStore) Delete(userID string, category string, name string) error
Delete provides a mock function with given fields: userID, category, name
func (*PreferenceStore) DeleteCategory ¶
func (_m *PreferenceStore) DeleteCategory(userID string, category string) error
DeleteCategory provides a mock function with given fields: userID, category
func (*PreferenceStore) DeleteCategoryAndName ¶
func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) error
DeleteCategoryAndName provides a mock function with given fields: category, name
func (*PreferenceStore) DeleteOrphanedRows ¶
func (_m *PreferenceStore) DeleteOrphanedRows(limit int) (int64, error)
DeleteOrphanedRows provides a mock function with given fields: limit
func (*PreferenceStore) Get ¶
func (_m *PreferenceStore) Get(userID string, category string, name string) (*model.Preference, error)
Get provides a mock function with given fields: userID, category, name
func (*PreferenceStore) GetAll ¶
func (_m *PreferenceStore) GetAll(userID string) (model.Preferences, error)
GetAll provides a mock function with given fields: userID
func (*PreferenceStore) GetCategory ¶
func (_m *PreferenceStore) GetCategory(userID string, category string) (model.Preferences, error)
GetCategory provides a mock function with given fields: userID, category
func (*PreferenceStore) PermanentDeleteByUser ¶
func (_m *PreferenceStore) PermanentDeleteByUser(userID string) error
PermanentDeleteByUser provides a mock function with given fields: userID
func (*PreferenceStore) Save ¶
func (_m *PreferenceStore) Save(preferences model.Preferences) error
Save provides a mock function with given fields: preferences
type ProductNoticesStore ¶
ProductNoticesStore is an autogenerated mock type for the ProductNoticesStore type
func (*ProductNoticesStore) Clear ¶
func (_m *ProductNoticesStore) Clear(notices []string) error
Clear provides a mock function with given fields: notices
func (*ProductNoticesStore) ClearOldNotices ¶
func (_m *ProductNoticesStore) ClearOldNotices(currentNotices model.ProductNotices) error
ClearOldNotices provides a mock function with given fields: currentNotices
func (*ProductNoticesStore) GetViews ¶
func (_m *ProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeViewState, error)
GetViews provides a mock function with given fields: userID
type ReactionStore ¶
ReactionStore is an autogenerated mock type for the ReactionStore type
func (*ReactionStore) BulkGetForPosts ¶
func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error)
BulkGetForPosts provides a mock function with given fields: postIds
func (*ReactionStore) DeleteAllWithEmojiName ¶
func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) error
DeleteAllWithEmojiName provides a mock function with given fields: emojiName
func (*ReactionStore) DeleteOrphanedRows ¶
func (_m *ReactionStore) DeleteOrphanedRows(limit int) (int64, error)
DeleteOrphanedRows provides a mock function with given fields: limit
func (*ReactionStore) GetForPost ¶
GetForPost provides a mock function with given fields: postID, allowFromCache
func (*ReactionStore) GetForPostSince ¶
func (_m *ReactionStore) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted bool) ([]*model.Reaction, error)
GetForPostSince provides a mock function with given fields: postId, since, excludeRemoteId, inclDeleted
func (*ReactionStore) PermanentDeleteBatch ¶
func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
type RemoteClusterStore ¶
RemoteClusterStore is an autogenerated mock type for the RemoteClusterStore type
func (*RemoteClusterStore) Delete ¶
func (_m *RemoteClusterStore) Delete(remoteClusterId string) (bool, error)
Delete provides a mock function with given fields: remoteClusterId
func (*RemoteClusterStore) Get ¶
func (_m *RemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error)
Get provides a mock function with given fields: remoteClusterId
func (*RemoteClusterStore) GetAll ¶
func (_m *RemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error)
GetAll provides a mock function with given fields: filter
func (*RemoteClusterStore) Save ¶
func (_m *RemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluster, error)
Save provides a mock function with given fields: rc
func (*RemoteClusterStore) SetLastPingAt ¶
func (_m *RemoteClusterStore) SetLastPingAt(remoteClusterId string) error
SetLastPingAt provides a mock function with given fields: remoteClusterId
func (*RemoteClusterStore) Update ¶
func (_m *RemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteCluster, error)
Update provides a mock function with given fields: rc
func (*RemoteClusterStore) UpdateTopics ¶
func (_m *RemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error)
UpdateTopics provides a mock function with given fields: remoteClusterId, topics
type RetentionPolicyStore ¶
RetentionPolicyStore is an autogenerated mock type for the RetentionPolicyStore type
func (*RetentionPolicyStore) AddChannels ¶
func (_m *RetentionPolicyStore) AddChannels(policyId string, channelIds []string) error
AddChannels provides a mock function with given fields: policyId, channelIds
func (*RetentionPolicyStore) AddTeams ¶
func (_m *RetentionPolicyStore) AddTeams(policyId string, teamIds []string) error
AddTeams provides a mock function with given fields: policyId, teamIds
func (*RetentionPolicyStore) Delete ¶
func (_m *RetentionPolicyStore) Delete(id string) error
Delete provides a mock function with given fields: id
func (*RetentionPolicyStore) DeleteOrphanedRows ¶
func (_m *RetentionPolicyStore) DeleteOrphanedRows(limit int) (int64, error)
DeleteOrphanedRows provides a mock function with given fields: limit
func (*RetentionPolicyStore) Get ¶
func (_m *RetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
Get provides a mock function with given fields: id
func (*RetentionPolicyStore) GetAll ¶
func (_m *RetentionPolicyStore) GetAll(offset int, limit int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error)
GetAll provides a mock function with given fields: offset, limit
func (*RetentionPolicyStore) GetChannelPoliciesCountForUser ¶
func (_m *RetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error)
GetChannelPoliciesCountForUser provides a mock function with given fields: userID
func (*RetentionPolicyStore) GetChannelPoliciesForUser ¶
func (_m *RetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error)
GetChannelPoliciesForUser provides a mock function with given fields: userID, offset, limit
func (*RetentionPolicyStore) GetChannels ¶
func (_m *RetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error)
GetChannels provides a mock function with given fields: policyId, offset, limit
func (*RetentionPolicyStore) GetChannelsCount ¶
func (_m *RetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
GetChannelsCount provides a mock function with given fields: policyId
func (*RetentionPolicyStore) GetCount ¶
func (_m *RetentionPolicyStore) GetCount() (int64, error)
GetCount provides a mock function with given fields:
func (*RetentionPolicyStore) GetTeamPoliciesCountForUser ¶
func (_m *RetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error)
GetTeamPoliciesCountForUser provides a mock function with given fields: userID
func (*RetentionPolicyStore) GetTeamPoliciesForUser ¶
func (_m *RetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error)
GetTeamPoliciesForUser provides a mock function with given fields: userID, offset, limit
func (*RetentionPolicyStore) GetTeams ¶
func (_m *RetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error)
GetTeams provides a mock function with given fields: policyId, offset, limit
func (*RetentionPolicyStore) GetTeamsCount ¶
func (_m *RetentionPolicyStore) GetTeamsCount(policyId string) (int64, error)
GetTeamsCount provides a mock function with given fields: policyId
func (*RetentionPolicyStore) Patch ¶
func (_m *RetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
Patch provides a mock function with given fields: patch
func (*RetentionPolicyStore) RemoveChannels ¶
func (_m *RetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error
RemoveChannels provides a mock function with given fields: policyId, channelIds
func (*RetentionPolicyStore) RemoveTeams ¶
func (_m *RetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error
RemoveTeams provides a mock function with given fields: policyId, teamIds
func (*RetentionPolicyStore) Save ¶
func (_m *RetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
Save provides a mock function with given fields: policy
type RoleStore ¶
RoleStore is an autogenerated mock type for the RoleStore type
func (*RoleStore) AllChannelSchemeRoles ¶
AllChannelSchemeRoles provides a mock function with given fields:
func (*RoleStore) ChannelHigherScopedPermissions ¶
func (_m *RoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error)
ChannelHigherScopedPermissions provides a mock function with given fields: roleNames
func (*RoleStore) ChannelRolesUnderTeamRole ¶
ChannelRolesUnderTeamRole provides a mock function with given fields: roleName
func (*RoleStore) GetByNames ¶
GetByNames provides a mock function with given fields: names
func (*RoleStore) PermanentDeleteAll ¶
PermanentDeleteAll provides a mock function with given fields:
type SchemeStore ¶
SchemeStore is an autogenerated mock type for the SchemeStore type
func (*SchemeStore) CountByScope ¶
func (_m *SchemeStore) CountByScope(scope string) (int64, error)
CountByScope provides a mock function with given fields: scope
func (*SchemeStore) CountWithoutPermission ¶
func (_m *SchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, error)
CountWithoutPermission provides a mock function with given fields: scope, permissionID, roleScope, roleType
func (*SchemeStore) Delete ¶
func (_m *SchemeStore) Delete(schemeID string) (*model.Scheme, error)
Delete provides a mock function with given fields: schemeID
func (*SchemeStore) Get ¶
func (_m *SchemeStore) Get(schemeID string) (*model.Scheme, error)
Get provides a mock function with given fields: schemeID
func (*SchemeStore) GetAllPage ¶
GetAllPage provides a mock function with given fields: scope, offset, limit
func (*SchemeStore) GetByName ¶
func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error)
GetByName provides a mock function with given fields: schemeName
func (*SchemeStore) PermanentDeleteAll ¶
func (_m *SchemeStore) PermanentDeleteAll() error
PermanentDeleteAll provides a mock function with given fields:
type SessionStore ¶
SessionStore is an autogenerated mock type for the SessionStore type
func (*SessionStore) AnalyticsSessionCount ¶
func (_m *SessionStore) AnalyticsSessionCount() (int64, error)
AnalyticsSessionCount provides a mock function with given fields:
func (*SessionStore) Cleanup ¶
func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64) error
Cleanup provides a mock function with given fields: expiryTime, batchSize
func (*SessionStore) GetSessions ¶
func (_m *SessionStore) GetSessions(userID string) ([]*model.Session, error)
GetSessions provides a mock function with given fields: userID
func (*SessionStore) GetSessionsExpired ¶
func (_m *SessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error)
GetSessionsExpired provides a mock function with given fields: thresholdMillis, mobileOnly, unnotifiedOnly
func (*SessionStore) GetSessionsWithActiveDeviceIds ¶
func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userID string) ([]*model.Session, error)
GetSessionsWithActiveDeviceIds provides a mock function with given fields: userID
func (*SessionStore) PermanentDeleteSessionsByUser ¶
func (_m *SessionStore) PermanentDeleteSessionsByUser(teamID string) error
PermanentDeleteSessionsByUser provides a mock function with given fields: teamID
func (*SessionStore) Remove ¶
func (_m *SessionStore) Remove(sessionIDOrToken string) error
Remove provides a mock function with given fields: sessionIDOrToken
func (*SessionStore) RemoveAllSessions ¶
func (_m *SessionStore) RemoveAllSessions() error
RemoveAllSessions provides a mock function with given fields:
func (*SessionStore) UpdateDeviceId ¶
UpdateDeviceId provides a mock function with given fields: id, deviceID, expiresAt
func (*SessionStore) UpdateExpiredNotify ¶
func (_m *SessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
UpdateExpiredNotify provides a mock function with given fields: sessionid, notified
func (*SessionStore) UpdateExpiresAt ¶
func (_m *SessionStore) UpdateExpiresAt(sessionID string, time int64) error
UpdateExpiresAt provides a mock function with given fields: sessionID, time
func (*SessionStore) UpdateLastActivityAt ¶
func (_m *SessionStore) UpdateLastActivityAt(sessionID string, time int64) error
UpdateLastActivityAt provides a mock function with given fields: sessionID, time
func (*SessionStore) UpdateProps ¶
func (_m *SessionStore) UpdateProps(session *model.Session) error
UpdateProps provides a mock function with given fields: session
func (*SessionStore) UpdateRoles ¶
func (_m *SessionStore) UpdateRoles(userID string, roles string) (string, error)
UpdateRoles provides a mock function with given fields: userID, roles
type SharedChannelStore ¶
type SharedChannelStore struct {
}SharedChannelStore is an autogenerated mock type for the SharedChannelStore type
func (*SharedChannelStore) Delete ¶
func (_m *SharedChannelStore) Delete(channelId string) (bool, error)
Delete provides a mock function with given fields: channelId
func (*SharedChannelStore) DeleteRemote ¶
func (_m *SharedChannelStore) DeleteRemote(remoteId string) (bool, error)
DeleteRemote provides a mock function with given fields: remoteId
func (*SharedChannelStore) Get ¶
func (_m *SharedChannelStore) Get(channelId string) (*model.SharedChannel, error)
Get provides a mock function with given fields: channelId
func (*SharedChannelStore) GetAll ¶
func (_m *SharedChannelStore) GetAll(offset int, limit int, opts model.SharedChannelFilterOpts) ([]*model.SharedChannel, error)
GetAll provides a mock function with given fields: offset, limit, opts
func (*SharedChannelStore) GetAllCount ¶
func (_m *SharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (int64, error)
GetAllCount provides a mock function with given fields: opts
func (*SharedChannelStore) GetAttachment ¶
func (_m *SharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error)
GetAttachment provides a mock function with given fields: fileId, remoteId
func (*SharedChannelStore) GetRemote ¶
func (_m *SharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote, error)
GetRemote provides a mock function with given fields: id
func (*SharedChannelStore) GetRemoteByIds ¶
func (_m *SharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error)
GetRemoteByIds provides a mock function with given fields: channelId, remoteId
func (*SharedChannelStore) GetRemoteForUser ¶
func (_m *SharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error)
GetRemoteForUser provides a mock function with given fields: remoteId, userId
func (*SharedChannelStore) GetRemotes ¶
func (_m *SharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error)
GetRemotes provides a mock function with given fields: opts
func (*SharedChannelStore) GetRemotesStatus ¶
func (_m *SharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error)
GetRemotesStatus provides a mock function with given fields: channelId
func (*SharedChannelStore) GetSingleUser ¶
func (_m *SharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error)
GetSingleUser provides a mock function with given fields: userID, channelID, remoteID
func (*SharedChannelStore) GetUsersForSync ¶
func (_m *SharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error)
GetUsersForSync provides a mock function with given fields: filter
func (*SharedChannelStore) GetUsersForUser ¶
func (_m *SharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error)
GetUsersForUser provides a mock function with given fields: userID
func (*SharedChannelStore) HasChannel ¶
func (_m *SharedChannelStore) HasChannel(channelID string) (bool, error)
HasChannel provides a mock function with given fields: channelID
func (*SharedChannelStore) HasRemote ¶
func (_m *SharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error)
HasRemote provides a mock function with given fields: channelID, remoteId
func (*SharedChannelStore) Save ¶
func (_m *SharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChannel, error)
Save provides a mock function with given fields: sc
func (*SharedChannelStore) SaveAttachment ¶
func (_m *SharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachment) (*model.SharedChannelAttachment, error)
SaveAttachment provides a mock function with given fields: remote
func (*SharedChannelStore) SaveRemote ¶
func (_m *SharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
SaveRemote provides a mock function with given fields: remote
func (*SharedChannelStore) SaveUser ¶
func (_m *SharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.SharedChannelUser, error)
SaveUser provides a mock function with given fields: remote
func (*SharedChannelStore) Update ¶
func (_m *SharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChannel, error)
Update provides a mock function with given fields: sc
func (*SharedChannelStore) UpdateAttachmentLastSyncAt ¶
func (_m *SharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error
UpdateAttachmentLastSyncAt provides a mock function with given fields: id, syncTime
func (*SharedChannelStore) UpdateRemote ¶
func (_m *SharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
UpdateRemote provides a mock function with given fields: remote
func (*SharedChannelStore) UpdateRemoteCursor ¶
func (_m *SharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error
UpdateRemoteCursor provides a mock function with given fields: id, cursor
func (*SharedChannelStore) UpdateUserLastSyncAt ¶
func (_m *SharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error
UpdateUserLastSyncAt provides a mock function with given fields: userID, channelID, remoteID
func (*SharedChannelStore) UpsertAttachment ¶
func (_m *SharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error)
UpsertAttachment provides a mock function with given fields: remote
type SqlStore ¶
SqlStore is an autogenerated mock type for the SqlStore type
func (*SqlStore) DriverName ¶
DriverName provides a mock function with given fields:
type StatusStore ¶
StatusStore is an autogenerated mock type for the StatusStore type
func (*StatusStore) Get ¶
func (_m *StatusStore) Get(userID string) (*model.Status, error)
Get provides a mock function with given fields: userID
func (*StatusStore) GetByIds ¶
func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error)
GetByIds provides a mock function with given fields: userIds
func (*StatusStore) GetTotalActiveUsersCount ¶
func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error)
GetTotalActiveUsersCount provides a mock function with given fields:
func (*StatusStore) ResetAll ¶
func (_m *StatusStore) ResetAll() error
ResetAll provides a mock function with given fields:
func (*StatusStore) SaveOrUpdate ¶
func (_m *StatusStore) SaveOrUpdate(status *model.Status) error
SaveOrUpdate provides a mock function with given fields: status
func (*StatusStore) UpdateExpiredDNDStatuses ¶
func (_m *StatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error)
UpdateExpiredDNDStatuses provides a mock function with given fields:
func (*StatusStore) UpdateLastActivityAt ¶
func (_m *StatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error
UpdateLastActivityAt provides a mock function with given fields: userID, lastActivityAt
type Store ¶
Store is an autogenerated mock type for the Store type
func (*Store) Audit ¶
func (_m *Store) Audit() store.AuditStore
Audit provides a mock function with given fields:
func (*Store) Channel ¶
func (_m *Store) Channel() store.ChannelStore
Channel provides a mock function with given fields:
func (*Store) ChannelMemberHistory ¶
func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore
ChannelMemberHistory provides a mock function with given fields:
func (*Store) CheckIntegrity ¶
func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult
CheckIntegrity provides a mock function with given fields:
func (*Store) ClusterDiscovery ¶
func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore
ClusterDiscovery provides a mock function with given fields:
func (*Store) Command ¶
func (_m *Store) Command() store.CommandStore
Command provides a mock function with given fields:
func (*Store) CommandWebhook ¶
func (_m *Store) CommandWebhook() store.CommandWebhookStore
CommandWebhook provides a mock function with given fields:
func (*Store) Compliance ¶
func (_m *Store) Compliance() store.ComplianceStore
Compliance provides a mock function with given fields:
func (*Store) DropAllTables ¶
func (_m *Store) DropAllTables()
DropAllTables provides a mock function with given fields:
func (*Store) Emoji ¶
func (_m *Store) Emoji() store.EmojiStore
Emoji provides a mock function with given fields:
func (*Store) FileInfo ¶
func (_m *Store) FileInfo() store.FileInfoStore
FileInfo provides a mock function with given fields:
func (*Store) GetCurrentSchemaVersion ¶
GetCurrentSchemaVersion provides a mock function with given fields:
func (*Store) GetDbVersion ¶
GetDbVersion provides a mock function with given fields: numerical
func (*Store) Group ¶
func (_m *Store) Group() store.GroupStore
Group provides a mock function with given fields:
func (*Store) License ¶
func (_m *Store) License() store.LicenseStore
License provides a mock function with given fields:
func (*Store) LinkMetadata ¶
func (_m *Store) LinkMetadata() store.LinkMetadataStore
LinkMetadata provides a mock function with given fields:
func (*Store) LockToMaster ¶
func (_m *Store) LockToMaster()
LockToMaster provides a mock function with given fields:
func (*Store) MarkSystemRanUnitTests ¶
func (_m *Store) MarkSystemRanUnitTests()
MarkSystemRanUnitTests provides a mock function with given fields:
func (*Store) OAuth ¶
func (_m *Store) OAuth() store.OAuthStore
OAuth provides a mock function with given fields:
func (*Store) Plugin ¶
func (_m *Store) Plugin() store.PluginStore
Plugin provides a mock function with given fields:
func (*Store) Preference ¶
func (_m *Store) Preference() store.PreferenceStore
Preference provides a mock function with given fields:
func (*Store) ProductNotices ¶
func (_m *Store) ProductNotices() store.ProductNoticesStore
ProductNotices provides a mock function with given fields:
func (*Store) Reaction ¶
func (_m *Store) Reaction() store.ReactionStore
Reaction provides a mock function with given fields:
func (*Store) RecycleDBConnections ¶
RecycleDBConnections provides a mock function with given fields: d
func (*Store) RemoteCluster ¶
func (_m *Store) RemoteCluster() store.RemoteClusterStore
RemoteCluster provides a mock function with given fields:
func (*Store) ReplicaLagAbs ¶
ReplicaLagAbs provides a mock function with given fields:
func (*Store) ReplicaLagTime ¶
ReplicaLagTime provides a mock function with given fields:
func (*Store) RetentionPolicy ¶
func (_m *Store) RetentionPolicy() store.RetentionPolicyStore
RetentionPolicy provides a mock function with given fields:
func (*Store) Scheme ¶
func (_m *Store) Scheme() store.SchemeStore
Scheme provides a mock function with given fields:
func (*Store) Session ¶
func (_m *Store) Session() store.SessionStore
Session provides a mock function with given fields:
func (*Store) SetContext ¶
SetContext provides a mock function with given fields: _a0
func (*Store) SharedChannel ¶
func (_m *Store) SharedChannel() store.SharedChannelStore
SharedChannel provides a mock function with given fields:
func (*Store) Status ¶
func (_m *Store) Status() store.StatusStore
Status provides a mock function with given fields:
func (*Store) System ¶
func (_m *Store) System() store.SystemStore
System provides a mock function with given fields:
func (*Store) TermsOfService ¶
func (_m *Store) TermsOfService() store.TermsOfServiceStore
TermsOfService provides a mock function with given fields:
func (*Store) Thread ¶
func (_m *Store) Thread() store.ThreadStore
Thread provides a mock function with given fields:
func (*Store) Token ¶
func (_m *Store) Token() store.TokenStore
Token provides a mock function with given fields:
func (*Store) TotalMasterDbConnections ¶
TotalMasterDbConnections provides a mock function with given fields:
func (*Store) TotalReadDbConnections ¶
TotalReadDbConnections provides a mock function with given fields:
func (*Store) TotalSearchDbConnections ¶
TotalSearchDbConnections provides a mock function with given fields:
func (*Store) UnlockFromMaster ¶
func (_m *Store) UnlockFromMaster()
UnlockFromMaster provides a mock function with given fields:
func (*Store) UploadSession ¶
func (_m *Store) UploadSession() store.UploadSessionStore
UploadSession provides a mock function with given fields:
func (*Store) UserAccessToken ¶
func (_m *Store) UserAccessToken() store.UserAccessTokenStore
UserAccessToken provides a mock function with given fields:
func (*Store) UserTermsOfService ¶
func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore
UserTermsOfService provides a mock function with given fields:
func (*Store) Webhook ¶
func (_m *Store) Webhook() store.WebhookStore
Webhook provides a mock function with given fields:
type SystemStore ¶
SystemStore is an autogenerated mock type for the SystemStore type
func (*SystemStore) Get ¶
func (_m *SystemStore) Get() (model.StringMap, error)
Get provides a mock function with given fields:
func (*SystemStore) GetByName ¶
func (_m *SystemStore) GetByName(name string) (*model.System, error)
GetByName provides a mock function with given fields: name
func (*SystemStore) InsertIfExists ¶
InsertIfExists provides a mock function with given fields: system
func (*SystemStore) PermanentDeleteByName ¶
func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, error)
PermanentDeleteByName provides a mock function with given fields: name
func (*SystemStore) Save ¶
func (_m *SystemStore) Save(system *model.System) error
Save provides a mock function with given fields: system
func (*SystemStore) SaveOrUpdate ¶
func (_m *SystemStore) SaveOrUpdate(system *model.System) error
SaveOrUpdate provides a mock function with given fields: system
func (*SystemStore) SaveOrUpdateWithWarnMetricHandling ¶
func (_m *SystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error
SaveOrUpdateWithWarnMetricHandling provides a mock function with given fields: system
type TeamStore ¶
TeamStore is an autogenerated mock type for the TeamStore type
func (*TeamStore) AnalyticsGetTeamCountForScheme ¶
AnalyticsGetTeamCountForScheme provides a mock function with given fields: schemeID
func (*TeamStore) AnalyticsTeamCount ¶
func (_m *TeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error)
AnalyticsTeamCount provides a mock function with given fields: opts
func (*TeamStore) ClearAllCustomRoleAssignments ¶
ClearAllCustomRoleAssignments provides a mock function with given fields:
func (*TeamStore) ClearCaches ¶
func (_m *TeamStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*TeamStore) GetActiveMemberCount ¶
func (_m *TeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
GetActiveMemberCount provides a mock function with given fields: teamID, restrictions
func (*TeamStore) GetAllForExportAfter ¶
func (_m *TeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.TeamForExport, error)
GetAllForExportAfter provides a mock function with given fields: limit, afterID
func (*TeamStore) GetAllPage ¶
func (_m *TeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) ([]*model.Team, error)
GetAllPage provides a mock function with given fields: offset, limit, opts
func (*TeamStore) GetAllPrivateTeamListing ¶
GetAllPrivateTeamListing provides a mock function with given fields:
func (*TeamStore) GetAllTeamListing ¶
GetAllTeamListing provides a mock function with given fields:
func (*TeamStore) GetByInviteId ¶
GetByInviteId provides a mock function with given fields: inviteID
func (*TeamStore) GetByNames ¶
GetByNames provides a mock function with given fields: name
func (*TeamStore) GetChannelUnreadsForAllTeams ¶
func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error)
GetChannelUnreadsForAllTeams provides a mock function with given fields: excludeTeamID, userID
func (*TeamStore) GetChannelUnreadsForTeam ¶
func (_m *TeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error)
GetChannelUnreadsForTeam provides a mock function with given fields: teamID, userID
func (*TeamStore) GetCommonTeamIDsForTwoUsers ¶
func (_m *TeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error)
GetCommonTeamIDsForTwoUsers provides a mock function with given fields: userID, otherUserID
func (*TeamStore) GetMember ¶
func (_m *TeamStore) GetMember(ctx context.Context, teamID string, userID string) (*model.TeamMember, error)
GetMember provides a mock function with given fields: ctx, teamID, userID
func (*TeamStore) GetMembers ¶
func (_m *TeamStore) GetMembers(teamID string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, error)
GetMembers provides a mock function with given fields: teamID, offset, limit, teamMembersGetOptions
func (*TeamStore) GetMembersByIds ¶
func (_m *TeamStore) GetMembersByIds(teamID string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error)
GetMembersByIds provides a mock function with given fields: teamID, userIds, restrictions
func (*TeamStore) GetTeamMembersForExport ¶
func (_m *TeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error)
GetTeamMembersForExport provides a mock function with given fields: userID
func (*TeamStore) GetTeamsByScheme ¶
func (_m *TeamStore) GetTeamsByScheme(schemeID string, offset int, limit int) ([]*model.Team, error)
GetTeamsByScheme provides a mock function with given fields: schemeID, offset, limit
func (*TeamStore) GetTeamsByUserId ¶
GetTeamsByUserId provides a mock function with given fields: userID
func (*TeamStore) GetTeamsForUser ¶
func (_m *TeamStore) GetTeamsForUser(ctx context.Context, userID string) ([]*model.TeamMember, error)
GetTeamsForUser provides a mock function with given fields: ctx, userID
func (*TeamStore) GetTeamsForUserWithPagination ¶
func (_m *TeamStore) GetTeamsForUserWithPagination(userID string, page int, perPage int) ([]*model.TeamMember, error)
GetTeamsForUserWithPagination provides a mock function with given fields: userID, page, perPage
func (*TeamStore) GetTotalMemberCount ¶
func (_m *TeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
GetTotalMemberCount provides a mock function with given fields: teamID, restrictions
func (*TeamStore) GetUserTeamIds ¶
GetUserTeamIds provides a mock function with given fields: userID, allowFromCache
func (*TeamStore) GroupSyncedTeamCount ¶
GroupSyncedTeamCount provides a mock function with given fields:
func (*TeamStore) InvalidateAllTeamIdsForUser ¶
InvalidateAllTeamIdsForUser provides a mock function with given fields: userID
func (*TeamStore) MigrateTeamMembers ¶
func (_m *TeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (map[string]string, error)
MigrateTeamMembers provides a mock function with given fields: fromTeamID, fromUserID
func (*TeamStore) PermanentDelete ¶
PermanentDelete provides a mock function with given fields: teamID
func (*TeamStore) RemoveAllMembersByTeam ¶
RemoveAllMembersByTeam provides a mock function with given fields: teamID
func (*TeamStore) RemoveAllMembersByUser ¶
RemoveAllMembersByUser provides a mock function with given fields: userID
func (*TeamStore) RemoveMember ¶
RemoveMember provides a mock function with given fields: teamID, userID
func (*TeamStore) RemoveMembers ¶
RemoveMembers provides a mock function with given fields: teamID, userIds
func (*TeamStore) ResetAllTeamSchemes ¶
ResetAllTeamSchemes provides a mock function with given fields:
func (*TeamStore) SaveMember ¶
func (_m *TeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
SaveMember provides a mock function with given fields: member, maxUsersPerTeam
func (*TeamStore) SaveMultipleMembers ¶
func (_m *TeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error)
SaveMultipleMembers provides a mock function with given fields: members, maxUsersPerTeam
func (*TeamStore) SearchAllPaged ¶
SearchAllPaged provides a mock function with given fields: opts
func (*TeamStore) SearchOpen ¶
SearchOpen provides a mock function with given fields: opts
func (*TeamStore) SearchPrivate ¶
SearchPrivate provides a mock function with given fields: opts
func (*TeamStore) UpdateLastTeamIconUpdate ¶
UpdateLastTeamIconUpdate provides a mock function with given fields: teamID, curTime
func (*TeamStore) UpdateMember ¶
func (_m *TeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, error)
UpdateMember provides a mock function with given fields: member
func (*TeamStore) UpdateMembersRole ¶
UpdateMembersRole provides a mock function with given fields: teamID, userIDs
func (*TeamStore) UpdateMultipleMembers ¶
func (_m *TeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error)
UpdateMultipleMembers provides a mock function with given fields: members
type TermsOfServiceStore ¶
TermsOfServiceStore is an autogenerated mock type for the TermsOfServiceStore type
func (*TermsOfServiceStore) Get ¶
func (_m *TermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error)
Get provides a mock function with given fields: id, allowFromCache
func (*TermsOfServiceStore) GetLatest ¶
func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error)
GetLatest provides a mock function with given fields: allowFromCache
func (*TermsOfServiceStore) Save ¶
func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error)
Save provides a mock function with given fields: termsOfService
type ThreadStore ¶
ThreadStore is an autogenerated mock type for the ThreadStore type
func (*ThreadStore) CollectThreadsWithNewerReplies ¶
func (_m *ThreadStore) CollectThreadsWithNewerReplies(userId string, channelIds []string, timestamp int64) ([]string, error)
CollectThreadsWithNewerReplies provides a mock function with given fields: userId, channelIds, timestamp
func (*ThreadStore) Delete ¶
func (_m *ThreadStore) Delete(postID string) error
Delete provides a mock function with given fields: postID
func (*ThreadStore) DeleteMembershipForUser ¶
func (_m *ThreadStore) DeleteMembershipForUser(userId string, postID string) error
DeleteMembershipForUser provides a mock function with given fields: userId, postID
func (*ThreadStore) DeleteOrphanedRows ¶
func (_m *ThreadStore) DeleteOrphanedRows(limit int) (int64, error)
DeleteOrphanedRows provides a mock function with given fields: limit
func (*ThreadStore) Get ¶
func (_m *ThreadStore) Get(id string) (*model.Thread, error)
Get provides a mock function with given fields: id
func (*ThreadStore) GetMembershipForUser ¶
func (_m *ThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error)
GetMembershipForUser provides a mock function with given fields: userId, postID
func (*ThreadStore) GetMembershipsForUser ¶
func (_m *ThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error)
GetMembershipsForUser provides a mock function with given fields: userId, teamID
func (*ThreadStore) GetThreadFollowers ¶
func (_m *ThreadStore) GetThreadFollowers(threadID string, fetchOnlyActive bool) ([]string, error)
GetThreadFollowers provides a mock function with given fields: threadID, fetchOnlyActive
func (*ThreadStore) GetThreadForUser ¶
func (_m *ThreadStore) GetThreadForUser(teamID string, threadMembership *model.ThreadMembership, extended bool) (*model.ThreadResponse, error)
GetThreadForUser provides a mock function with given fields: teamID, threadMembership, extended
func (*ThreadStore) GetThreadsForUser ¶
func (_m *ThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) (*model.Threads, error)
GetThreadsForUser provides a mock function with given fields: userId, teamID, opts
func (*ThreadStore) MaintainMembership ¶
func (_m *ThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error)
MaintainMembership provides a mock function with given fields: userID, postID, opts
func (*ThreadStore) MarkAllAsRead ¶
func (_m *ThreadStore) MarkAllAsRead(userID string, teamID string) error
MarkAllAsRead provides a mock function with given fields: userID, teamID
func (*ThreadStore) MarkAllAsReadInChannels ¶
func (_m *ThreadStore) MarkAllAsReadInChannels(userID string, channelIDs []string) error
MarkAllAsReadInChannels provides a mock function with given fields: userID, channelIDs
func (*ThreadStore) MarkAsRead ¶
func (_m *ThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error
MarkAsRead provides a mock function with given fields: userID, threadID, timestamp
func (*ThreadStore) PermanentDeleteBatchForRetentionPolicies ¶
func (_m *ThreadStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)
PermanentDeleteBatchForRetentionPolicies provides a mock function with given fields: now, globalPolicyEndTime, limit, cursor
func (*ThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies ¶
func (_m *ThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)
PermanentDeleteBatchThreadMembershipsForRetentionPolicies provides a mock function with given fields: now, globalPolicyEndTime, limit, cursor
func (*ThreadStore) SaveMembership ¶
func (_m *ThreadStore) SaveMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
SaveMembership provides a mock function with given fields: membership
func (*ThreadStore) SaveMultiple ¶
SaveMultiple provides a mock function with given fields: thread
func (*ThreadStore) UpdateMembership ¶
func (_m *ThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
UpdateMembership provides a mock function with given fields: membership
func (*ThreadStore) UpdateUnreadsByChannel ¶
func (_m *ThreadStore) UpdateUnreadsByChannel(userId string, changedThreads []string, timestamp int64, updateViewedTimestamp bool) error
UpdateUnreadsByChannel provides a mock function with given fields: userId, changedThreads, timestamp, updateViewedTimestamp
type TokenStore ¶
TokenStore is an autogenerated mock type for the TokenStore type
func (*TokenStore) Cleanup ¶
func (_m *TokenStore) Cleanup()
Cleanup provides a mock function with given fields:
func (*TokenStore) Delete ¶
func (_m *TokenStore) Delete(token string) error
Delete provides a mock function with given fields: token
func (*TokenStore) GetAllTokensByType ¶
func (_m *TokenStore) GetAllTokensByType(tokenType string) ([]*model.Token, error)
GetAllTokensByType provides a mock function with given fields: tokenType
func (*TokenStore) GetByToken ¶
func (_m *TokenStore) GetByToken(token string) (*model.Token, error)
GetByToken provides a mock function with given fields: token
func (*TokenStore) RemoveAllTokensByType ¶
func (_m *TokenStore) RemoveAllTokensByType(tokenType string) error
RemoveAllTokensByType provides a mock function with given fields: tokenType
type UploadSessionStore ¶
UploadSessionStore is an autogenerated mock type for the UploadSessionStore type
func (*UploadSessionStore) Delete ¶
func (_m *UploadSessionStore) Delete(id string) error
Delete provides a mock function with given fields: id
func (*UploadSessionStore) Get ¶
func (_m *UploadSessionStore) Get(id string) (*model.UploadSession, error)
Get provides a mock function with given fields: id
func (*UploadSessionStore) GetForUser ¶
func (_m *UploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error)
GetForUser provides a mock function with given fields: userID
func (*UploadSessionStore) Save ¶
func (_m *UploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error)
Save provides a mock function with given fields: session
func (*UploadSessionStore) Update ¶
func (_m *UploadSessionStore) Update(session *model.UploadSession) error
Update provides a mock function with given fields: session
type UserAccessTokenStore ¶
UserAccessTokenStore is an autogenerated mock type for the UserAccessTokenStore type
func (*UserAccessTokenStore) Delete ¶
func (_m *UserAccessTokenStore) Delete(tokenID string) error
Delete provides a mock function with given fields: tokenID
func (*UserAccessTokenStore) DeleteAllForUser ¶
func (_m *UserAccessTokenStore) DeleteAllForUser(userID string) error
DeleteAllForUser provides a mock function with given fields: userID
func (*UserAccessTokenStore) Get ¶
func (_m *UserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, error)
Get provides a mock function with given fields: tokenID
func (*UserAccessTokenStore) GetAll ¶
func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error)
GetAll provides a mock function with given fields: offset, limit
func (*UserAccessTokenStore) GetByToken ¶
func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error)
GetByToken provides a mock function with given fields: tokenString
func (*UserAccessTokenStore) GetByUser ¶
func (_m *UserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error)
GetByUser provides a mock function with given fields: userID, page, perPage
func (*UserAccessTokenStore) Save ¶
func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error)
Save provides a mock function with given fields: token
func (*UserAccessTokenStore) Search ¶
func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error)
Search provides a mock function with given fields: term
func (*UserAccessTokenStore) UpdateTokenDisable ¶
func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenID string) error
UpdateTokenDisable provides a mock function with given fields: tokenID
func (*UserAccessTokenStore) UpdateTokenEnable ¶
func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenID string) error
UpdateTokenEnable provides a mock function with given fields: tokenID
type UserStore ¶
UserStore is an autogenerated mock type for the UserStore type
func (*UserStore) AnalyticsActiveCount ¶
func (_m *UserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error)
AnalyticsActiveCount provides a mock function with given fields: time, options
func (*UserStore) AnalyticsActiveCountForPeriod ¶
func (_m *UserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error)
AnalyticsActiveCountForPeriod provides a mock function with given fields: startTime, endTime, options
func (*UserStore) AnalyticsGetExternalUsers ¶
AnalyticsGetExternalUsers provides a mock function with given fields: hostDomain
func (*UserStore) AnalyticsGetGuestCount ¶
AnalyticsGetGuestCount provides a mock function with given fields:
func (*UserStore) AnalyticsGetInactiveUsersCount ¶
AnalyticsGetInactiveUsersCount provides a mock function with given fields:
func (*UserStore) AnalyticsGetSystemAdminCount ¶
AnalyticsGetSystemAdminCount provides a mock function with given fields:
func (*UserStore) AutocompleteUsersInChannel ¶
func (_m *UserStore) AutocompleteUsersInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
AutocompleteUsersInChannel provides a mock function with given fields: teamID, channelID, term, options
func (*UserStore) ClearAllCustomRoleAssignments ¶
ClearAllCustomRoleAssignments provides a mock function with given fields:
func (*UserStore) ClearCaches ¶
func (_m *UserStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*UserStore) Count ¶
func (_m *UserStore) Count(options model.UserCountOptions) (int64, error)
Count provides a mock function with given fields: options
func (*UserStore) DeactivateGuests ¶
DeactivateGuests provides a mock function with given fields:
func (*UserStore) DemoteUserToGuest ¶
DemoteUserToGuest provides a mock function with given fields: userID
func (*UserStore) GetAllAfter ¶
GetAllAfter provides a mock function with given fields: limit, afterID
func (*UserStore) GetAllNotInAuthService ¶
GetAllNotInAuthService provides a mock function with given fields: authServices
func (*UserStore) GetAllProfiles ¶
GetAllProfiles provides a mock function with given fields: options
func (*UserStore) GetAllProfilesInChannel ¶
func (_m *UserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error)
GetAllProfilesInChannel provides a mock function with given fields: ctx, channelID, allowFromCache
func (*UserStore) GetAllUsingAuthService ¶
GetAllUsingAuthService provides a mock function with given fields: authService
func (*UserStore) GetAnyUnreadPostCountForChannel ¶
func (_m *UserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error)
GetAnyUnreadPostCountForChannel provides a mock function with given fields: userID, channelID
func (*UserStore) GetByAuth ¶
GetByAuth provides a mock function with given fields: authData, authService
func (*UserStore) GetByEmail ¶
GetByEmail provides a mock function with given fields: email
func (*UserStore) GetByUsername ¶
GetByUsername provides a mock function with given fields: username
func (*UserStore) GetChannelGroupUsers ¶
GetChannelGroupUsers provides a mock function with given fields: channelID
func (*UserStore) GetEtagForAllProfiles ¶
GetEtagForAllProfiles provides a mock function with given fields:
func (*UserStore) GetEtagForProfiles ¶
GetEtagForProfiles provides a mock function with given fields: teamID
func (*UserStore) GetEtagForProfilesNotInTeam ¶
GetEtagForProfilesNotInTeam provides a mock function with given fields: teamID
func (*UserStore) GetForLogin ¶
func (_m *UserStore) GetForLogin(loginID string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, error)
GetForLogin provides a mock function with given fields: loginID, allowSignInWithUsername, allowSignInWithEmail
func (*UserStore) GetKnownUsers ¶
GetKnownUsers provides a mock function with given fields: userID
func (*UserStore) GetNewUsersForTeam ¶
func (_m *UserStore) GetNewUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
GetNewUsersForTeam provides a mock function with given fields: teamID, offset, limit, viewRestrictions
func (*UserStore) GetProfileByGroupChannelIdsForUser ¶
func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userID string, channelIds []string) (map[string][]*model.User, error)
GetProfileByGroupChannelIdsForUser provides a mock function with given fields: userID, channelIds
func (*UserStore) GetProfileByIds ¶
func (_m *UserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, error)
GetProfileByIds provides a mock function with given fields: ctx, userIds, options, allowFromCache
func (*UserStore) GetProfiles ¶
GetProfiles provides a mock function with given fields: options
func (*UserStore) GetProfilesByUsernames ¶
func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
GetProfilesByUsernames provides a mock function with given fields: usernames, viewRestrictions
func (*UserStore) GetProfilesInChannel ¶
GetProfilesInChannel provides a mock function with given fields: options
func (*UserStore) GetProfilesInChannelByStatus ¶
func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error)
GetProfilesInChannelByStatus provides a mock function with given fields: options
func (*UserStore) GetProfilesNotInChannel ¶
func (_m *UserStore) GetProfilesNotInChannel(teamID string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
GetProfilesNotInChannel provides a mock function with given fields: teamID, channelId, groupConstrained, offset, limit, viewRestrictions
func (*UserStore) GetProfilesNotInTeam ¶
func (_m *UserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
GetProfilesNotInTeam provides a mock function with given fields: teamID, groupConstrained, offset, limit, viewRestrictions
func (*UserStore) GetProfilesWithoutTeam ¶
GetProfilesWithoutTeam provides a mock function with given fields: options
func (*UserStore) GetRecentlyActiveUsersForTeam ¶
func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
GetRecentlyActiveUsersForTeam provides a mock function with given fields: teamID, offset, limit, viewRestrictions
func (*UserStore) GetSystemAdminProfiles ¶
GetSystemAdminProfiles provides a mock function with given fields:
func (*UserStore) GetTeamGroupUsers ¶
GetTeamGroupUsers provides a mock function with given fields: teamID
func (*UserStore) GetUnreadCount ¶
GetUnreadCount provides a mock function with given fields: userID
func (*UserStore) GetUnreadCountForChannel ¶
GetUnreadCountForChannel provides a mock function with given fields: userID, channelID
func (*UserStore) GetUsersBatchForIndexing ¶
func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, error)
GetUsersBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*UserStore) InferSystemInstallDate ¶
InferSystemInstallDate provides a mock function with given fields:
func (*UserStore) InvalidateProfileCacheForUser ¶
InvalidateProfileCacheForUser provides a mock function with given fields: userID
func (*UserStore) InvalidateProfilesInChannelCache ¶
InvalidateProfilesInChannelCache provides a mock function with given fields: channelID
func (*UserStore) InvalidateProfilesInChannelCacheByUser ¶
InvalidateProfilesInChannelCacheByUser provides a mock function with given fields: userID
func (*UserStore) PermanentDelete ¶
PermanentDelete provides a mock function with given fields: userID
func (*UserStore) PromoteGuestToUser ¶
PromoteGuestToUser provides a mock function with given fields: userID
func (*UserStore) ResetAuthDataToEmailForUsers ¶
func (_m *UserStore) ResetAuthDataToEmailForUsers(service string, userIDs []string, includeDeleted bool, dryRun bool) (int, error)
ResetAuthDataToEmailForUsers provides a mock function with given fields: service, userIDs, includeDeleted, dryRun
func (*UserStore) ResetLastPictureUpdate ¶
ResetLastPictureUpdate provides a mock function with given fields: userID
func (*UserStore) Search ¶
func (_m *UserStore) Search(teamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
Search provides a mock function with given fields: teamID, term, options
func (*UserStore) SearchInChannel ¶
func (_m *UserStore) SearchInChannel(channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
SearchInChannel provides a mock function with given fields: channelID, term, options
func (*UserStore) SearchInGroup ¶
func (_m *UserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
SearchInGroup provides a mock function with given fields: groupID, term, options
func (*UserStore) SearchNotInChannel ¶
func (_m *UserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
SearchNotInChannel provides a mock function with given fields: teamID, channelID, term, options
func (*UserStore) SearchNotInTeam ¶
func (_m *UserStore) SearchNotInTeam(notInTeamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
SearchNotInTeam provides a mock function with given fields: notInTeamID, term, options
func (*UserStore) SearchWithoutTeam ¶
func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error)
SearchWithoutTeam provides a mock function with given fields: term, options
func (*UserStore) UpdateAuthData ¶
func (_m *UserStore) UpdateAuthData(userID string, service string, authData *string, email string, resetMfa bool) (string, error)
UpdateAuthData provides a mock function with given fields: userID, service, authData, email, resetMfa
func (*UserStore) UpdateFailedPasswordAttempts ¶
UpdateFailedPasswordAttempts provides a mock function with given fields: userID, attempts
func (*UserStore) UpdateLastPictureUpdate ¶
UpdateLastPictureUpdate provides a mock function with given fields: userID
func (*UserStore) UpdateMfaActive ¶
UpdateMfaActive provides a mock function with given fields: userID, active
func (*UserStore) UpdateMfaSecret ¶
UpdateMfaSecret provides a mock function with given fields: userID, secret
func (*UserStore) UpdateNotifyProps ¶
UpdateNotifyProps provides a mock function with given fields: userID, props
func (*UserStore) UpdatePassword ¶
UpdatePassword provides a mock function with given fields: userID, newPassword
func (*UserStore) UpdateUpdateAt ¶
UpdateUpdateAt provides a mock function with given fields: userID
type UserTermsOfServiceStore ¶
UserTermsOfServiceStore is an autogenerated mock type for the UserTermsOfServiceStore type
func (*UserTermsOfServiceStore) Delete ¶
func (_m *UserTermsOfServiceStore) Delete(userID string, termsOfServiceId string) error
Delete provides a mock function with given fields: userID, termsOfServiceId
func (*UserTermsOfServiceStore) GetByUser ¶
func (_m *UserTermsOfServiceStore) GetByUser(userID string) (*model.UserTermsOfService, error)
GetByUser provides a mock function with given fields: userID
func (*UserTermsOfServiceStore) Save ¶
func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error)
Save provides a mock function with given fields: userTermsOfService
type WebhookStore ¶
WebhookStore is an autogenerated mock type for the WebhookStore type
func (*WebhookStore) AnalyticsIncomingCount ¶
func (_m *WebhookStore) AnalyticsIncomingCount(teamID string) (int64, error)
AnalyticsIncomingCount provides a mock function with given fields: teamID
func (*WebhookStore) AnalyticsOutgoingCount ¶
func (_m *WebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error)
AnalyticsOutgoingCount provides a mock function with given fields: teamID
func (*WebhookStore) ClearCaches ¶
func (_m *WebhookStore) ClearCaches()
ClearCaches provides a mock function with given fields:
func (*WebhookStore) DeleteIncoming ¶
func (_m *WebhookStore) DeleteIncoming(webhookID string, time int64) error
DeleteIncoming provides a mock function with given fields: webhookID, time
func (*WebhookStore) DeleteOutgoing ¶
func (_m *WebhookStore) DeleteOutgoing(webhookID string, time int64) error
DeleteOutgoing provides a mock function with given fields: webhookID, time
func (*WebhookStore) GetIncoming ¶
func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error)
GetIncoming provides a mock function with given fields: id, allowFromCache
func (*WebhookStore) GetIncomingByChannel ¶
func (_m *WebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error)
GetIncomingByChannel provides a mock function with given fields: channelID
func (*WebhookStore) GetIncomingByTeam ¶
func (_m *WebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error)
GetIncomingByTeam provides a mock function with given fields: teamID, offset, limit
func (*WebhookStore) GetIncomingByTeamByUser ¶
func (_m *WebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
GetIncomingByTeamByUser provides a mock function with given fields: teamID, userID, offset, limit
func (*WebhookStore) GetIncomingList ¶
func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error)
GetIncomingList provides a mock function with given fields: offset, limit
func (*WebhookStore) GetIncomingListByUser ¶
func (_m *WebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
GetIncomingListByUser provides a mock function with given fields: userID, offset, limit
func (*WebhookStore) GetOutgoing ¶
func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error)
GetOutgoing provides a mock function with given fields: id
func (*WebhookStore) GetOutgoingByChannel ¶
func (_m *WebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingByChannel provides a mock function with given fields: channelID, offset, limit
func (*WebhookStore) GetOutgoingByChannelByUser ¶
func (_m *WebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingByChannelByUser provides a mock function with given fields: channelID, userID, offset, limit
func (*WebhookStore) GetOutgoingByTeam ¶
func (_m *WebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingByTeam provides a mock function with given fields: teamID, offset, limit
func (*WebhookStore) GetOutgoingByTeamByUser ¶
func (_m *WebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingByTeamByUser provides a mock function with given fields: teamID, userID, offset, limit
func (*WebhookStore) GetOutgoingList ¶
func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingList provides a mock function with given fields: offset, limit
func (*WebhookStore) GetOutgoingListByUser ¶
func (_m *WebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
GetOutgoingListByUser provides a mock function with given fields: userID, offset, limit
func (*WebhookStore) InvalidateWebhookCache ¶
func (_m *WebhookStore) InvalidateWebhookCache(webhook string)
InvalidateWebhookCache provides a mock function with given fields: webhook
func (*WebhookStore) PermanentDeleteIncomingByChannel ¶
func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelID string) error
PermanentDeleteIncomingByChannel provides a mock function with given fields: channelID
func (*WebhookStore) PermanentDeleteIncomingByUser ¶
func (_m *WebhookStore) PermanentDeleteIncomingByUser(userID string) error
PermanentDeleteIncomingByUser provides a mock function with given fields: userID
func (*WebhookStore) PermanentDeleteOutgoingByChannel ¶
func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error
PermanentDeleteOutgoingByChannel provides a mock function with given fields: channelID
func (*WebhookStore) PermanentDeleteOutgoingByUser ¶
func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userID string) error
PermanentDeleteOutgoingByUser provides a mock function with given fields: userID
func (*WebhookStore) SaveIncoming ¶
func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
SaveIncoming provides a mock function with given fields: webhook
func (*WebhookStore) SaveOutgoing ¶
func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
SaveOutgoing provides a mock function with given fields: webhook
func (*WebhookStore) UpdateIncoming ¶
func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
UpdateIncoming provides a mock function with given fields: webhook
func (*WebhookStore) UpdateOutgoing ¶
func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
UpdateOutgoing provides a mock function with given fields: hook
Source Files ¶
- AuditStore.go
- BotStore.go
- ChannelMemberHistoryStore.go
- ChannelStore.go
- ClusterDiscoveryStore.go
- CommandStore.go
- CommandWebhookStore.go
- ComplianceStore.go
- EmojiStore.go
- FileInfoStore.go
- GroupStore.go
- JSONSerializable.go
- JobStore.go
- LicenseStore.go
- LinkMetadataStore.go
- OAuthStore.go
- ObjectCache.go
- PluginStore.go
- PostStore.go
- PreferenceStore.go
- ProductNoticesStore.go
- ReactionStore.go
- RemoteClusterStore.go
- RetentionPolicyStore.go
- RoleStore.go
- SchemeStore.go
- SessionStore.go
- SharedChannelStore.go
- SqlStore.go
- StatusStore.go
- Store.go
- SystemStore.go
- TeamStore.go
- TermsOfServiceStore.go
- ThreadStore.go
- TokenStore.go
- UploadSessionStore.go
- UserAccessTokenStore.go
- UserStore.go
- UserTermsOfServiceStore.go
- WebhookStore.go
- dbSelecter.go