Documentation ¶
Index ¶
- type AuditStore
- type BotStore
- func (_m *BotStore) Get(userId string, includeDeleted bool) (*model.Bot, *model.AppError)
- func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
- func (_m *BotStore) PermanentDelete(userId string) *model.AppError
- func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, *model.AppError)
- func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, *model.AppError)
- type Cache
- func (_m *Cache) Add(key interface{}, value interface{})
- func (_m *Cache) AddWithDefaultExpires(key interface{}, value interface{})
- func (_m *Cache) AddWithExpiresInSecs(key interface{}, value interface{}, expireAtSecs int64)
- func (_m *Cache) Get(key interface{}) (interface{}, bool)
- func (_m *Cache) GetInvalidateClusterEvent() string
- func (_m *Cache) GetOrAdd(key interface{}, value interface{}, ttl time.Duration) (interface{}, bool)
- func (_m *Cache) Keys() []interface{}
- func (_m *Cache) Len() int
- func (_m *Cache) Name() string
- func (_m *Cache) Purge()
- func (_m *Cache) Remove(key interface{})
- type CacheProvider
- type ChannelMemberHistoryStore
- func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
- func (_m *ChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError
- func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError
- func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- type ChannelStore
- func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) ClearAllCustomRoleAssignments() *model.AppError
- func (_m *ChannelStore) ClearCaches()
- func (_m *ChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)
- func (_m *ChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) Delete(channelId string, time int64) *model.AppError
- func (_m *ChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetAll(teamId string) ([]*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (_m *ChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
- func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, *model.AppError)
- func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
- func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
- func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
- func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
- func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
- func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
- func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetChannelsByIds(channelIds []string) ([]*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetFromMaster(id string) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (_m *ChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
- func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64
- func (_m *ChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
- func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
- func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
- func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
- func (_m *ChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
- func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (_m *ChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
- func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
- 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, *model.AppError)
- func (_m *ChannelStore) MigratePublicChannels() error
- func (_m *ChannelStore) PermanentDelete(channelId string) *model.AppError
- func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
- func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (_m *ChannelStore) RemoveMember(channelId string, userId string) *model.AppError
- func (_m *ChannelStore) ResetAllChannelSchemes() *model.AppError
- func (_m *ChannelStore) Restore(channelId string, time int64) *model.AppError
- func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
- func (_m *ChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
- func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError
- func (_m *ChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError)
- func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
- func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
- func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
- func (_m *ChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
- type ClusterDiscoveryStore
- func (_m *ClusterDiscoveryStore) Cleanup() *model.AppError
- func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
- func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
- func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
- type CommandStore
- func (_m *CommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
- func (_m *CommandStore) Delete(commandId string, time int64) *model.AppError
- func (_m *CommandStore) Get(id string) (*model.Command, *model.AppError)
- func (_m *CommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)
- func (_m *CommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
- func (_m *CommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (_m *CommandStore) PermanentDeleteByUser(userId string) *model.AppError
- func (_m *CommandStore) Save(webhook *model.Command) (*model.Command, *model.AppError)
- func (_m *CommandStore) Update(hook *model.Command) (*model.Command, *model.AppError)
- type CommandWebhookStore
- func (_m *CommandWebhookStore) Cleanup()
- func (_m *CommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
- func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (_m *CommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type ComplianceStore
- func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (_m *ComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (_m *ComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type EmojiStore
- func (_m *EmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError
- func (_m *EmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (_m *EmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)
- func (_m *EmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)
- func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
- func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
- type FileInfoStore
- func (_m *FileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError
- func (_m *FileInfoStore) ClearCaches()
- func (_m *FileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (_m *FileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (_m *FileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (_m *FileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postId string)
- func (_m *FileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (_m *FileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (_m *FileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (_m *FileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type GroupStore
- func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
- func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
- func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
- func (_m *GroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (_m *GroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
- func (_m *GroupStore) Create(group *model.Group) (*model.Group, *model.AppError)
- func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (_m *GroupStore) Delete(groupID string) (*model.Group, *model.AppError)
- func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- func (_m *GroupStore) Get(groupID string) (*model.Group, *model.AppError)
- func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
- func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
- func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
- func (_m *GroupStore) GetByName(name string) (*model.Group, *model.AppError)
- func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
- func (_m *GroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)
- func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (_m *GroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (_m *GroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (_m *GroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
- func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
- func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
- func (_m *GroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
- func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
- func (_m *GroupStore) Update(group *model.Group) (*model.Group, *model.AppError)
- func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- type JSONSerializable
- type JobStore
- func (_m *JobStore) Delete(id string) (string, *model.AppError)
- func (_m *JobStore) Get(id string) (*model.Job, *model.AppError)
- func (_m *JobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (_m *JobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (_m *JobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (_m *JobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (_m *JobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (_m *JobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (_m *JobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (_m *JobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type LicenseStore
- type LinkMetadataStore
- type OAuthStore
- func (_m *OAuthStore) DeleteApp(id string) *model.AppError
- func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
- func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
- func (_m *OAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
- func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, *model.AppError)
- func (_m *OAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (_m *OAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)
- func (_m *OAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (_m *OAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
- func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
- func (_m *OAuthStore) RemoveAccessData(token string) *model.AppError
- func (_m *OAuthStore) RemoveAllAccessData() *model.AppError
- func (_m *OAuthStore) RemoveAuthData(code string) *model.AppError
- func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (_m *OAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- func (_m *OAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
- func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (_m *OAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- 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, *model.AppError)
- func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (_m *PluginStore) Delete(pluginId string, key string) *model.AppError
- func (_m *PluginStore) DeleteAllExpired() *model.AppError
- func (_m *PluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
- func (_m *PluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
- func (_m *PluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)
- func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
- func (_m *PluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
- type PostStore
- func (_m *PostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
- func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
- func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (_m *PostStore) ClearCaches()
- func (_m *PostStore) Delete(postId string, time int64, deleteByID string) *model.AppError
- func (_m *PostStore) Get(id string) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
- func (_m *PostStore) GetEtag(channelId string, allowFromCache bool) string
- func (_m *PostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetMaxPostSize() int
- func (_m *PostStore) GetOldest() (*model.Post, *model.AppError)
- func (_m *PostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
- func (_m *PostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)
- func (_m *PostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)
- func (_m *PostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)
- func (_m *PostStore) GetPosts(channelId string, offset int, limit int, allowFromCache bool) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetPostsAfter(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
- func (_m *PostStore) GetPostsBefore(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
- func (_m *PostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
- func (_m *PostStore) GetPostsSince(channelId string, time int64, allowFromCache bool) (*model.PostList, *model.AppError)
- func (_m *PostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
- func (_m *PostStore) GetSingle(id string) (*model.Post, *model.AppError)
- func (_m *PostStore) InvalidateLastPostTimeCache(channelId string)
- func (_m *PostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (_m *PostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (_m *PostStore) PermanentDeleteByChannel(channelId string) *model.AppError
- func (_m *PostStore) PermanentDeleteByUser(userId string) *model.AppError
- func (_m *PostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (_m *PostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
- func (_m *PostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
- type PreferenceStore
- func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (_m *PreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (_m *PreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (_m *PreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (_m *PreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (_m *PreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (_m *PreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (_m *PreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type ReactionStore
- func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)
- func (_m *ReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
- func (_m *ReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
- func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (_m *ReactionStore) Save(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- type RoleStore
- func (_m *RoleStore) Delete(roldId string) (*model.Role, *model.AppError)
- func (_m *RoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (_m *RoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (_m *RoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (_m *RoleStore) PermanentDeleteAll() *model.AppError
- func (_m *RoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- type SchemeStore
- func (_m *SchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)
- func (_m *SchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)
- func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
- func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)
- func (_m *SchemeStore) PermanentDeleteAll() *model.AppError
- func (_m *SchemeStore) Save(scheme *model.Scheme) (*model.Scheme, *model.AppError)
- type SessionStore
- func (_m *SessionStore) AnalyticsSessionCount() (int64, *model.AppError)
- func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (_m *SessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)
- func (_m *SessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)
- func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
- func (_m *SessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
- func (_m *SessionStore) Remove(sessionIdOrToken string) *model.AppError
- func (_m *SessionStore) RemoveAllSessions() *model.AppError
- func (_m *SessionStore) Save(session *model.Session) (*model.Session, *model.AppError)
- func (_m *SessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
- func (_m *SessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
- func (_m *SessionStore) UpdateProps(session *model.Session) *model.AppError
- func (_m *SessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)
- type SqlStore
- func (_m *SqlStore) AlterColumnDefaultIfExists(tableName string, columnName string, mySqlColDefault *string, ...) bool
- func (_m *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, ...) bool
- func (_m *SqlStore) Audit() store.AuditStore
- func (_m *SqlStore) Bot() store.BotStore
- func (_m *SqlStore) Channel() store.ChannelStore
- func (_m *SqlStore) Close()
- func (_m *SqlStore) ClusterDiscovery() store.ClusterDiscoveryStore
- func (_m *SqlStore) Command() store.CommandStore
- func (_m *SqlStore) CommandWebhook() store.CommandWebhookStore
- func (_m *SqlStore) Compliance() store.ComplianceStore
- func (_m *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, ...) bool
- func (_m *SqlStore) CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, ...) bool
- func (_m *SqlStore) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool
- func (_m *SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (_m *SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (_m *SqlStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (_m *SqlStore) DoesColumnExist(tableName string, columName string) bool
- func (_m *SqlStore) DoesTableExist(tablename string) bool
- func (_m *SqlStore) DoesTriggerExist(triggerName string) bool
- func (_m *SqlStore) DriverName() string
- func (_m *SqlStore) Emoji() store.EmojiStore
- func (_m *SqlStore) FileInfo() store.FileInfoStore
- func (_m *SqlStore) GetAllConns() []*gorp.DbMap
- func (_m *SqlStore) GetCurrentSchemaVersion() string
- func (_m *SqlStore) GetMaster() *gorp.DbMap
- func (_m *SqlStore) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string
- func (_m *SqlStore) GetReplica() *gorp.DbMap
- func (_m *SqlStore) GetSearchReplica() *gorp.DbMap
- func (_m *SqlStore) Job() store.JobStore
- func (_m *SqlStore) License() store.LicenseStore
- func (_m *SqlStore) LinkMetadata() store.LinkMetadataStore
- func (_m *SqlStore) LockToMaster()
- func (_m *SqlStore) MarkSystemRanUnitTests()
- func (_m *SqlStore) OAuth() store.OAuthStore
- func (_m *SqlStore) Plugin() store.PluginStore
- func (_m *SqlStore) Post() store.PostStore
- func (_m *SqlStore) Preference() store.PreferenceStore
- func (_m *SqlStore) Reaction() store.ReactionStore
- func (_m *SqlStore) RemoveColumnIfExists(tableName string, columnName string) bool
- func (_m *SqlStore) RemoveIndexIfExists(indexName string, tableName string) bool
- func (_m *SqlStore) RemoveTableIfExists(tableName string) bool
- func (_m *SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool
- func (_m *SqlStore) Role() store.RoleStore
- func (_m *SqlStore) Scheme() store.SchemeStore
- func (_m *SqlStore) Session() store.SessionStore
- func (_m *SqlStore) Status() store.StatusStore
- func (_m *SqlStore) System() store.SystemStore
- func (_m *SqlStore) Team() store.TeamStore
- func (_m *SqlStore) TermsOfService() store.TermsOfServiceStore
- func (_m *SqlStore) Token() store.TokenStore
- func (_m *SqlStore) TotalMasterDbConnections() int
- func (_m *SqlStore) TotalReadDbConnections() int
- func (_m *SqlStore) TotalSearchDbConnections() int
- func (_m *SqlStore) UnlockFromMaster()
- func (_m *SqlStore) User() store.UserStore
- func (_m *SqlStore) UserAccessToken() store.UserAccessTokenStore
- func (_m *SqlStore) UserTermsOfService() store.UserTermsOfServiceStore
- func (_m *SqlStore) Webhook() store.WebhookStore
- type SqlSupplier
- type StatusStore
- func (_m *StatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (_m *StatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (_m *StatusStore) ResetAll() *model.AppError
- func (_m *StatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (_m *StatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- 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 store.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) DropAllTables()
- func (_m *Store) Emoji() store.EmojiStore
- func (_m *Store) FileInfo() store.FileInfoStore
- func (_m *Store) GetCurrentSchemaVersion() string
- 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) Reaction() store.ReactionStore
- func (_m *Store) Role() store.RoleStore
- func (_m *Store) Scheme() store.SchemeStore
- func (_m *Store) Session() store.SessionStore
- 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) 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) 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, *model.AppError)
- func (_m *SystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (_m *SystemStore) Save(system *model.System) *model.AppError
- func (_m *SystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (_m *SystemStore) Update(system *model.System) *model.AppError
- type TeamStore
- func (_m *TeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
- func (_m *TeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
- func (_m *TeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
- func (_m *TeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
- func (_m *TeamStore) ClearAllCustomRoleAssignments() *model.AppError
- func (_m *TeamStore) ClearCaches()
- func (_m *TeamStore) Get(id string) (*model.Team, *model.AppError)
- func (_m *TeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (_m *TeamStore) GetAll() ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
- func (_m *TeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)
- func (_m *TeamStore) GetByName(name string) (*model.Team, *model.AppError)
- func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (_m *TeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (_m *TeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
- func (_m *TeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError)
- func (_m *TeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
- func (_m *TeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
- func (_m *TeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
- func (_m *TeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
- func (_m *TeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (_m *TeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (_m *TeamStore) InvalidateAllTeamIdsForUser(userId string)
- func (_m *TeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
- func (_m *TeamStore) PermanentDelete(teamId string) *model.AppError
- func (_m *TeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
- func (_m *TeamStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (_m *TeamStore) RemoveMember(teamId string, userId string) *model.AppError
- func (_m *TeamStore) ResetAllTeamSchemes() *model.AppError
- func (_m *TeamStore) Save(team *model.Team) (*model.Team, *model.AppError)
- func (_m *TeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
- func (_m *TeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)
- func (_m *TeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)
- func (_m *TeamStore) Update(team *model.Team) (*model.Team, *model.AppError)
- func (_m *TeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
- func (_m *TeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
- func (_m *TeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError
- func (_m *TeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
- type TermsOfServiceStore
- func (_m *TermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
- type TokenStore
- func (_m *TokenStore) Cleanup()
- func (_m *TokenStore) Delete(token string) *model.AppError
- func (_m *TokenStore) GetByToken(token string) (*model.Token, *model.AppError)
- func (_m *TokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
- func (_m *TokenStore) Save(recovery *model.Token) *model.AppError
- type UserAccessTokenStore
- func (_m *UserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (_m *UserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (_m *UserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type UserStore
- func (_m *UserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (_m *UserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (_m *UserStore) ClearCaches()
- func (_m *UserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (_m *UserStore) DeactivateGuests() ([]string, *model.AppError)
- func (_m *UserStore) DemoteUserToGuest(userID string) *model.AppError
- func (_m *UserStore) Get(id string) (*model.User, *model.AppError)
- func (_m *UserStore) GetAll() ([]*model.User, *model.AppError)
- func (_m *UserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (_m *UserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (_m *UserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (_m *UserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (_m *UserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
- 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, *model.AppError)
- func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
- func (_m *UserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (_m *UserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
- func (_m *UserStore) GetUnreadCount(userId string) (int64, *model.AppError)
- func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (_m *UserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (_m *UserStore) InvalidateProfileCacheForUser(userId string)
- func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string)
- func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string)
- func (_m *UserStore) PermanentDelete(userId string) *model.AppError
- func (_m *UserStore) PromoteGuestToUser(userID string) *model.AppError
- func (_m *UserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (_m *UserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (_m *UserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (_m *UserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (_m *UserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (_m *UserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (_m *UserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (_m *UserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (_m *UserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- type UserTermsOfServiceStore
- func (_m *UserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
- func (_m *UserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
- func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
- type WebhookStore
- func (_m *WebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (_m *WebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (_m *WebhookStore) ClearCaches()
- func (_m *WebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (_m *WebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) InvalidateWebhookCache(webhook string)
- func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (_m *WebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
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) *model.AppError
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 Cache ¶
Cache is an autogenerated mock type for the Cache type
func (*Cache) Add ¶
func (_m *Cache) Add(key interface{}, value interface{})
Add provides a mock function with given fields: key, value
func (*Cache) AddWithDefaultExpires ¶
func (_m *Cache) AddWithDefaultExpires(key interface{}, value interface{})
AddWithDefaultExpires provides a mock function with given fields: key, value
func (*Cache) AddWithExpiresInSecs ¶
AddWithExpiresInSecs provides a mock function with given fields: key, value, expireAtSecs
func (*Cache) GetInvalidateClusterEvent ¶
GetInvalidateClusterEvent provides a mock function with given fields:
func (*Cache) GetOrAdd ¶
func (_m *Cache) GetOrAdd(key interface{}, value interface{}, ttl time.Duration) (interface{}, bool)
GetOrAdd provides a mock function with given fields: key, value, ttl
func (*Cache) Keys ¶
func (_m *Cache) Keys() []interface{}
Keys provides a mock function with given fields:
type CacheProvider ¶
CacheProvider is an autogenerated mock type for the CacheProvider type
func (*CacheProvider) Close ¶
func (_m *CacheProvider) Close()
Close provides a mock function with given fields:
func (*CacheProvider) Connect ¶
func (_m *CacheProvider) Connect()
Connect provides a mock function with given fields:
func (*CacheProvider) NewCache ¶
func (_m *CacheProvider) NewCache(size int) cache.Cache
NewCache provides a mock function with given fields: size
func (*CacheProvider) NewCacheWithParams ¶
func (_m *CacheProvider) NewCacheWithParams(size int, name string, defaultExpiry int64, invalidateClusterEvent string) cache.Cache
NewCacheWithParams provides a mock function with given fields: size, name, defaultExpiry, invalidateClusterEvent
type ChannelMemberHistoryStore ¶
ChannelMemberHistoryStore is an autogenerated mock type for the ChannelMemberHistoryStore type
func (*ChannelMemberHistoryStore) GetUsersInChannelDuring ¶
func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
GetUsersInChannelDuring provides a mock function with given fields: startTime, endTime, channelId
func (*ChannelMemberHistoryStore) LogJoinEvent ¶
func (_m *ChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError
LogJoinEvent provides a mock function with given fields: userId, channelId, joinTime
func (*ChannelMemberHistoryStore) LogLeaveEvent ¶
func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError
LogLeaveEvent provides a mock function with given fields: userId, channelId, leaveTime
func (*ChannelMemberHistoryStore) PermanentDeleteBatch ¶
func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
type ChannelStore ¶
ChannelStore is an autogenerated mock type for the ChannelStore type
func (*ChannelStore) AnalyticsDeletedTypeCount ¶
func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
AnalyticsDeletedTypeCount provides a mock function with given fields: teamId, channelType
func (*ChannelStore) AnalyticsTypeCount ¶
func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
AnalyticsTypeCount provides a mock function with given fields: teamId, channelType
func (*ChannelStore) AutocompleteInTeam ¶
func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
AutocompleteInTeam provides a mock function with given fields: teamId, term, includeDeleted
func (*ChannelStore) AutocompleteInTeamForSearch ¶
func (_m *ChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
AutocompleteInTeamForSearch provides a mock function with given fields: teamId, userId, term, includeDeleted
func (*ChannelStore) ClearAllCustomRoleAssignments ¶
func (_m *ChannelStore) ClearAllCustomRoleAssignments() *model.AppError
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) CountPostsAfter ¶
func (_m *ChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)
CountPostsAfter provides a mock function with given fields: channelId, timestamp, userId
func (*ChannelStore) CreateDirectChannel ¶
func (_m *ChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError)
CreateDirectChannel provides a mock function with given fields: userId, otherUserId
func (*ChannelStore) Delete ¶
func (_m *ChannelStore) Delete(channelId string, time int64) *model.AppError
Delete provides a mock function with given fields: channelId, time
func (*ChannelStore) GetAllChannelMembersForUser ¶
func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
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, *model.AppError)
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, *model.AppError)
GetAllChannels provides a mock function with given fields: page, perPage, opts
func (*ChannelStore) GetAllChannelsCount ¶
func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, *model.AppError)
GetAllChannelsCount provides a mock function with given fields: opts
func (*ChannelStore) GetAllChannelsForExportAfter ¶
func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
GetAllChannelsForExportAfter provides a mock function with given fields: limit, afterId
func (*ChannelStore) GetAllDirectChannelsForExportAfter ¶
func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
GetChannelCounts provides a mock function with given fields: teamId, userId
func (*ChannelStore) GetChannelMembersForExport ¶
func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
GetChannelMembersForExport provides a mock function with given fields: userId, teamId
func (*ChannelStore) GetChannelMembersTimezones ¶
func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
GetChannelMembersTimezones provides a mock function with given fields: channelId
func (*ChannelStore) GetChannelUnread ¶
func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
GetChannelUnread provides a mock function with given fields: channelId, userId
func (*ChannelStore) GetChannels ¶
func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
GetChannels provides a mock function with given fields: teamId, userId, includeDeleted
func (*ChannelStore) GetChannelsBatchForIndexing ¶
func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)
GetChannelsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*ChannelStore) GetChannelsByIds ¶
GetChannelsByIds provides a mock function with given fields: channelIds
func (*ChannelStore) GetChannelsByScheme ¶
func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
GetChannelsByScheme provides a mock function with given fields: schemeId, offset, limit
func (*ChannelStore) GetDeleted ¶
func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
GetDeleted provides a mock function with given fields: team_id, offset, limit, userId
func (*ChannelStore) GetDeletedByName ¶
func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
GetDeletedByName provides a mock function with given fields: team_id, name
func (*ChannelStore) GetForPost ¶
GetForPost provides a mock function with given fields: postId
func (*ChannelStore) GetFromMaster ¶
GetFromMaster provides a mock function with given fields: id
func (*ChannelStore) GetGuestCount ¶
func (_m *ChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
GetGuestCount provides a mock function with given fields: channelId, allowFromCache
func (*ChannelStore) GetMember ¶
func (_m *ChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
GetMember provides a mock function with given fields: channelId, userId
func (*ChannelStore) GetMemberCount ¶
func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
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) GetMemberForPost ¶
func (_m *ChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
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, *model.AppError)
GetMembers provides a mock function with given fields: channelId, offset, limit
func (*ChannelStore) GetMembersByIds ¶
func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
GetMembersByIds provides a mock function with given fields: channelId, userIds
func (*ChannelStore) GetMembersForUser ¶
func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
GetMembersForUser provides a mock function with given fields: teamId, userId
func (*ChannelStore) GetMembersForUserWithPagination ¶
func (_m *ChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
GetMembersForUserWithPagination provides a mock function with given fields: teamId, userId, page, perPage
func (*ChannelStore) GetMoreChannels ¶
func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
GetMoreChannels provides a mock function with given fields: teamId, userId, offset, limit
func (*ChannelStore) GetPinnedPostCount ¶
func (_m *ChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
GetPinnedPostCount provides a mock function with given fields: channelId, allowFromCache
func (*ChannelStore) GetPinnedPosts ¶
GetPinnedPosts provides a mock function with given fields: channelId
func (*ChannelStore) GetPublicChannelsByIdsForTeam ¶
func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
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, *model.AppError)
GetPublicChannelsForTeam provides a mock function with given fields: teamId, offset, limit
func (*ChannelStore) GetTeamChannels ¶
func (_m *ChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
GetTeamChannels provides a mock function with given fields: teamId
func (*ChannelStore) IncrementMentionCount ¶
func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
IncrementMentionCount provides a mock function with given fields: channelId, userId
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, *model.AppError)
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) *model.AppError
PermanentDelete provides a mock function with given fields: channelId
func (*ChannelStore) PermanentDeleteByTeam ¶
func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) *model.AppError
PermanentDeleteByTeam provides a mock function with given fields: teamId
func (*ChannelStore) PermanentDeleteMembersByChannel ¶
func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
PermanentDeleteMembersByChannel provides a mock function with given fields: channelId
func (*ChannelStore) PermanentDeleteMembersByUser ¶
func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
PermanentDeleteMembersByUser provides a mock function with given fields: userId
func (*ChannelStore) RemoveAllDeactivatedMembers ¶
func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
RemoveAllDeactivatedMembers provides a mock function with given fields: channelId
func (*ChannelStore) RemoveMember ¶
func (_m *ChannelStore) RemoveMember(channelId string, userId string) *model.AppError
RemoveMember provides a mock function with given fields: channelId, userId
func (*ChannelStore) ResetAllChannelSchemes ¶
func (_m *ChannelStore) ResetAllChannelSchemes() *model.AppError
ResetAllChannelSchemes provides a mock function with given fields:
func (*ChannelStore) Restore ¶
func (_m *ChannelStore) Restore(channelId string, time int64) *model.AppError
Restore provides a mock function with given fields: channelId, time
func (*ChannelStore) Save ¶
func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
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, *model.AppError)
SaveDirectChannel provides a mock function with given fields: channel, member1, member2
func (*ChannelStore) SaveMember ¶
func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
SaveMember provides a mock function with given fields: member
func (*ChannelStore) SearchAllChannels ¶
func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
SearchMore provides a mock function with given fields: userId, teamId, term
func (*ChannelStore) SetDeleteAt ¶
func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError
SetDeleteAt provides a mock function with given fields: channelId, deleteAt, updateAt
func (*ChannelStore) UpdateLastViewedAt ¶
func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
UpdateLastViewedAt provides a mock function with given fields: channelIds, userId
func (*ChannelStore) UpdateLastViewedAtPost ¶
func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
UpdateLastViewedAtPost provides a mock function with given fields: unreadPost, userID, mentionCount
func (*ChannelStore) UpdateMember ¶
func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
UpdateMember provides a mock function with given fields: member
func (*ChannelStore) UpdateMembersRole ¶
func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
UpdateMembersRole provides a mock function with given fields: channelID, userIDs
func (*ChannelStore) UserBelongsToChannels ¶
func (_m *ChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
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() *model.AppError
Cleanup provides a mock function with given fields:
func (*ClusterDiscoveryStore) Delete ¶
func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
Delete provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) Exists ¶
func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
Exists provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) GetAll ¶
func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
GetAll provides a mock function with given fields: discoveryType, clusterName
func (*ClusterDiscoveryStore) Save ¶
func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
Save provides a mock function with given fields: discovery
func (*ClusterDiscoveryStore) SetLastPingAt ¶
func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
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, *model.AppError)
AnalyticsCommandCount provides a mock function with given fields: teamId
func (*CommandStore) Delete ¶
func (_m *CommandStore) Delete(commandId string, time int64) *model.AppError
Delete provides a mock function with given fields: commandId, time
func (*CommandStore) GetByTrigger ¶
func (_m *CommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
GetByTrigger provides a mock function with given fields: teamId, trigger
func (*CommandStore) PermanentDeleteByTeam ¶
func (_m *CommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
PermanentDeleteByTeam provides a mock function with given fields: teamId
func (*CommandStore) PermanentDeleteByUser ¶
func (_m *CommandStore) PermanentDeleteByUser(userId string) *model.AppError
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, *model.AppError)
Get provides a mock function with given fields: id
func (*CommandWebhookStore) Save ¶
func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
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) ([]*model.CompliancePost, *model.AppError)
ComplianceExport provides a mock function with given fields: compliance
func (*ComplianceStore) Get ¶
func (_m *ComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
Get provides a mock function with given fields: id
func (*ComplianceStore) GetAll ¶
func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
GetAll provides a mock function with given fields: offset, limit
func (*ComplianceStore) MessageExport ¶
func (_m *ComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
MessageExport provides a mock function with given fields: after, limit
func (*ComplianceStore) Save ¶
func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
Save provides a mock function with given fields: compliance
func (*ComplianceStore) Update ¶
func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
Update provides a mock function with given fields: compliance
type EmojiStore ¶
EmojiStore is an autogenerated mock type for the EmojiStore type
func (*EmojiStore) GetByName ¶
GetByName provides a mock function with given fields: name, allowFromCache
func (*EmojiStore) GetList ¶
GetList provides a mock function with given fields: offset, limit, sort
func (*EmojiStore) GetMultipleByName ¶
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) *model.AppError
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) DeleteForPost ¶
func (_m *FileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
DeleteForPost provides a mock function with given fields: postId
func (*FileInfoStore) GetForPost ¶
func (_m *FileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
GetForPost provides a mock function with given fields: postId, readFromMaster, includeDeleted, allowFromCache
func (*FileInfoStore) GetForUser ¶
GetForUser provides a mock function with given fields: userId
func (*FileInfoStore) InvalidateFileInfosForPostCache ¶
func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postId string)
InvalidateFileInfosForPostCache provides a mock function with given fields: postId
func (*FileInfoStore) PermanentDelete ¶
func (_m *FileInfoStore) PermanentDelete(fileId string) *model.AppError
PermanentDelete provides a mock function with given fields: fileId
func (*FileInfoStore) PermanentDeleteBatch ¶
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
func (*FileInfoStore) PermanentDeleteByUser ¶
func (_m *FileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
PermanentDeleteByUser provides a mock function with given fields: userId
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, *model.AppError)
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, *model.AppError)
ChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs, page, perPage
func (*GroupStore) ChannelMembersToAdd ¶
func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
ChannelMembersToAdd provides a mock function with given fields: since, channelID
func (*GroupStore) ChannelMembersToRemove ¶
func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
ChannelMembersToRemove provides a mock function with given fields: channelID
func (*GroupStore) CountChannelMembersMinusGroupMembers ¶
func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
CountChannelMembersMinusGroupMembers provides a mock function with given fields: channelID, groupIDs
func (*GroupStore) CountGroupsByChannel ¶
func (_m *GroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
CountGroupsByChannel provides a mock function with given fields: channelId, opts
func (*GroupStore) CountGroupsByTeam ¶
func (_m *GroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
CountGroupsByTeam provides a mock function with given fields: teamId, opts
func (*GroupStore) CountTeamMembersMinusGroupMembers ¶
func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
CountTeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs
func (*GroupStore) CreateGroupSyncable ¶
func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
CreateGroupSyncable provides a mock function with given fields: groupSyncable
func (*GroupStore) DeleteGroupSyncable ¶
func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
DeleteGroupSyncable provides a mock function with given fields: groupID, syncableID, syncableType
func (*GroupStore) DeleteMember ¶
func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
DeleteMember provides a mock function with given fields: groupID, userID
func (*GroupStore) GetAllBySource ¶
func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
GetAllBySource provides a mock function with given fields: groupSource
func (*GroupStore) GetAllGroupSyncablesByGroupId ¶
func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
GetAllGroupSyncablesByGroupId provides a mock function with given fields: groupID, syncableType
func (*GroupStore) GetByRemoteID ¶
func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
GetByRemoteID provides a mock function with given fields: remoteID, groupSource
func (*GroupStore) GetGroupSyncable ¶
func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
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, *model.AppError)
GetGroups provides a mock function with given fields: page, perPage, opts
func (*GroupStore) GetGroupsByChannel ¶
func (_m *GroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
GetGroupsByChannel provides a mock function with given fields: channelId, opts
func (*GroupStore) GetGroupsByTeam ¶
func (_m *GroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
GetGroupsByTeam provides a mock function with given fields: teamId, opts
func (*GroupStore) GetMemberCount ¶
func (_m *GroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
GetMemberCount provides a mock function with given fields: groupID
func (*GroupStore) GetMemberUsers ¶
GetMemberUsers provides a mock function with given fields: groupID
func (*GroupStore) GetMemberUsersPage ¶
func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
GetMemberUsersPage provides a mock function with given fields: groupID, page, perPage
func (*GroupStore) PermanentDeleteMembersByUser ¶
func (_m *GroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
PermanentDeleteMembersByUser provides a mock function with given fields: userId
func (*GroupStore) PermittedSyncableAdmins ¶
func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
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, *model.AppError)
TeamMembersMinusGroupMembers provides a mock function with given fields: teamID, groupIDs, page, perPage
func (*GroupStore) TeamMembersToAdd ¶
func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
TeamMembersToAdd provides a mock function with given fields: since, teamID
func (*GroupStore) TeamMembersToRemove ¶
func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
TeamMembersToRemove provides a mock function with given fields: teamID
func (*GroupStore) UpdateGroupSyncable ¶
func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
UpdateGroupSyncable provides a mock function with given fields: groupSyncable
func (*GroupStore) UpsertMember ¶
func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
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) 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 ¶
func (_m *JobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
GetAllByTypePage provides a mock function with given fields: jobType, 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 ¶
func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
GetNewestJobByStatusAndType provides a mock function with given fields: status, jobType
func (*JobStore) UpdateOptimistically ¶
func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
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, *model.AppError)
Get provides a mock function with given fields: id
func (*LicenseStore) Save ¶
func (_m *LicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
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, *model.AppError)
Get provides a mock function with given fields: url, timestamp
func (*LinkMetadataStore) Save ¶
func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
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) *model.AppError
DeleteApp provides a mock function with given fields: id
func (*OAuthStore) GetAccessData ¶
func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
GetAccessData provides a mock function with given fields: token
func (*OAuthStore) GetAccessDataByRefreshToken ¶
func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
GetAccessDataByRefreshToken provides a mock function with given fields: token
func (*OAuthStore) GetAccessDataByUserForApp ¶
func (_m *OAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
GetAccessDataByUserForApp provides a mock function with given fields: userId, clientId
func (*OAuthStore) GetAppByUser ¶
func (_m *OAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
GetAppByUser provides a mock function with given fields: userId, offset, limit
func (*OAuthStore) GetAuthData ¶
GetAuthData provides a mock function with given fields: code
func (*OAuthStore) GetAuthorizedApps ¶
func (_m *OAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
GetAuthorizedApps provides a mock function with given fields: userId, offset, limit
func (*OAuthStore) GetPreviousAccessData ¶
func (_m *OAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
GetPreviousAccessData provides a mock function with given fields: userId, clientId
func (*OAuthStore) PermanentDeleteAuthDataByUser ¶
func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
PermanentDeleteAuthDataByUser provides a mock function with given fields: userId
func (*OAuthStore) RemoveAccessData ¶
func (_m *OAuthStore) RemoveAccessData(token string) *model.AppError
RemoveAccessData provides a mock function with given fields: token
func (*OAuthStore) RemoveAllAccessData ¶
func (_m *OAuthStore) RemoveAllAccessData() *model.AppError
RemoveAllAccessData provides a mock function with given fields:
func (*OAuthStore) RemoveAuthData ¶
func (_m *OAuthStore) RemoveAuthData(code string) *model.AppError
RemoveAuthData provides a mock function with given fields: code
func (*OAuthStore) SaveAccessData ¶
func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
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, *model.AppError)
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, *model.AppError)
CompareAndDelete provides a mock function with given fields: keyVal, oldValue
func (*PluginStore) CompareAndSet ¶
func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
CompareAndSet provides a mock function with given fields: keyVal, oldValue
func (*PluginStore) Delete ¶
func (_m *PluginStore) Delete(pluginId string, key string) *model.AppError
Delete provides a mock function with given fields: pluginId, key
func (*PluginStore) DeleteAllExpired ¶
func (_m *PluginStore) DeleteAllExpired() *model.AppError
DeleteAllExpired provides a mock function with given fields:
func (*PluginStore) DeleteAllForPlugin ¶
func (_m *PluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
DeleteAllForPlugin provides a mock function with given fields: PluginId
func (*PluginStore) Get ¶
func (_m *PluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
Get provides a mock function with given fields: pluginId, key
func (*PluginStore) SaveOrUpdate ¶
func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
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, *model.AppError)
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, *model.AppError)
AnalyticsPostCount provides a mock function with given fields: teamId, mustHaveFile, mustHaveHashtag
func (*PostStore) AnalyticsPostCountsByDay ¶
func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
AnalyticsPostCountsByDay provides a mock function with given fields: options
func (*PostStore) AnalyticsUserCountsWithPostsByDay ¶
func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
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) GetDirectPostParentsForExportAfter ¶
func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
GetDirectPostParentsForExportAfter provides a mock function with given fields: limit, afterId
func (*PostStore) GetEtag ¶
GetEtag provides a mock function with given fields: channelId, allowFromCache
func (*PostStore) GetFlaggedPosts ¶
func (_m *PostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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) GetParentsForExportAfter ¶
func (_m *PostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
GetParentsForExportAfter provides a mock function with given fields: limit, afterId
func (*PostStore) GetPostAfterTime ¶
GetPostAfterTime provides a mock function with given fields: channelId, time
func (*PostStore) GetPostIdAfterTime ¶
GetPostIdAfterTime provides a mock function with given fields: channelId, time
func (*PostStore) GetPostIdBeforeTime ¶
GetPostIdBeforeTime provides a mock function with given fields: channelId, time
func (*PostStore) GetPosts ¶
func (_m *PostStore) GetPosts(channelId string, offset int, limit int, allowFromCache bool) (*model.PostList, *model.AppError)
GetPosts provides a mock function with given fields: channelId, offset, limit, allowFromCache
func (*PostStore) GetPostsAfter ¶
func (_m *PostStore) GetPostsAfter(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)
GetPostsAfter provides a mock function with given fields: channelId, postId, numPosts, offset
func (*PostStore) GetPostsBatchForIndexing ¶
func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
GetPostsBatchForIndexing provides a mock function with given fields: startTime, endTime, limit
func (*PostStore) GetPostsBefore ¶
func (_m *PostStore) GetPostsBefore(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)
GetPostsBefore provides a mock function with given fields: channelId, postId, numPosts, offset
func (*PostStore) GetPostsByIds ¶
GetPostsByIds provides a mock function with given fields: postIds
func (*PostStore) GetPostsCreatedAt ¶
func (_m *PostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
GetPostsCreatedAt provides a mock function with given fields: channelId, time
func (*PostStore) GetPostsSince ¶
func (_m *PostStore) GetPostsSince(channelId string, time int64, allowFromCache bool) (*model.PostList, *model.AppError)
GetPostsSince provides a mock function with given fields: channelId, time, allowFromCache
func (*PostStore) GetRepliesForExport ¶
func (_m *PostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
GetRepliesForExport provides a mock function with given fields: parentId
func (*PostStore) InvalidateLastPostTimeCache ¶
InvalidateLastPostTimeCache provides a mock function with given fields: channelId
func (*PostStore) PermanentDeleteBatch ¶
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
func (*PostStore) PermanentDeleteByChannel ¶
PermanentDeleteByChannel provides a mock function with given fields: channelId
func (*PostStore) PermanentDeleteByUser ¶
PermanentDeleteByUser provides a mock function with given fields: userId
type PreferenceStore ¶
PreferenceStore is an autogenerated mock type for the PreferenceStore type
func (*PreferenceStore) CleanupFlagsBatch ¶
func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
CleanupFlagsBatch provides a mock function with given fields: limit
func (*PreferenceStore) Delete ¶
Delete provides a mock function with given fields: userId, category, name
func (*PreferenceStore) DeleteCategory ¶
func (_m *PreferenceStore) DeleteCategory(userId string, category string) *model.AppError
DeleteCategory provides a mock function with given fields: userId, category
func (*PreferenceStore) DeleteCategoryAndName ¶
func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
DeleteCategoryAndName provides a mock function with given fields: category, name
func (*PreferenceStore) Get ¶
func (_m *PreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
Get provides a mock function with given fields: userId, category, name
func (*PreferenceStore) GetAll ¶
func (_m *PreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
GetAll provides a mock function with given fields: userId
func (*PreferenceStore) GetCategory ¶
func (_m *PreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
GetCategory provides a mock function with given fields: userId, category
func (*PreferenceStore) PermanentDeleteByUser ¶
func (_m *PreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
PermanentDeleteByUser provides a mock function with given fields: userId
func (*PreferenceStore) Save ¶
func (_m *PreferenceStore) Save(preferences *model.Preferences) *model.AppError
Save provides a mock function with given fields: preferences
type ReactionStore ¶
ReactionStore is an autogenerated mock type for the ReactionStore type
func (*ReactionStore) BulkGetForPosts ¶
BulkGetForPosts provides a mock function with given fields: postIds
func (*ReactionStore) DeleteAllWithEmojiName ¶
func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
DeleteAllWithEmojiName provides a mock function with given fields: emojiName
func (*ReactionStore) GetForPost ¶
func (_m *ReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
GetForPost provides a mock function with given fields: postId, allowFromCache
func (*ReactionStore) PermanentDeleteBatch ¶
PermanentDeleteBatch provides a mock function with given fields: endTime, limit
type RoleStore ¶
RoleStore is an autogenerated mock type for the RoleStore type
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) GetAllPage ¶
func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
GetAllPage provides a mock function with given fields: scope, offset, limit
func (*SchemeStore) PermanentDeleteAll ¶
func (_m *SchemeStore) PermanentDeleteAll() *model.AppError
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, *model.AppError)
AnalyticsSessionCount provides a mock function with given fields:
func (*SessionStore) Cleanup ¶
func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64)
Cleanup provides a mock function with given fields: expiryTime, batchSize
func (*SessionStore) GetSessions ¶
GetSessions provides a mock function with given fields: userId
func (*SessionStore) GetSessionsWithActiveDeviceIds ¶
func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
GetSessionsWithActiveDeviceIds provides a mock function with given fields: userId
func (*SessionStore) PermanentDeleteSessionsByUser ¶
func (_m *SessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
PermanentDeleteSessionsByUser provides a mock function with given fields: teamId
func (*SessionStore) Remove ¶
func (_m *SessionStore) Remove(sessionIdOrToken string) *model.AppError
Remove provides a mock function with given fields: sessionIdOrToken
func (*SessionStore) RemoveAllSessions ¶
func (_m *SessionStore) RemoveAllSessions() *model.AppError
RemoveAllSessions provides a mock function with given fields:
func (*SessionStore) UpdateDeviceId ¶
func (_m *SessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
UpdateDeviceId provides a mock function with given fields: id, deviceId, expiresAt
func (*SessionStore) UpdateLastActivityAt ¶
func (_m *SessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
UpdateLastActivityAt provides a mock function with given fields: sessionId, time
func (*SessionStore) UpdateProps ¶
func (_m *SessionStore) UpdateProps(session *model.Session) *model.AppError
UpdateProps provides a mock function with given fields: session
func (*SessionStore) UpdateRoles ¶
UpdateRoles provides a mock function with given fields: userId, roles
type SqlStore ¶
SqlStore is an autogenerated mock type for the SqlStore type
func (*SqlStore) AlterColumnDefaultIfExists ¶
func (_m *SqlStore) AlterColumnDefaultIfExists(tableName string, columnName string, mySqlColDefault *string, postgresColDefault *string) bool
AlterColumnDefaultIfExists provides a mock function with given fields: tableName, columnName, mySqlColDefault, postgresColDefault
func (*SqlStore) AlterColumnTypeIfExists ¶
func (_m *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool
AlterColumnTypeIfExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
func (*SqlStore) Audit ¶
func (_m *SqlStore) Audit() store.AuditStore
Audit provides a mock function with given fields:
func (*SqlStore) Channel ¶
func (_m *SqlStore) Channel() store.ChannelStore
Channel provides a mock function with given fields:
func (*SqlStore) Close ¶
func (_m *SqlStore) Close()
Close provides a mock function with given fields:
func (*SqlStore) ClusterDiscovery ¶
func (_m *SqlStore) ClusterDiscovery() store.ClusterDiscoveryStore
ClusterDiscovery provides a mock function with given fields:
func (*SqlStore) Command ¶
func (_m *SqlStore) Command() store.CommandStore
Command provides a mock function with given fields:
func (*SqlStore) CommandWebhook ¶
func (_m *SqlStore) CommandWebhook() store.CommandWebhookStore
CommandWebhook provides a mock function with given fields:
func (*SqlStore) Compliance ¶
func (_m *SqlStore) Compliance() store.ComplianceStore
Compliance provides a mock function with given fields:
func (*SqlStore) CreateColumnIfNotExists ¶
func (_m *SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool
CreateColumnIfNotExists provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType, defaultValue
func (*SqlStore) CreateColumnIfNotExistsNoDefault ¶
func (_m *SqlStore) CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, postgresColType string) bool
CreateColumnIfNotExistsNoDefault provides a mock function with given fields: tableName, columnName, mySqlColType, postgresColType
func (*SqlStore) CreateCompositeIndexIfNotExists ¶
func (_m *SqlStore) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool
CreateCompositeIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnNames
func (*SqlStore) CreateFullTextIndexIfNotExists ¶
func (_m *SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
CreateFullTextIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
func (*SqlStore) CreateIndexIfNotExists ¶
func (_m *SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
CreateIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
func (*SqlStore) CreateUniqueIndexIfNotExists ¶
func (_m *SqlStore) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
CreateUniqueIndexIfNotExists provides a mock function with given fields: indexName, tableName, columnName
func (*SqlStore) DoesColumnExist ¶
DoesColumnExist provides a mock function with given fields: tableName, columName
func (*SqlStore) DoesTableExist ¶
DoesTableExist provides a mock function with given fields: tablename
func (*SqlStore) DoesTriggerExist ¶
DoesTriggerExist provides a mock function with given fields: triggerName
func (*SqlStore) DriverName ¶
DriverName provides a mock function with given fields:
func (*SqlStore) Emoji ¶
func (_m *SqlStore) Emoji() store.EmojiStore
Emoji provides a mock function with given fields:
func (*SqlStore) FileInfo ¶
func (_m *SqlStore) FileInfo() store.FileInfoStore
FileInfo provides a mock function with given fields:
func (*SqlStore) GetAllConns ¶
GetAllConns provides a mock function with given fields:
func (*SqlStore) GetCurrentSchemaVersion ¶
GetCurrentSchemaVersion provides a mock function with given fields:
func (*SqlStore) GetMaxLengthOfColumnIfExists ¶
GetMaxLengthOfColumnIfExists provides a mock function with given fields: tableName, columnName
func (*SqlStore) GetReplica ¶
GetReplica provides a mock function with given fields:
func (*SqlStore) GetSearchReplica ¶
GetSearchReplica provides a mock function with given fields:
func (*SqlStore) License ¶
func (_m *SqlStore) License() store.LicenseStore
License provides a mock function with given fields:
func (*SqlStore) LinkMetadata ¶
func (_m *SqlStore) LinkMetadata() store.LinkMetadataStore
LinkMetadata provides a mock function with given fields:
func (*SqlStore) LockToMaster ¶
func (_m *SqlStore) LockToMaster()
LockToMaster provides a mock function with given fields:
func (*SqlStore) MarkSystemRanUnitTests ¶
func (_m *SqlStore) MarkSystemRanUnitTests()
MarkSystemRanUnitTests provides a mock function with given fields:
func (*SqlStore) OAuth ¶
func (_m *SqlStore) OAuth() store.OAuthStore
OAuth provides a mock function with given fields:
func (*SqlStore) Plugin ¶
func (_m *SqlStore) Plugin() store.PluginStore
Plugin provides a mock function with given fields:
func (*SqlStore) Preference ¶
func (_m *SqlStore) Preference() store.PreferenceStore
Preference provides a mock function with given fields:
func (*SqlStore) Reaction ¶
func (_m *SqlStore) Reaction() store.ReactionStore
Reaction provides a mock function with given fields:
func (*SqlStore) RemoveColumnIfExists ¶
RemoveColumnIfExists provides a mock function with given fields: tableName, columnName
func (*SqlStore) RemoveIndexIfExists ¶
RemoveIndexIfExists provides a mock function with given fields: indexName, tableName
func (*SqlStore) RemoveTableIfExists ¶
RemoveTableIfExists provides a mock function with given fields: tableName
func (*SqlStore) RenameColumnIfExists ¶
func (_m *SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool
RenameColumnIfExists provides a mock function with given fields: tableName, oldColumnName, newColumnName, colType
func (*SqlStore) Scheme ¶
func (_m *SqlStore) Scheme() store.SchemeStore
Scheme provides a mock function with given fields:
func (*SqlStore) Session ¶
func (_m *SqlStore) Session() store.SessionStore
Session provides a mock function with given fields:
func (*SqlStore) Status ¶
func (_m *SqlStore) Status() store.StatusStore
Status provides a mock function with given fields:
func (*SqlStore) System ¶
func (_m *SqlStore) System() store.SystemStore
System provides a mock function with given fields:
func (*SqlStore) TermsOfService ¶
func (_m *SqlStore) TermsOfService() store.TermsOfServiceStore
TermsOfService provides a mock function with given fields:
func (*SqlStore) Token ¶
func (_m *SqlStore) Token() store.TokenStore
Token provides a mock function with given fields:
func (*SqlStore) TotalMasterDbConnections ¶
TotalMasterDbConnections provides a mock function with given fields:
func (*SqlStore) TotalReadDbConnections ¶
TotalReadDbConnections provides a mock function with given fields:
func (*SqlStore) TotalSearchDbConnections ¶
TotalSearchDbConnections provides a mock function with given fields:
func (*SqlStore) UnlockFromMaster ¶
func (_m *SqlStore) UnlockFromMaster()
UnlockFromMaster provides a mock function with given fields:
func (*SqlStore) UserAccessToken ¶
func (_m *SqlStore) UserAccessToken() store.UserAccessTokenStore
UserAccessToken provides a mock function with given fields:
func (*SqlStore) UserTermsOfService ¶
func (_m *SqlStore) UserTermsOfService() store.UserTermsOfServiceStore
UserTermsOfService provides a mock function with given fields:
func (*SqlStore) Webhook ¶
func (_m *SqlStore) Webhook() store.WebhookStore
Webhook provides a mock function with given fields:
type SqlSupplier ¶
SqlSupplier is an autogenerated mock type for the SqlSupplier type
func (*SqlSupplier) GetMaster ¶
func (_m *SqlSupplier) GetMaster() *gorp.DbMap
GetMaster provides a mock function with given fields:
type StatusStore ¶
StatusStore is an autogenerated mock type for the StatusStore type
func (*StatusStore) GetTotalActiveUsersCount ¶
func (_m *StatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
GetTotalActiveUsersCount provides a mock function with given fields:
func (*StatusStore) ResetAll ¶
func (_m *StatusStore) ResetAll() *model.AppError
ResetAll provides a mock function with given fields:
func (*StatusStore) SaveOrUpdate ¶
func (_m *StatusStore) SaveOrUpdate(status *model.Status) *model.AppError
SaveOrUpdate provides a mock function with given fields: status
func (*StatusStore) UpdateLastActivityAt ¶
func (_m *StatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
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 store.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) 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) Reaction ¶
func (_m *Store) Reaction() store.ReactionStore
Reaction 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) 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) 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) 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, *model.AppError)
Get provides a mock function with given fields:
func (*SystemStore) PermanentDeleteByName ¶
PermanentDeleteByName provides a mock function with given fields: name
func (*SystemStore) Save ¶
func (_m *SystemStore) Save(system *model.System) *model.AppError
Save provides a mock function with given fields: system
func (*SystemStore) SaveOrUpdate ¶
func (_m *SystemStore) SaveOrUpdate(system *model.System) *model.AppError
SaveOrUpdate 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) AnalyticsPrivateTeamCount ¶
AnalyticsPrivateTeamCount provides a mock function with given fields:
func (*TeamStore) AnalyticsPublicTeamCount ¶
AnalyticsPublicTeamCount provides a mock function with given fields:
func (*TeamStore) AnalyticsTeamCount ¶
AnalyticsTeamCount provides a mock function with given fields: includeDeleted
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, *model.AppError)
GetActiveMemberCount provides a mock function with given fields: teamId, restrictions
func (*TeamStore) GetAllForExportAfter ¶
func (_m *TeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
GetAllForExportAfter provides a mock function with given fields: limit, afterId
func (*TeamStore) GetAllPage ¶
GetAllPage provides a mock function with given fields: offset, limit
func (*TeamStore) GetAllPrivateTeamListing ¶
GetAllPrivateTeamListing provides a mock function with given fields:
func (*TeamStore) GetAllPrivateTeamPageListing ¶
func (_m *TeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
GetAllPrivateTeamPageListing provides a mock function with given fields: offset, limit
func (*TeamStore) GetAllPublicTeamPageListing ¶
func (_m *TeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
GetAllPublicTeamPageListing provides a mock function with given fields: offset, limit
func (*TeamStore) GetAllTeamListing ¶
GetAllTeamListing provides a mock function with given fields:
func (*TeamStore) GetAllTeamPageListing ¶
GetAllTeamPageListing provides a mock function with given fields: offset, limit
func (*TeamStore) GetByInviteId ¶
GetByInviteId provides a mock function with given fields: inviteId
func (*TeamStore) GetChannelUnreadsForAllTeams ¶
func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
GetChannelUnreadsForAllTeams provides a mock function with given fields: excludeTeamId, userId
func (*TeamStore) GetChannelUnreadsForTeam ¶
func (_m *TeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
GetChannelUnreadsForTeam provides a mock function with given fields: teamId, userId
func (*TeamStore) GetMembers ¶
func (_m *TeamStore) GetMembers(teamId string, offset int, limit int, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
GetMembers provides a mock function with given fields: teamId, offset, limit, restrictions
func (*TeamStore) GetMembersByIds ¶
func (_m *TeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
GetMembersByIds provides a mock function with given fields: teamId, userIds, restrictions
func (*TeamStore) GetTeamMembersForExport ¶
func (_m *TeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
GetTeamMembersForExport provides a mock function with given fields: userId
func (*TeamStore) GetTeamsByScheme ¶
func (_m *TeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
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 ¶
GetTeamsForUser provides a mock function with given fields: userId
func (*TeamStore) GetTeamsForUserWithPagination ¶
func (_m *TeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
GetTeamsForUserWithPagination provides a mock function with given fields: userId, page, perPage
func (*TeamStore) GetTotalMemberCount ¶
func (_m *TeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
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) InvalidateAllTeamIdsForUser ¶
InvalidateAllTeamIdsForUser provides a mock function with given fields: userId
func (*TeamStore) MigrateTeamMembers ¶
func (_m *TeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
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) ResetAllTeamSchemes ¶
ResetAllTeamSchemes provides a mock function with given fields:
func (*TeamStore) SaveMember ¶
func (_m *TeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
SaveMember provides a mock function with given fields: member, maxUsersPerTeam
func (*TeamStore) SearchAllPaged ¶
func (_m *TeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)
SearchAllPaged provides a mock function with given fields: term, page, perPage
func (*TeamStore) SearchOpen ¶
SearchOpen provides a mock function with given fields: term
func (*TeamStore) SearchPrivate ¶
SearchPrivate provides a mock function with given fields: term
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, *model.AppError)
UpdateMember provides a mock function with given fields: member
func (*TeamStore) UpdateMembersRole ¶
UpdateMembersRole provides a mock function with given fields: teamID, userIDs
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, *model.AppError)
Get provides a mock function with given fields: id, allowFromCache
func (*TermsOfServiceStore) GetLatest ¶
func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
GetLatest provides a mock function with given fields: allowFromCache
func (*TermsOfServiceStore) Save ¶
func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
Save provides a mock function with given fields: termsOfService
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) *model.AppError
Delete provides a mock function with given fields: token
func (*TokenStore) GetByToken ¶
GetByToken provides a mock function with given fields: token
func (*TokenStore) RemoveAllTokensByType ¶
func (_m *TokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
RemoveAllTokensByType provides a mock function with given fields: tokenType
type UserAccessTokenStore ¶
UserAccessTokenStore is an autogenerated mock type for the UserAccessTokenStore type
func (*UserAccessTokenStore) Delete ¶
func (_m *UserAccessTokenStore) Delete(tokenId string) *model.AppError
Delete provides a mock function with given fields: tokenId
func (*UserAccessTokenStore) DeleteAllForUser ¶
func (_m *UserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
DeleteAllForUser provides a mock function with given fields: userId
func (*UserAccessTokenStore) Get ¶
func (_m *UserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
Get provides a mock function with given fields: tokenId
func (*UserAccessTokenStore) GetAll ¶
func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
GetAll provides a mock function with given fields: offset, limit
func (*UserAccessTokenStore) GetByToken ¶
func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
GetByToken provides a mock function with given fields: tokenString
func (*UserAccessTokenStore) GetByUser ¶
func (_m *UserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
GetByUser provides a mock function with given fields: userId, page, perPage
func (*UserAccessTokenStore) Save ¶
func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
Save provides a mock function with given fields: token
func (*UserAccessTokenStore) Search ¶
func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
Search provides a mock function with given fields: term
func (*UserAccessTokenStore) UpdateTokenDisable ¶
func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
UpdateTokenDisable provides a mock function with given fields: tokenId
func (*UserAccessTokenStore) UpdateTokenEnable ¶
func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
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, *model.AppError)
AnalyticsActiveCount provides a mock function with given fields: time, options
func (*UserStore) AnalyticsGetInactiveUsersCount ¶
AnalyticsGetInactiveUsersCount provides a mock function with given fields:
func (*UserStore) AnalyticsGetSystemAdminCount ¶
AnalyticsGetSystemAdminCount provides a mock function with given fields:
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) 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) GetAllProfiles ¶
GetAllProfiles provides a mock function with given fields: options
func (*UserStore) GetAllProfilesInChannel ¶
func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
GetAllProfilesInChannel provides a mock function with given fields: 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, *model.AppError)
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, *model.AppError)
GetForLogin provides a mock function with given fields: loginId, allowSignInWithUsername, allowSignInWithEmail
func (*UserStore) GetNewUsersForTeam ¶
func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
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, *model.AppError)
GetProfileByGroupChannelIdsForUser provides a mock function with given fields: userId, channelIds
func (*UserStore) GetProfileByIds ¶
func (_m *UserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
GetProfileByIds provides a mock function with given fields: 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, *model.AppError)
GetProfilesByUsernames provides a mock function with given fields: usernames, viewRestrictions
func (*UserStore) GetProfilesInChannel ¶
func (_m *UserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
GetProfilesInChannel provides a mock function with given fields: channelId, offset, limit
func (*UserStore) GetProfilesInChannelByStatus ¶
func (_m *UserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
GetProfilesInChannelByStatus provides a mock function with given fields: channelId, offset, limit
func (*UserStore) GetProfilesNotInChannel ¶
func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
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, *model.AppError)
GetProfilesNotInTeam provides a mock function with given fields: teamId, groupConstrained, offset, limit, viewRestrictions
func (*UserStore) GetProfilesWithoutTeam ¶
func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
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, *model.AppError)
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 ¶
func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
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, *model.AppError)
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) 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, *model.AppError)
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, *model.AppError)
SearchInChannel provides a mock function with given fields: channelId, term, options
func (*UserStore) SearchNotInChannel ¶
func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
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, *model.AppError)
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, *model.AppError)
SearchWithoutTeam provides a mock function with given fields: term, options
func (*UserStore) Update ¶
func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
Update provides a mock function with given fields: user, allowRoleUpdate
func (*UserStore) UpdateAuthData ¶
func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
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) 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) *model.AppError
Delete provides a mock function with given fields: userId, termsOfServiceId
func (*UserTermsOfServiceStore) GetByUser ¶
func (_m *UserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
GetByUser provides a mock function with given fields: userId
func (*UserTermsOfServiceStore) Save ¶
func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
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, *model.AppError)
AnalyticsIncomingCount provides a mock function with given fields: teamId
func (*WebhookStore) AnalyticsOutgoingCount ¶
func (_m *WebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
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) *model.AppError
DeleteIncoming provides a mock function with given fields: webhookId, time
func (*WebhookStore) DeleteOutgoing ¶
func (_m *WebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
DeleteOutgoing provides a mock function with given fields: webhookId, time
func (*WebhookStore) GetIncoming ¶
func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
GetIncoming provides a mock function with given fields: id, allowFromCache
func (*WebhookStore) GetIncomingByChannel ¶
func (_m *WebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
GetIncomingByChannel provides a mock function with given fields: channelId
func (*WebhookStore) GetIncomingByTeam ¶
func (_m *WebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
GetIncomingListByUser provides a mock function with given fields: userId, offset, limit
func (*WebhookStore) GetOutgoing ¶
func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
GetOutgoing provides a mock function with given fields: id
func (*WebhookStore) GetOutgoingByChannel ¶
func (_m *WebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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, *model.AppError)
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) *model.AppError
PermanentDeleteIncomingByChannel provides a mock function with given fields: channelId
func (*WebhookStore) PermanentDeleteIncomingByUser ¶
func (_m *WebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
PermanentDeleteIncomingByUser provides a mock function with given fields: userId
func (*WebhookStore) PermanentDeleteOutgoingByChannel ¶
func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
PermanentDeleteOutgoingByChannel provides a mock function with given fields: channelId
func (*WebhookStore) PermanentDeleteOutgoingByUser ¶
func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
PermanentDeleteOutgoingByUser provides a mock function with given fields: userId
func (*WebhookStore) SaveIncoming ¶
func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
SaveIncoming provides a mock function with given fields: webhook
func (*WebhookStore) SaveOutgoing ¶
func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
SaveOutgoing provides a mock function with given fields: webhook
func (*WebhookStore) UpdateIncoming ¶
func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
UpdateIncoming provides a mock function with given fields: webhook
func (*WebhookStore) UpdateOutgoing ¶
func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
UpdateOutgoing provides a mock function with given fields: hook
Source Files ¶
- AuditStore.go
- BotStore.go
- Cache.go
- CacheProvider.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
- ReactionStore.go
- RoleStore.go
- SchemeStore.go
- SessionStore.go
- SqlStore.go
- SqlSupplier.go
- StatusStore.go
- Store.go
- SystemStore.go
- TeamStore.go
- TermsOfServiceStore.go
- TokenStore.go
- UserAccessTokenStore.go
- UserStore.go
- UserTermsOfServiceStore.go
- WebhookStore.go