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