Versions in this module Expand all Collapse all v5 v5.31.1 Dec 23, 2020 Changes in this version + type AuditStore struct + func (_m *AuditStore) Get(user_id string, offset int, limit int) (model.Audits, error) + func (_m *AuditStore) PermanentDeleteByUser(userId string) error + func (_m *AuditStore) Save(audit *model.Audit) error + type BotStore struct + func (_m *BotStore) Get(userId string, includeDeleted bool) (*model.Bot, error) + func (_m *BotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error) + func (_m *BotStore) PermanentDelete(userId string) error + func (_m *BotStore) Save(bot *model.Bot) (*model.Bot, error) + func (_m *BotStore) Update(bot *model.Bot) (*model.Bot, error) + type ChannelMemberHistoryStore struct + func (_m *ChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error) + func (_m *ChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) error + func (_m *ChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) error + func (_m *ChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) + type ChannelStore struct + func (_m *ChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, error) + func (_m *ChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, error) + func (_m *ChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, error) + func (_m *ChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, error) + func (_m *ChannelStore) ClearAllCustomRoleAssignments() error + func (_m *ChannelStore) ClearCaches() + func (_m *ChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) error + func (_m *ChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, error) + func (_m *ChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error) + func (_m *ChannelStore) CreateInitialSidebarCategories(userId string, teamId string) error + func (_m *ChannelStore) CreateSidebarCategory(userId string, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error) + func (_m *ChannelStore) Delete(channelId string, time int64) error + func (_m *ChannelStore) DeleteSidebarCategory(categoryId string) error + func (_m *ChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error + func (_m *ChannelStore) Get(id string, allowFromCache bool) (*model.Channel, error) + func (_m *ChannelStore) GetAll(teamId string) ([]*model.Channel, error) + func (_m *ChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, error) + func (_m *ChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, error) + func (_m *ChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, error) + func (_m *ChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error) + func (_m *ChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, error) + func (_m *ChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, error) + func (_m *ChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error) + func (_m *ChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error) + func (_m *ChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error) + func (_m *ChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, error) + func (_m *ChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, error) + func (_m *ChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, error) + func (_m *ChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, error) + func (_m *ChannelStore) GetChannels(teamId string, userId string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, error) + func (_m *ChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, error) + func (_m *ChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, error) + func (_m *ChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, error) + func (_m *ChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error) + func (_m *ChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, error) + func (_m *ChannelStore) GetForPost(postId string) (*model.Channel, error) + func (_m *ChannelStore) GetFromMaster(id string) (*model.Channel, error) + func (_m *ChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, error) + func (_m *ChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, error) + func (_m *ChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, error) + func (_m *ChannelStore) GetMemberCountFromCache(channelId string) int64 + func (_m *ChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error) + func (_m *ChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, error) + func (_m *ChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, error) + func (_m *ChannelStore) GetMembersByChannelIds(channelIds []string, userId string) (*model.ChannelMembers, error) + func (_m *ChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, error) + func (_m *ChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, error) + func (_m *ChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, error) + func (_m *ChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error) + func (_m *ChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, error) + func (_m *ChannelStore) GetPinnedPosts(channelId string) (*model.PostList, error) + func (_m *ChannelStore) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, error) + func (_m *ChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, error) + func (_m *ChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, error) + func (_m *ChannelStore) GetSidebarCategories(userId string, teamId string) (*model.OrderedSidebarCategories, error) + func (_m *ChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, error) + func (_m *ChannelStore) GetSidebarCategoryOrder(userId string, teamId string) ([]string, error) + func (_m *ChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, error) + func (_m *ChannelStore) GroupSyncedChannelCount() (int64, error) + func (_m *ChannelStore) IncrementMentionCount(channelId string, userId string, updateThreads bool) error + func (_m *ChannelStore) InvalidateAllChannelMembersForUser(userId string) + func (_m *ChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string) + func (_m *ChannelStore) InvalidateChannel(id string) + func (_m *ChannelStore) InvalidateChannelByName(teamId string, name string) + func (_m *ChannelStore) InvalidateGuestCount(channelId string) + func (_m *ChannelStore) InvalidateMemberCount(channelId string) + func (_m *ChannelStore) InvalidatePinnedPostCount(channelId string) + func (_m *ChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool + func (_m *ChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, error) + func (_m *ChannelStore) MigratePublicChannels() error + func (_m *ChannelStore) PermanentDelete(channelId string) error + func (_m *ChannelStore) PermanentDeleteByTeam(teamId string) error + func (_m *ChannelStore) PermanentDeleteMembersByChannel(channelId string) error + func (_m *ChannelStore) PermanentDeleteMembersByUser(userId string) error + func (_m *ChannelStore) RemoveAllDeactivatedMembers(channelId string) error + func (_m *ChannelStore) RemoveMember(channelId string, userId string) error + func (_m *ChannelStore) RemoveMembers(channelId string, userIds []string) error + func (_m *ChannelStore) ResetAllChannelSchemes() error + func (_m *ChannelStore) Restore(channelId string, time int64) error + func (_m *ChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error) + func (_m *ChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, error) + func (_m *ChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, error) + func (_m *ChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error) + func (_m *ChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, error) + func (_m *ChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, error) + func (_m *ChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, error) + func (_m *ChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, error) + func (_m *ChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, error) + func (_m *ChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, error) + func (_m *ChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) error + func (_m *ChannelStore) Update(channel *model.Channel) (*model.Channel, error) + func (_m *ChannelStore) UpdateLastViewedAt(channelIds []string, userId string, updateThreads bool) (map[string]int64, error) + func (_m *ChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, updateThreads bool) (*model.ChannelUnreadAt, error) + func (_m *ChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error) + func (_m *ChannelStore) UpdateMembersRole(channelID string, userIDs []string) error + func (_m *ChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error) + func (_m *ChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, ...) + func (_m *ChannelStore) UpdateSidebarCategoryOrder(userId string, teamId string, categoryOrder []string) error + func (_m *ChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamId string) error + func (_m *ChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error + func (_m *ChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, error) + type ClusterDiscoveryStore struct + func (_m *ClusterDiscoveryStore) Cleanup() error + func (_m *ClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error) + func (_m *ClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error) + func (_m *ClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error) + func (_m *ClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error + func (_m *ClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error + type CommandStore struct + func (_m *CommandStore) AnalyticsCommandCount(teamId string) (int64, error) + func (_m *CommandStore) Delete(commandId string, time int64) error + func (_m *CommandStore) Get(id string) (*model.Command, error) + func (_m *CommandStore) GetByTeam(teamId string) ([]*model.Command, error) + func (_m *CommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, error) + func (_m *CommandStore) PermanentDeleteByTeam(teamId string) error + func (_m *CommandStore) PermanentDeleteByUser(userId string) error + func (_m *CommandStore) Save(webhook *model.Command) (*model.Command, error) + func (_m *CommandStore) Update(hook *model.Command) (*model.Command, error) + type CommandWebhookStore struct + func (_m *CommandWebhookStore) Cleanup() + func (_m *CommandWebhookStore) Get(id string) (*model.CommandWebhook, error) + func (_m *CommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, error) + func (_m *CommandWebhookStore) TryUse(id string, limit int) error + type ComplianceStore struct + func (_m *ComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, error) + func (_m *ComplianceStore) Get(id string) (*model.Compliance, error) + func (_m *ComplianceStore) GetAll(offset int, limit int) (model.Compliances, error) + func (_m *ComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, error) + func (_m *ComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error) + func (_m *ComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error) + type EmojiStore struct + func (_m *EmojiStore) Delete(emoji *model.Emoji, time int64) error + func (_m *EmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, error) + func (_m *EmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, error) + func (_m *EmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, error) + func (_m *EmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error) + func (_m *EmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error) + func (_m *EmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error) + type FileInfoStore struct + func (_m *FileInfoStore) AttachToPost(fileId string, postId string, creatorId string) error + func (_m *FileInfoStore) ClearCaches() + func (_m *FileInfoStore) DeleteForPost(postId string) (string, error) + func (_m *FileInfoStore) Get(id string) (*model.FileInfo, error) + func (_m *FileInfoStore) GetByPath(path string) (*model.FileInfo, error) + func (_m *FileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, error) + func (_m *FileInfoStore) GetForUser(userId string) ([]*model.FileInfo, error) + func (_m *FileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error) + func (_m *FileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool) + func (_m *FileInfoStore) PermanentDelete(fileId string) error + func (_m *FileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) + func (_m *FileInfoStore) PermanentDeleteByUser(userId string) (int64, error) + func (_m *FileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, error) + func (_m *FileInfoStore) SetContent(fileId string, content string) error + func (_m *FileInfoStore) Upsert(info *model.FileInfo) (*model.FileInfo, error) + type GroupStore struct + func (_m *GroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error) + func (_m *GroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) + func (_m *GroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, error) + func (_m *GroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error) + func (_m *GroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error) + func (_m *GroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, error) + func (_m *GroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, error) + func (_m *GroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error) + func (_m *GroupStore) Create(group *model.Group) (*model.Group, error) + func (_m *GroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) + func (_m *GroupStore) Delete(groupID string) (*model.Group, error) + func (_m *GroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) + func (_m *GroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error) + func (_m *GroupStore) DistinctGroupMemberCount() (int64, error) + func (_m *GroupStore) Get(groupID string) (*model.Group, error) + func (_m *GroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error) + func (_m *GroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error) + func (_m *GroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error) + func (_m *GroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error) + func (_m *GroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error) + func (_m *GroupStore) GetByUser(userId string) ([]*model.Group, error) + func (_m *GroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error) + func (_m *GroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error) + func (_m *GroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error) + func (_m *GroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) + func (_m *GroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error) + func (_m *GroupStore) GetMemberCount(groupID string) (int64, error) + func (_m *GroupStore) GetMemberUsers(groupID string) ([]*model.User, error) + func (_m *GroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, error) + func (_m *GroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error) + func (_m *GroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, error) + func (_m *GroupStore) GroupChannelCount() (int64, error) + func (_m *GroupStore) GroupCount() (int64, error) + func (_m *GroupStore) GroupCountWithAllowReference() (int64, error) + func (_m *GroupStore) GroupMemberCount() (int64, error) + func (_m *GroupStore) GroupTeamCount() (int64, error) + func (_m *GroupStore) PermanentDeleteMembersByUser(userId string) error + func (_m *GroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error) + func (_m *GroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error) + func (_m *GroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, error) + func (_m *GroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error) + func (_m *GroupStore) Update(group *model.Group) (*model.Group, error) + func (_m *GroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error) + func (_m *GroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error) + type JSONSerializable struct + func (_m *JSONSerializable) ToJson() string + type JobStore struct + func (_m *JobStore) Delete(id string) (string, error) + func (_m *JobStore) Get(id string) (*model.Job, error) + func (_m *JobStore) GetAllByStatus(status string) ([]*model.Job, error) + func (_m *JobStore) GetAllByType(jobType string) ([]*model.Job, error) + func (_m *JobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, error) + func (_m *JobStore) GetAllPage(offset int, limit int) ([]*model.Job, error) + func (_m *JobStore) GetCountByStatusAndType(status string, jobType string) (int64, error) + func (_m *JobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, error) + func (_m *JobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error) + func (_m *JobStore) Save(job *model.Job) (*model.Job, error) + func (_m *JobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, error) + func (_m *JobStore) UpdateStatus(id string, status string) (*model.Job, error) + func (_m *JobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error) + type LicenseStore struct + func (_m *LicenseStore) Get(id string) (*model.LicenseRecord, error) + func (_m *LicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error) + type LinkMetadataStore struct + func (_m *LinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error) + func (_m *LinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error) + type OAuthStore struct + func (_m *OAuthStore) DeleteApp(id string) error + func (_m *OAuthStore) GetAccessData(token string) (*model.AccessData, error) + func (_m *OAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error) + func (_m *OAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, error) + func (_m *OAuthStore) GetApp(id string) (*model.OAuthApp, error) + func (_m *OAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, error) + func (_m *OAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, error) + func (_m *OAuthStore) GetAuthData(code string) (*model.AuthData, error) + func (_m *OAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, error) + func (_m *OAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, error) + func (_m *OAuthStore) PermanentDeleteAuthDataByUser(userId string) error + func (_m *OAuthStore) RemoveAccessData(token string) error + func (_m *OAuthStore) RemoveAllAccessData() error + func (_m *OAuthStore) RemoveAuthData(code string) error + func (_m *OAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error) + func (_m *OAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error) + func (_m *OAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, error) + func (_m *OAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error) + func (_m *OAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error) + type ObjectCache struct + 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 struct + func (_m *PluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error) + func (_m *PluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error) + func (_m *PluginStore) Delete(pluginId string, key string) error + func (_m *PluginStore) DeleteAllExpired() error + func (_m *PluginStore) DeleteAllForPlugin(PluginId string) error + func (_m *PluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, error) + func (_m *PluginStore) List(pluginId string, page int, perPage int) ([]string, error) + func (_m *PluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error) + func (_m *PluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, error) + type PostStore struct + func (_m *PostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, error) + func (_m *PostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error) + func (_m *PostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, error) + func (_m *PostStore) ClearCaches() + func (_m *PostStore) Delete(postId string, time int64, deleteByID string) error + func (_m *PostStore) Get(id string, skipFetchThreads bool) (*model.PostList, error) + func (_m *PostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, error) + func (_m *PostStore) GetEtag(channelId string, allowFromCache bool) string + func (_m *PostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, error) + func (_m *PostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, error) + func (_m *PostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, error) + func (_m *PostStore) GetMaxPostSize() int + func (_m *PostStore) GetOldest() (*model.Post, error) + func (_m *PostStore) GetOldestEntityCreationTime() (int64, error) + func (_m *PostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, error) + func (_m *PostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, error) + func (_m *PostStore) GetPostIdAfterTime(channelId string, time int64) (string, error) + func (_m *PostStore) GetPostIdBeforeTime(channelId string, time int64) (string, error) + func (_m *PostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, error) + func (_m *PostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, error) + func (_m *PostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, error) + func (_m *PostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, error) + func (_m *PostStore) GetPostsByIds(postIds []string) ([]*model.Post, error) + func (_m *PostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, error) + func (_m *PostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, error) + func (_m *PostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, error) + func (_m *PostStore) GetSingle(id string) (*model.Post, error) + func (_m *PostStore) InvalidateLastPostTimeCache(channelId string) + func (_m *PostStore) Overwrite(post *model.Post) (*model.Post, error) + func (_m *PostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, error) + func (_m *PostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) + func (_m *PostStore) PermanentDeleteByChannel(channelId string) error + func (_m *PostStore) PermanentDeleteByUser(userId string) error + func (_m *PostStore) Save(post *model.Post) (*model.Post, error) + func (_m *PostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, error) + func (_m *PostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, error) + func (_m *PostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, page int, ...) (*model.PostSearchResults, error) + func (_m *PostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, error) + type PreferenceStore struct + func (_m *PreferenceStore) CleanupFlagsBatch(limit int64) (int64, error) + func (_m *PreferenceStore) Delete(userId string, category string, name string) error + func (_m *PreferenceStore) DeleteCategory(userId string, category string) error + func (_m *PreferenceStore) DeleteCategoryAndName(category string, name string) error + func (_m *PreferenceStore) Get(userId string, category string, name string) (*model.Preference, error) + func (_m *PreferenceStore) GetAll(userId string) (model.Preferences, error) + func (_m *PreferenceStore) GetCategory(userId string, category string) (model.Preferences, error) + func (_m *PreferenceStore) PermanentDeleteByUser(userId string) error + func (_m *PreferenceStore) Save(preferences *model.Preferences) error + type ProductNoticesStore struct + func (_m *ProductNoticesStore) Clear(notices []string) error + func (_m *ProductNoticesStore) ClearOldNotices(currentNotices *model.ProductNotices) error + func (_m *ProductNoticesStore) GetViews(userId string) ([]model.ProductNoticeViewState, error) + func (_m *ProductNoticesStore) View(userId string, notices []string) error + type ReactionStore struct + func (_m *ReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error) + func (_m *ReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, error) + func (_m *ReactionStore) DeleteAllWithEmojiName(emojiName string) error + func (_m *ReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, error) + func (_m *ReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) + func (_m *ReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error) + type RoleStore struct + func (_m *RoleStore) AllChannelSchemeRoles() ([]*model.Role, error) + func (_m *RoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error) + func (_m *RoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error) + func (_m *RoleStore) Delete(roleId string) (*model.Role, error) + func (_m *RoleStore) Get(roleId string) (*model.Role, error) + func (_m *RoleStore) GetAll() ([]*model.Role, error) + func (_m *RoleStore) GetByName(name string) (*model.Role, error) + func (_m *RoleStore) GetByNames(names []string) ([]*model.Role, error) + func (_m *RoleStore) PermanentDeleteAll() error + func (_m *RoleStore) Save(role *model.Role) (*model.Role, error) + type SchemeStore struct + func (_m *SchemeStore) CountByScope(scope string) (int64, error) + func (_m *SchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, ...) (int64, error) + func (_m *SchemeStore) Delete(schemeId string) (*model.Scheme, error) + func (_m *SchemeStore) Get(schemeId string) (*model.Scheme, error) + func (_m *SchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, error) + func (_m *SchemeStore) GetByName(schemeName string) (*model.Scheme, error) + func (_m *SchemeStore) PermanentDeleteAll() error + func (_m *SchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error) + type SessionStore struct + func (_m *SessionStore) AnalyticsSessionCount() (int64, error) + func (_m *SessionStore) Cleanup(expiryTime int64, batchSize int64) + func (_m *SessionStore) Get(sessionIdOrToken string) (*model.Session, error) + func (_m *SessionStore) GetSessions(userId string) ([]*model.Session, error) + func (_m *SessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error) + func (_m *SessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, error) + func (_m *SessionStore) PermanentDeleteSessionsByUser(teamId string) error + func (_m *SessionStore) Remove(sessionIdOrToken string) error + func (_m *SessionStore) RemoveAllSessions() error + func (_m *SessionStore) Save(session *model.Session) (*model.Session, error) + func (_m *SessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, error) + func (_m *SessionStore) UpdateExpiredNotify(sessionid string, notified bool) error + func (_m *SessionStore) UpdateExpiresAt(sessionId string, time int64) error + func (_m *SessionStore) UpdateLastActivityAt(sessionId string, time int64) error + func (_m *SessionStore) UpdateProps(session *model.Session) error + func (_m *SessionStore) UpdateRoles(userId string, roles string) (string, error) + type SqlStore struct + func (_m *SqlStore) DriverName() string + func (_m *SqlStore) GetMaster() *gorp.DbMap + type StatusStore struct + func (_m *StatusStore) Get(userId string) (*model.Status, error) + func (_m *StatusStore) GetByIds(userIds []string) ([]*model.Status, error) + func (_m *StatusStore) GetTotalActiveUsersCount() (int64, error) + func (_m *StatusStore) ResetAll() error + func (_m *StatusStore) SaveOrUpdate(status *model.Status) error + func (_m *StatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) error + type Store struct + func (_m *Store) Audit() store.AuditStore + func (_m *Store) Bot() store.BotStore + func (_m *Store) Channel() store.ChannelStore + func (_m *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore + func (_m *Store) CheckIntegrity() <-chan model.IntegrityCheckResult + func (_m *Store) Close() + func (_m *Store) ClusterDiscovery() store.ClusterDiscoveryStore + func (_m *Store) Command() store.CommandStore + func (_m *Store) CommandWebhook() store.CommandWebhookStore + func (_m *Store) Compliance() store.ComplianceStore + func (_m *Store) Context() context.Context + func (_m *Store) DropAllTables() + func (_m *Store) Emoji() store.EmojiStore + func (_m *Store) FileInfo() store.FileInfoStore + func (_m *Store) GetCurrentSchemaVersion() string + func (_m *Store) GetDbVersion() (string, error) + func (_m *Store) Group() store.GroupStore + func (_m *Store) Job() store.JobStore + func (_m *Store) License() store.LicenseStore + func (_m *Store) LinkMetadata() store.LinkMetadataStore + func (_m *Store) LockToMaster() + func (_m *Store) MarkSystemRanUnitTests() + func (_m *Store) OAuth() store.OAuthStore + func (_m *Store) Plugin() store.PluginStore + func (_m *Store) Post() store.PostStore + func (_m *Store) Preference() store.PreferenceStore + func (_m *Store) ProductNotices() store.ProductNoticesStore + func (_m *Store) Reaction() store.ReactionStore + func (_m *Store) RecycleDBConnections(d time.Duration) + func (_m *Store) Role() store.RoleStore + func (_m *Store) Scheme() store.SchemeStore + func (_m *Store) Session() store.SessionStore + func (_m *Store) SetContext(_a0 context.Context) + func (_m *Store) Status() store.StatusStore + func (_m *Store) System() store.SystemStore + func (_m *Store) Team() store.TeamStore + func (_m *Store) TermsOfService() store.TermsOfServiceStore + func (_m *Store) Thread() store.ThreadStore + func (_m *Store) Token() store.TokenStore + func (_m *Store) TotalMasterDbConnections() int + func (_m *Store) TotalReadDbConnections() int + func (_m *Store) TotalSearchDbConnections() int + func (_m *Store) UnlockFromMaster() + func (_m *Store) UploadSession() store.UploadSessionStore + func (_m *Store) User() store.UserStore + func (_m *Store) UserAccessToken() store.UserAccessTokenStore + func (_m *Store) UserTermsOfService() store.UserTermsOfServiceStore + func (_m *Store) Webhook() store.WebhookStore + type SystemStore struct + func (_m *SystemStore) Get() (model.StringMap, error) + func (_m *SystemStore) GetByName(name string) (*model.System, error) + func (_m *SystemStore) InsertIfExists(system *model.System) (*model.System, error) + func (_m *SystemStore) PermanentDeleteByName(name string) (*model.System, error) + func (_m *SystemStore) Save(system *model.System) error + func (_m *SystemStore) SaveOrUpdate(system *model.System) error + func (_m *SystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error + func (_m *SystemStore) Update(system *model.System) error + type TeamStore struct + func (_m *TeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, error) + func (_m *TeamStore) AnalyticsPrivateTeamCount() (int64, error) + func (_m *TeamStore) AnalyticsPublicTeamCount() (int64, error) + func (_m *TeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, error) + func (_m *TeamStore) ClearAllCustomRoleAssignments() error + func (_m *TeamStore) ClearCaches() + func (_m *TeamStore) Get(id string) (*model.Team, error) + func (_m *TeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, error) + func (_m *TeamStore) GetAll() ([]*model.Team, error) + func (_m *TeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, error) + func (_m *TeamStore) GetAllPage(offset int, limit int) ([]*model.Team, error) + func (_m *TeamStore) GetAllPrivateTeamListing() ([]*model.Team, error) + func (_m *TeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, error) + func (_m *TeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, error) + func (_m *TeamStore) GetAllTeamListing() ([]*model.Team, error) + func (_m *TeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, error) + func (_m *TeamStore) GetByInviteId(inviteId string) (*model.Team, error) + func (_m *TeamStore) GetByName(name string) (*model.Team, error) + func (_m *TeamStore) GetByNames(name []string) ([]*model.Team, error) + func (_m *TeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, error) + func (_m *TeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, error) + func (_m *TeamStore) GetMember(teamId string, userId string) (*model.TeamMember, error) + func (_m *TeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, error) + func (_m *TeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error) + func (_m *TeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, error) + func (_m *TeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, error) + func (_m *TeamStore) GetTeamsByUserId(userId string) ([]*model.Team, error) + func (_m *TeamStore) GetTeamsForUser(ctx context.Context, userId string) ([]*model.TeamMember, error) + func (_m *TeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, error) + func (_m *TeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, error) + func (_m *TeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, error) + func (_m *TeamStore) GroupSyncedTeamCount() (int64, error) + func (_m *TeamStore) InvalidateAllTeamIdsForUser(userId string) + func (_m *TeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, error) + func (_m *TeamStore) PermanentDelete(teamId string) error + func (_m *TeamStore) RemoveAllMembersByTeam(teamId string) error + func (_m *TeamStore) RemoveAllMembersByUser(userId string) error + func (_m *TeamStore) RemoveMember(teamId string, userId string) error + func (_m *TeamStore) RemoveMembers(teamId string, userIds []string) error + func (_m *TeamStore) ResetAllTeamSchemes() error + func (_m *TeamStore) Save(team *model.Team) (*model.Team, error) + func (_m *TeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error) + func (_m *TeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error) + func (_m *TeamStore) SearchAll(term string, opts *model.TeamSearch) ([]*model.Team, error) + func (_m *TeamStore) SearchAllPaged(term string, opts *model.TeamSearch) ([]*model.Team, int64, error) + func (_m *TeamStore) SearchOpen(term string) ([]*model.Team, error) + func (_m *TeamStore) SearchPrivate(term string) ([]*model.Team, error) + func (_m *TeamStore) Update(team *model.Team) (*model.Team, error) + func (_m *TeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) error + func (_m *TeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, error) + func (_m *TeamStore) UpdateMembersRole(teamID string, userIDs []string) error + func (_m *TeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error) + func (_m *TeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, error) + type TermsOfServiceStore struct + func (_m *TermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error) + func (_m *TermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error) + func (_m *TermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error) + type ThreadStore struct + func (_m *ThreadStore) CollectThreadsWithNewerReplies(userId string, channelIds []string, timestamp int64) ([]string, error) + func (_m *ThreadStore) CreateMembershipIfNeeded(userId string, postId string, following bool, incrementMentions bool, ...) error + func (_m *ThreadStore) Delete(postId string) error + func (_m *ThreadStore) DeleteMembershipForUser(userId string, postId string) error + func (_m *ThreadStore) Get(id string) (*model.Thread, error) + func (_m *ThreadStore) GetMembershipForUser(userId string, postId string) (*model.ThreadMembership, error) + func (_m *ThreadStore) GetMembershipsForUser(userId string, teamId string) ([]*model.ThreadMembership, error) + func (_m *ThreadStore) GetPosts(threadId string, since int64) ([]*model.Post, error) + func (_m *ThreadStore) GetThreadsForUser(userId string, teamId string, opts model.GetUserThreadsOpts) (*model.Threads, error) + func (_m *ThreadStore) MarkAllAsRead(userId string, teamId string) error + func (_m *ThreadStore) MarkAsRead(userId string, threadId string, timestamp int64) error + func (_m *ThreadStore) Save(thread *model.Thread) (*model.Thread, error) + func (_m *ThreadStore) SaveMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error) + func (_m *ThreadStore) SaveMultiple(thread []*model.Thread) ([]*model.Thread, int, error) + func (_m *ThreadStore) Update(thread *model.Thread) (*model.Thread, error) + func (_m *ThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error) + func (_m *ThreadStore) UpdateUnreadsByChannel(userId string, changedThreads []string, timestamp int64, ...) error + type TokenStore struct + func (_m *TokenStore) Cleanup() + func (_m *TokenStore) Delete(token string) error + func (_m *TokenStore) GetByToken(token string) (*model.Token, error) + func (_m *TokenStore) RemoveAllTokensByType(tokenType string) error + func (_m *TokenStore) Save(recovery *model.Token) error + type UploadSessionStore struct + func (_m *UploadSessionStore) Delete(id string) error + func (_m *UploadSessionStore) Get(id string) (*model.UploadSession, error) + func (_m *UploadSessionStore) GetForUser(userId string) ([]*model.UploadSession, error) + func (_m *UploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error) + func (_m *UploadSessionStore) Update(session *model.UploadSession) error + type UserAccessTokenStore struct + func (_m *UserAccessTokenStore) Delete(tokenId string) error + func (_m *UserAccessTokenStore) DeleteAllForUser(userId string) error + func (_m *UserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error) + func (_m *UserAccessTokenStore) UpdateTokenDisable(tokenId string) error + func (_m *UserAccessTokenStore) UpdateTokenEnable(tokenId string) error + type UserStore struct + func (_m *UserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error) + func (_m *UserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error) + func (_m *UserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error) + func (_m *UserStore) AnalyticsGetGuestCount() (int64, error) + func (_m *UserStore) AnalyticsGetInactiveUsersCount() (int64, error) + func (_m *UserStore) AnalyticsGetSystemAdminCount() (int64, error) + func (_m *UserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error) + func (_m *UserStore) ClearAllCustomRoleAssignments() error + func (_m *UserStore) ClearCaches() + func (_m *UserStore) Count(options model.UserCountOptions) (int64, error) + func (_m *UserStore) DeactivateGuests() ([]string, error) + func (_m *UserStore) DemoteUserToGuest(userID string) error + func (_m *UserStore) Get(id string) (*model.User, error) + func (_m *UserStore) GetAll() ([]*model.User, error) + func (_m *UserStore) GetAllAfter(limit int, afterId string) ([]*model.User, error) + func (_m *UserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, error) + func (_m *UserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, error) + func (_m *UserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, error) + func (_m *UserStore) GetAllUsingAuthService(authService string) ([]*model.User, error) + func (_m *UserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, error) + func (_m *UserStore) GetByAuth(authData *string, authService string) (*model.User, error) + func (_m *UserStore) GetByEmail(email string) (*model.User, error) + func (_m *UserStore) GetByUsername(username string) (*model.User, error) + func (_m *UserStore) GetChannelGroupUsers(channelID string) ([]*model.User, error) + func (_m *UserStore) GetEtagForAllProfiles() string + func (_m *UserStore) GetEtagForProfiles(teamId string) string + func (_m *UserStore) GetEtagForProfilesNotInTeam(teamId string) string + func (_m *UserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, error) + func (_m *UserStore) GetKnownUsers(userID string) ([]string, error) + func (_m *UserStore) GetNewUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, error) + func (_m *UserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, error) + func (_m *UserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, error) + func (_m *UserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error) + func (_m *UserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error) + func (_m *UserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error) + func (_m *UserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error) + func (_m *UserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error) + func (_m *UserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error) + func (_m *UserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, error) + func (_m *UserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, error) + func (_m *UserStore) GetSystemAdminProfiles() (map[string]*model.User, error) + func (_m *UserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error) + func (_m *UserStore) GetUnreadCount(userId string) (int64, error) + func (_m *UserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, error) + func (_m *UserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, error) + func (_m *UserStore) InferSystemInstallDate() (int64, error) + func (_m *UserStore) InvalidateProfileCacheForUser(userId string) + func (_m *UserStore) InvalidateProfilesInChannelCache(channelId string) + func (_m *UserStore) InvalidateProfilesInChannelCacheByUser(userId string) + func (_m *UserStore) PermanentDelete(userId string) error + func (_m *UserStore) PromoteGuestToUser(userID string) error + func (_m *UserStore) ResetLastPictureUpdate(userId string) error + func (_m *UserStore) Save(user *model.User) (*model.User, error) + func (_m *UserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error) + func (_m *UserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, error) + func (_m *UserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, error) + func (_m *UserStore) UpdateFailedPasswordAttempts(userId string, attempts int) error + func (_m *UserStore) UpdateLastPictureUpdate(userId string) error + func (_m *UserStore) UpdateMfaActive(userId string, active bool) error + func (_m *UserStore) UpdateMfaSecret(userId string, secret string) error + func (_m *UserStore) UpdatePassword(userId string, newPassword string) error + func (_m *UserStore) UpdateUpdateAt(userId string) (int64, error) + func (_m *UserStore) VerifyEmail(userId string, email string) (string, error) + type UserTermsOfServiceStore struct + func (_m *UserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) error + func (_m *UserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, error) + func (_m *UserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error) + type WebhookStore struct + func (_m *WebhookStore) AnalyticsIncomingCount(teamId string) (int64, error) + func (_m *WebhookStore) AnalyticsOutgoingCount(teamId string) (int64, error) + func (_m *WebhookStore) ClearCaches() + func (_m *WebhookStore) DeleteIncoming(webhookId string, time int64) error + func (_m *WebhookStore) DeleteOutgoing(webhookId string, time int64) error + func (_m *WebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error) + func (_m *WebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, error) + func (_m *WebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, error) + func (_m *WebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, error) + func (_m *WebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error) + func (_m *WebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, error) + func (_m *WebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, error) + func (_m *WebhookStore) InvalidateWebhookCache(webhook string) + func (_m *WebhookStore) PermanentDeleteIncomingByChannel(channelId string) error + func (_m *WebhookStore) PermanentDeleteIncomingByUser(userId string) error + func (_m *WebhookStore) PermanentDeleteOutgoingByChannel(channelId string) error + func (_m *WebhookStore) PermanentDeleteOutgoingByUser(userId string) error + func (_m *WebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error) + func (_m *WebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error) + func (_m *WebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error) + func (_m *WebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error) Other modules containing this package github.com/adacta-ru/mattermost-server github.com/adacta-ru/mattermost-server/v6