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