Documentation ¶
Index ¶
- Constants
- func WithDeadlockRetry(f func() error) error
- type AuditStore
- type BotStore
- type ChannelMemberHistoryStore
- type ChannelSearchOpts
- type ChannelStore
- type ClusterDiscoveryStore
- type CommandStore
- type CommandWebhookStore
- type ComplianceStore
- type EmojiStore
- type ErrConflict
- type ErrInvalidInput
- type ErrLimitExceeded
- type ErrNotFound
- type ErrOutOfBounds
- type FileInfoStore
- type GroupStore
- type IntegrityCheckResult
- type JobStore
- type LicenseStore
- type LinkMetadataStore
- type OAuthStore
- type OpenTracingLayer
- func (s *OpenTracingLayer) Audit() AuditStore
- func (s *OpenTracingLayer) Bot() BotStore
- func (s *OpenTracingLayer) Channel() ChannelStore
- func (s *OpenTracingLayer) ChannelMemberHistory() ChannelMemberHistoryStore
- func (s *OpenTracingLayer) Close()
- func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore
- func (s *OpenTracingLayer) Command() CommandStore
- func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore
- func (s *OpenTracingLayer) Compliance() ComplianceStore
- func (s *OpenTracingLayer) DropAllTables()
- func (s *OpenTracingLayer) Emoji() EmojiStore
- func (s *OpenTracingLayer) FileInfo() FileInfoStore
- func (s *OpenTracingLayer) GetCurrentSchemaVersion() string
- func (s *OpenTracingLayer) Group() GroupStore
- func (s *OpenTracingLayer) Job() JobStore
- func (s *OpenTracingLayer) License() LicenseStore
- func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore
- func (s *OpenTracingLayer) LockToMaster()
- func (s *OpenTracingLayer) MarkSystemRanUnitTests()
- func (s *OpenTracingLayer) OAuth() OAuthStore
- func (s *OpenTracingLayer) Plugin() PluginStore
- func (s *OpenTracingLayer) Post() PostStore
- func (s *OpenTracingLayer) Preference() PreferenceStore
- func (s *OpenTracingLayer) Reaction() ReactionStore
- func (s *OpenTracingLayer) Role() RoleStore
- func (s *OpenTracingLayer) Scheme() SchemeStore
- func (s *OpenTracingLayer) Session() SessionStore
- func (s *OpenTracingLayer) SetContext(context context.Context)
- func (s *OpenTracingLayer) Status() StatusStore
- func (s *OpenTracingLayer) System() SystemStore
- func (s *OpenTracingLayer) Team() TeamStore
- func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore
- func (s *OpenTracingLayer) Token() TokenStore
- func (s *OpenTracingLayer) TotalMasterDbConnections() int
- func (s *OpenTracingLayer) TotalReadDbConnections() int
- func (s *OpenTracingLayer) TotalSearchDbConnections() int
- func (s *OpenTracingLayer) UnlockFromMaster()
- func (s *OpenTracingLayer) User() UserStore
- func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore
- func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore
- func (s *OpenTracingLayer) Webhook() 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerChannelStore) ClearCaches()
- func (s *OpenTracingLayerChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) *model.AppError
- func (s *OpenTracingLayerChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) Delete(channelId string, time int64) error
- func (s *OpenTracingLayerChannelStore) DeleteSidebarCategory(categoryId string) *model.AppError
- 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
- func (s *OpenTracingLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, error)
- func (s *OpenTracingLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error)
- func (s *OpenTracingLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
- func (s *OpenTracingLayerChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMemberCountFromCache(channelId string) int64
- func (s *OpenTracingLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error)
- func (s *OpenTracingLayerChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetSidebarCategories(userId string, teamId string) (*model.OrderedSidebarCategories, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetSidebarCategoryOrder(userId string, teamId string) ([]string, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
- 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, *model.AppError)
- 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) *model.AppError
- func (s *OpenTracingLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (s *OpenTracingLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
- func (s *OpenTracingLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
- func (s *OpenTracingLayerChannelStore) ResetAllChannelSchemes() *model.AppError
- 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, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *OpenTracingLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
- 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) (map[string]int64, *model.AppError)
- func (s *OpenTracingLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
- func (s *OpenTracingLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
- func (s *OpenTracingLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)
- func (s *OpenTracingLayerChannelStore) UpdateSidebarCategoryOrder(userId string, teamId string, categoryOrder []string) *model.AppError
- func (s *OpenTracingLayerChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamId string) *model.AppError
- func (s *OpenTracingLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
- func (s *OpenTracingLayerChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (s *OpenTracingLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type OpenTracingLayerComplianceStore
- func (s *OpenTracingLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- 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) *model.AppError
- func (s *OpenTracingLayerFileInfoStore) ClearCaches()
- func (s *OpenTracingLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
- func (s *OpenTracingLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s *OpenTracingLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type OpenTracingLayerGroupStore
- func (s *OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (s *OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *OpenTracingLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
- func (s *OpenTracingLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
- func (s *OpenTracingLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) Create(group *model.Group) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *OpenTracingLayerGroupStore) Delete(groupID string) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *OpenTracingLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- func (s *OpenTracingLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) Get(groupID string) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GroupChannelCount() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GroupCount() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GroupMemberCount() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) GroupTeamCount() (int64, *model.AppError)
- func (s *OpenTracingLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *OpenTracingLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (s *OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *OpenTracingLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
- func (s *OpenTracingLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerGroupStore) Update(group *model.Group) (*model.Group, *model.AppError)
- func (s *OpenTracingLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *OpenTracingLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- type OpenTracingLayerJobStore
- func (s *OpenTracingLayerJobStore) Delete(id string) (string, *model.AppError)
- func (s *OpenTracingLayerJobStore) Get(id string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (s *OpenTracingLayerPluginStore) Delete(pluginId string, key string) *model.AppError
- func (s *OpenTracingLayerPluginStore) DeleteAllExpired() *model.AppError
- func (s *OpenTracingLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
- func (s *OpenTracingLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
- func (s *OpenTracingLayerPluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)
- func (s *OpenTracingLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
- func (s *OpenTracingLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
- type OpenTracingLayerPostStore
- func (s *OpenTracingLayerPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
- func (s *OpenTracingLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
- func (s *OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (s *OpenTracingLayerPostStore) ClearCaches()
- func (s *OpenTracingLayerPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError
- func (s *OpenTracingLayerPostStore) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
- func (s *OpenTracingLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetMaxPostSize() int
- func (s *OpenTracingLayerPostStore) GetOldest() (*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetOldestEntityCreationTime() (int64, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
- func (s *OpenTracingLayerPostStore) GetSingle(id string) (*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) InvalidateLastPostTimeCache(channelId string)
- func (s *OpenTracingLayerPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
- func (s *OpenTracingLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
- func (s *OpenTracingLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *OpenTracingLayerPostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (s *OpenTracingLayerPostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
- func (s *OpenTracingLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
- func (s *OpenTracingLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, ...) (*model.PostSearchResults, *model.AppError)
- func (s *OpenTracingLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
- type OpenTracingLayerPreferenceStore
- func (s *OpenTracingLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- 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, *model.AppError)
- func (s *OpenTracingLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
- func (s *OpenTracingLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) PermanentDeleteAll() *model.AppError
- func (s *OpenTracingLayerRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s *OpenTracingLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s *OpenTracingLayerStatusStore) ResetAll() *model.AppError
- func (s *OpenTracingLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s *OpenTracingLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- type OpenTracingLayerSystemStore
- func (s *OpenTracingLayerSystemStore) Get() (model.StringMap, *model.AppError)
- func (s *OpenTracingLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s *OpenTracingLayerSystemStore) InsertIfExists(system *model.System) (*model.System, *model.AppError)
- func (s *OpenTracingLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s *OpenTracingLayerSystemStore) Save(system *model.System) *model.AppError
- func (s *OpenTracingLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s *OpenTracingLayerSystemStore) Update(system *model.System) *model.AppError
- type OpenTracingLayerTeamStore
- func (s *OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerTeamStore) ClearCaches()
- func (s *OpenTracingLayerTeamStore) Get(id string) (*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetByName(name string) (*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetByNames(name []string) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (s *OpenTracingLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
- func (s *OpenTracingLayerTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *OpenTracingLayerTeamStore) PermanentDelete(teamId string) *model.AppError
- func (s *OpenTracingLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
- func (s *OpenTracingLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s *OpenTracingLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
- func (s *OpenTracingLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError
- func (s *OpenTracingLayerTeamStore) ResetAllTeamSchemes() *model.AppError
- func (s *OpenTracingLayerTeamStore) Save(team *model.Team) (*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) Update(team *model.Team) (*model.Team, *model.AppError)
- func (s *OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
- func (s *OpenTracingLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError
- func (s *OpenTracingLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)
- func (s *OpenTracingLayerTeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
- 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 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 OpenTracingLayerUserAccessTokenStore
- func (s *OpenTracingLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type OpenTracingLayerUserStore
- func (s *OpenTracingLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
- func (s *OpenTracingLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerUserStore) ClearCaches()
- func (s *OpenTracingLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) DeactivateGuests() ([]string, *model.AppError)
- func (s *OpenTracingLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
- func (s *OpenTracingLayerUserStore) Get(id string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAll() ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (s *OpenTracingLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)
- func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
- func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
- func (s *OpenTracingLayerUserStore) PermanentDelete(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
- func (s *OpenTracingLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (s *OpenTracingLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (s *OpenTracingLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- 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, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) ClearCaches()
- func (s *OpenTracingLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s *OpenTracingLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s *OpenTracingLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type OrphanedRecord
- type PluginStore
- type PostStore
- type PreferenceStore
- type ReactionStore
- type RelationalIntegrityCheckData
- type RoleStore
- type SchemeStore
- type SessionStore
- type StatusStore
- type Store
- type StoreResult
- type SystemStore
- type TeamStore
- type TermsOfServiceStore
- type TimerLayer
- func (s *TimerLayer) Audit() AuditStore
- func (s *TimerLayer) Bot() BotStore
- func (s *TimerLayer) Channel() ChannelStore
- func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore
- func (s *TimerLayer) Close()
- func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
- func (s *TimerLayer) Command() CommandStore
- func (s *TimerLayer) CommandWebhook() CommandWebhookStore
- func (s *TimerLayer) Compliance() ComplianceStore
- func (s *TimerLayer) DropAllTables()
- func (s *TimerLayer) Emoji() EmojiStore
- func (s *TimerLayer) FileInfo() FileInfoStore
- func (s *TimerLayer) GetCurrentSchemaVersion() string
- func (s *TimerLayer) Group() GroupStore
- func (s *TimerLayer) Job() JobStore
- func (s *TimerLayer) License() LicenseStore
- func (s *TimerLayer) LinkMetadata() LinkMetadataStore
- func (s *TimerLayer) LockToMaster()
- func (s *TimerLayer) MarkSystemRanUnitTests()
- func (s *TimerLayer) OAuth() OAuthStore
- func (s *TimerLayer) Plugin() PluginStore
- func (s *TimerLayer) Post() PostStore
- func (s *TimerLayer) Preference() PreferenceStore
- func (s *TimerLayer) Reaction() ReactionStore
- func (s *TimerLayer) Role() RoleStore
- func (s *TimerLayer) Scheme() SchemeStore
- func (s *TimerLayer) Session() SessionStore
- func (s *TimerLayer) SetContext(context context.Context)
- func (s *TimerLayer) Status() StatusStore
- func (s *TimerLayer) System() SystemStore
- func (s *TimerLayer) Team() TeamStore
- func (s *TimerLayer) TermsOfService() TermsOfServiceStore
- func (s *TimerLayer) Token() TokenStore
- func (s *TimerLayer) TotalMasterDbConnections() int
- func (s *TimerLayer) TotalReadDbConnections() int
- func (s *TimerLayer) TotalSearchDbConnections() int
- func (s *TimerLayer) UnlockFromMaster()
- func (s *TimerLayer) User() UserStore
- func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
- func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
- func (s *TimerLayer) Webhook() WebhookStore
- type TimerLayerAuditStore
- type TimerLayerBotStore
- func (s *TimerLayerBotStore) Get(userId string, includeDeleted bool) (*model.Bot, error)
- func (s *TimerLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)
- func (s *TimerLayerBotStore) PermanentDelete(userId string) error
- func (s *TimerLayerBotStore) Save(bot *model.Bot) (*model.Bot, error)
- func (s *TimerLayerBotStore) Update(bot *model.Bot) (*model.Bot, error)
- type TimerLayerChannelMemberHistoryStore
- func (s *TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error)
- func (s *TimerLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) error
- func (s *TimerLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) error
- func (s *TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- type TimerLayerChannelStore
- func (s *TimerLayerChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerChannelStore) ClearCaches()
- func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) *model.AppError
- func (s *TimerLayerChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)
- func (s *TimerLayerChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error)
- func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, teamId string) error
- func (s *TimerLayerChannelStore) CreateSidebarCategory(userId string, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError)
- func (s *TimerLayerChannelStore) Delete(channelId string, time int64) error
- func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryId string) *model.AppError
- func (s *TimerLayerChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error
- func (s *TimerLayerChannelStore) Get(id string, allowFromCache bool) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetAll(teamId string) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
- func (s *TimerLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, error)
- func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error)
- func (s *TimerLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelId string) int64
- func (s *TimerLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)
- func (s *TimerLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetSidebarCategories(userId string, teamId string) (*model.OrderedSidebarCategories, *model.AppError)
- func (s *TimerLayerChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError)
- func (s *TimerLayerChannelStore) GetSidebarCategoryOrder(userId string, teamId string) ([]string, *model.AppError)
- func (s *TimerLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)
- func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
- func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)
- func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
- func (s *TimerLayerChannelStore) InvalidateChannel(id string)
- func (s *TimerLayerChannelStore) InvalidateChannelByName(teamId string, name string)
- func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)
- func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)
- func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)
- func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
- func (s *TimerLayerChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerChannelStore) MigratePublicChannels() error
- func (s *TimerLayerChannelStore) PermanentDelete(channelId string) error
- func (s *TimerLayerChannelStore) PermanentDeleteByTeam(teamId string) error
- func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
- func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (s *TimerLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
- func (s *TimerLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
- func (s *TimerLayerChannelStore) ResetAllChannelSchemes() *model.AppError
- func (s *TimerLayerChannelStore) Restore(channelId string, time int64) error
- func (s *TimerLayerChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)
- func (s *TimerLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, error)
- func (s *TimerLayerChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
- func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) error
- func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, error)
- func (s *TimerLayerChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
- func (s *TimerLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateSidebarCategoryOrder(userId string, teamId string, categoryOrder []string) *model.AppError
- func (s *TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamId string) *model.AppError
- func (s *TimerLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
- func (s *TimerLayerChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
- type TimerLayerClusterDiscoveryStore
- func (s *TimerLayerClusterDiscoveryStore) Cleanup() error
- func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error)
- func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error)
- func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error)
- func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error
- func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error
- type TimerLayerCommandStore
- func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, error)
- func (s *TimerLayerCommandStore) Delete(commandId string, time int64) error
- func (s *TimerLayerCommandStore) Get(id string) (*model.Command, error)
- func (s *TimerLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, error)
- func (s *TimerLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, error)
- func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) error
- func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) error
- func (s *TimerLayerCommandStore) Save(webhook *model.Command) (*model.Command, error)
- func (s *TimerLayerCommandStore) Update(hook *model.Command) (*model.Command, error)
- type TimerLayerCommandWebhookStore
- func (s *TimerLayerCommandWebhookStore) Cleanup()
- func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type TimerLayerComplianceStore
- func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type TimerLayerEmojiStore
- func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) error
- func (s *TimerLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, error)
- func (s *TimerLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, error)
- func (s *TimerLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, error)
- func (s *TimerLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error)
- func (s *TimerLayerEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, error)
- func (s *TimerLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error)
- type TimerLayerFileInfoStore
- func (s *TimerLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError
- func (s *TimerLayerFileInfoStore) ClearCaches()
- func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (s *TimerLayerFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
- func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type TimerLayerGroupStore
- func (s *TimerLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
- func (s *TimerLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
- func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) Create(group *model.Group) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) Delete(groupID string) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) Get(groupID string) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) GroupChannelCount() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GroupCount() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GroupMemberCount() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GroupTeamCount() (int64, *model.AppError)
- func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *TimerLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerGroupStore) Update(group *model.Group) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- type TimerLayerJobStore
- func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
- func (s *TimerLayerJobStore) Get(id string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (s *TimerLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type TimerLayerLicenseStore
- type TimerLayerLinkMetadataStore
- type TimerLayerOAuthStore
- func (s *TimerLayerOAuthStore) DeleteApp(id string) error
- func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, error)
- func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)
- func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, error)
- func (s *TimerLayerOAuthStore) GetApp(id string) (*model.OAuthApp, error)
- func (s *TimerLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, error)
- func (s *TimerLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, error)
- func (s *TimerLayerOAuthStore) GetAuthData(code string) (*model.AuthData, error)
- func (s *TimerLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, error)
- func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, error)
- func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) error
- func (s *TimerLayerOAuthStore) RemoveAccessData(token string) error
- func (s *TimerLayerOAuthStore) RemoveAllAccessData() error
- func (s *TimerLayerOAuthStore) RemoveAuthData(code string) error
- func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)
- func (s *TimerLayerOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error)
- func (s *TimerLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, error)
- func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error)
- func (s *TimerLayerOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error)
- type TimerLayerPluginStore
- func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (s *TimerLayerPluginStore) Delete(pluginId string, key string) *model.AppError
- func (s *TimerLayerPluginStore) DeleteAllExpired() *model.AppError
- func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
- func (s *TimerLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
- func (s *TimerLayerPluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)
- func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
- func (s *TimerLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
- type TimerLayerPostStore
- func (s *TimerLayerPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
- func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
- func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (s *TimerLayerPostStore) ClearCaches()
- func (s *TimerLayerPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError
- func (s *TimerLayerPostStore) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
- func (s *TimerLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetMaxPostSize() int
- func (s *TimerLayerPostStore) GetOldest() (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, *model.AppError)
- func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)
- func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)
- func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetSingle(id string) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)
- func (s *TimerLayerPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
- func (s *TimerLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
- func (s *TimerLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerPostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
- func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, ...) (*model.PostSearchResults, *model.AppError)
- func (s *TimerLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
- type TimerLayerPreferenceStore
- func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s *TimerLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type TimerLayerReactionStore
- func (s *TimerLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error)
- func (s *TimerLayerReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, error)
- func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) error
- func (s *TimerLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, error)
- func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (s *TimerLayerReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error)
- type TimerLayerRoleStore
- func (s *TimerLayerRoleStore) AllChannelSchemeRoles() ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
- func (s *TimerLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
- func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- type TimerLayerSchemeStore
- func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, error)
- func (s *TimerLayerSchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, ...) (int64, error)
- func (s *TimerLayerSchemeStore) Delete(schemeId string) (*model.Scheme, error)
- func (s *TimerLayerSchemeStore) Get(schemeId string) (*model.Scheme, error)
- func (s *TimerLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, error)
- func (s *TimerLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, error)
- func (s *TimerLayerSchemeStore) PermanentDeleteAll() error
- func (s *TimerLayerSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error)
- type TimerLayerSessionStore
- func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, error)
- func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, error)
- func (s *TimerLayerSessionStore) GetSessions(userId string) ([]*model.Session, error)
- func (s *TimerLayerSessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error)
- func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, error)
- func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) error
- func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) error
- func (s *TimerLayerSessionStore) RemoveAllSessions() error
- func (s *TimerLayerSessionStore) Save(session *model.Session) (*model.Session, error)
- func (s *TimerLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, error)
- func (s *TimerLayerSessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
- func (s *TimerLayerSessionStore) UpdateExpiresAt(sessionId string, time int64) error
- func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) error
- func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) error
- func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (string, error)
- type TimerLayerStatusStore
- func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerStatusStore) ResetAll() *model.AppError
- func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- type TimerLayerSystemStore
- func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
- func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) Update(system *model.System) *model.AppError
- type TimerLayerTeamStore
- func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerTeamStore) ClearCaches()
- func (s *TimerLayerTeamStore) Get(id string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetByName(name string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetByNames(name []string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
- func (s *TimerLayerTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerTeamStore) PermanentDelete(teamId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError
- func (s *TimerLayerTeamStore) ResetAllTeamSchemes() *model.AppError
- func (s *TimerLayerTeamStore) Save(team *model.Team) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)
- func (s *TimerLayerTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) Update(team *model.Team) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
- func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError
- func (s *TimerLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
- type TimerLayerTermsOfServiceStore
- func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error)
- func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error)
- func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error)
- type TimerLayerTokenStore
- func (s *TimerLayerTokenStore) Cleanup()
- func (s *TimerLayerTokenStore) Delete(token string) error
- func (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, error)
- func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) error
- func (s *TimerLayerTokenStore) Save(recovery *model.Token) error
- type TimerLayerUserAccessTokenStore
- func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type TimerLayerUserStore
- func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
- func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerUserStore) ClearCaches()
- func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) DeactivateGuests() ([]string, *model.AppError)
- func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
- func (s *TimerLayerUserStore) Get(id string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
- func (s *TimerLayerUserStore) GetEtagForProfiles(teamId string) string
- func (s *TimerLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string
- func (s *TimerLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)
- func (s *TimerLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
- func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
- func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
- func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (s *TimerLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- type TimerLayerUserTermsOfServiceStore
- func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) error
- func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, error)
- func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error)
- type TimerLayerWebhookStore
- func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) ClearCaches()
- func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type TokenStore
- type UserAccessTokenStore
- type UserGetByIdsOpts
- type UserStore
- type UserTermsOfServiceStore
- type WebhookStore
Constants ¶
const ( MISSING_CHANNEL_MEMBER_ERROR = "store.sql_channel.get_member.missing.app_error" CHANNEL_EXISTS_ERROR = "store.sql_channel.save_channel.exists.app_error" MISSING_ACCOUNT_ERROR = "store.sql_user.missing_account.const" MISSING_AUTH_ACCOUNT_ERROR = "store.sql_user.get_by_auth.missing_account.app_error" USER_SEARCH_OPTION_NAMES_ONLY = "names_only" USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME = "names_only_no_full_name" USER_SEARCH_OPTION_ALL_NO_FULL_NAME = "all_no_full_name" USER_SEARCH_OPTION_ALLOW_INACTIVE = "allow_inactive" FEATURE_TOGGLE_PREFIX = "feature_enabled_" )
Variables ¶
This section is empty.
Functions ¶
func WithDeadlockRetry ¶ added in v5.26.0
WithDeadlockRetry retries a given f if it throws a deadlock error. It breaks after a threshold and propagates the error upwards. TODO: This can be a separate retry layer in itself where transaction retries are automatically applied.
Types ¶
type AuditStore ¶
type ChannelMemberHistoryStore ¶
type ChannelMemberHistoryStore interface { LogJoinEvent(userId string, channelId string, joinTime int64) error LogLeaveEvent(userId string, channelId string, leaveTime int64) error GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error) PermanentDeleteBatch(endTime int64, limit int64) (int64, error) }
type ChannelSearchOpts ¶
type ChannelSearchOpts struct { NotAssociatedToGroup string IncludeDeleted bool Deleted bool ExcludeChannelNames []string TeamIds []string GroupConstrained bool ExcludeGroupConstrained bool Public bool Private bool Page *int PerPage *int }
ChannelSearchOpts contains options for searching channels.
NotAssociatedToGroup will exclude channels that have associated, active GroupChannels records. IncludeDeleted will include channel records where DeleteAt != 0. ExcludeChannelNames will exclude channels from the results by name. Paginate whether to paginate the results. Page page requested, if results are paginated. PerPage number of results per page, if paginated.
func (*ChannelSearchOpts) IsPaginated ¶
func (c *ChannelSearchOpts) IsPaginated() bool
type ChannelStore ¶
type ChannelStore interface { Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error) Update(channel *model.Channel) (*model.Channel, error) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamId string) *model.AppError ClearSidebarOnTeamLeave(userId, teamId string) *model.AppError Get(id string, allowFromCache bool) (*model.Channel, error) InvalidateChannel(id string) InvalidateChannelByName(teamId, name string) GetFromMaster(id string) (*model.Channel, error) Delete(channelId string, time int64) error Restore(channelId string, time int64) error SetDeleteAt(channelId string, deleteAt int64, updateAt int64) error PermanentDelete(channelId string) error PermanentDeleteByTeam(teamId string) error GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, error) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, error) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, error) GetDeletedByName(team_id string, name string) (*model.Channel, error) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error) GetAllChannels(page, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error) GetAllChannelsCount(opts ChannelSearchOpts) (int64, error) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError) GetAll(teamId string) ([]*model.Channel, *model.AppError) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError) GetForPost(postId string) (*model.Channel, *model.AppError) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError) GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError) InvalidateAllChannelMembersForUser(userId string) IsUserInChannelUseCache(userId string, channelId string) bool GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError) InvalidateCacheForChannelMembersNotifyProps(channelId string) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError) InvalidateMemberCount(channelId string) GetMemberCountFromCache(channelId string) int64 GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError) InvalidatePinnedPostCount(channelId string) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError) InvalidateGuestCount(channelId string) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError) RemoveMember(channelId string, userId string) *model.AppError RemoveMembers(channelId string, userIds []string) *model.AppError PermanentDeleteMembersByUser(userId string) *model.AppError PermanentDeleteMembersByChannel(channelId string) *model.AppError UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError) IncrementMentionCount(channelId string, userId string) *model.AppError AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError) GetMembersForUserWithPagination(teamId, userId string, page, perPage int) (*model.ChannelMembers, *model.AppError) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError) SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError) ClearCaches() GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError) ResetAllChannelSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError MigratePublicChannels() error CreateInitialSidebarCategories(userId, teamId string) error GetSidebarCategories(userId, teamId string) (*model.OrderedSidebarCategories, *model.AppError) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError) GetSidebarCategoryOrder(userId, teamId string) ([]string, *model.AppError) CreateSidebarCategory(userId, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError) UpdateSidebarCategoryOrder(userId, teamId string, categoryOrder []string) *model.AppError UpdateSidebarCategories(userId, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error DeleteSidebarCategory(categoryId string) *model.AppError GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError) RemoveAllDeactivatedMembers(channelId string) *model.AppError GetChannelsBatchForIndexing(startTime, endTime int64, limit int) ([]*model.Channel, *model.AppError) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError) // UpdateMembersRole sets all of the given team members to admins and all of the other members of the team to // non-admin members. UpdateMembersRole(channelID string, userIDs []string) *model.AppError // GroupSyncedChannelCount returns the count of non-deleted group-constrained channels. GroupSyncedChannelCount() (int64, *model.AppError) }
type ClusterDiscoveryStore ¶
type ClusterDiscoveryStore interface { Save(discovery *model.ClusterDiscovery) error Delete(discovery *model.ClusterDiscovery) (bool, error) Exists(discovery *model.ClusterDiscovery) (bool, error) GetAll(discoveryType, clusterName string) ([]*model.ClusterDiscovery, error) SetLastPingAt(discovery *model.ClusterDiscovery) error Cleanup() error }
type CommandStore ¶
type CommandStore interface { Save(webhook *model.Command) (*model.Command, error) GetByTrigger(teamId string, trigger string) (*model.Command, error) Get(id string) (*model.Command, error) GetByTeam(teamId string) ([]*model.Command, error) Delete(commandId string, time int64) error PermanentDeleteByTeam(teamId string) error PermanentDeleteByUser(userId string) error Update(hook *model.Command) (*model.Command, error) AnalyticsCommandCount(teamId string) (int64, error) }
type CommandWebhookStore ¶
type CommandWebhookStore interface { Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError) Get(id string) (*model.CommandWebhook, *model.AppError) TryUse(id string, limit int) *model.AppError Cleanup() }
type ComplianceStore ¶
type ComplianceStore interface { Save(compliance *model.Compliance) (*model.Compliance, *model.AppError) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError) Get(id string) (*model.Compliance, *model.AppError) GetAll(offset, limit int) (model.Compliances, *model.AppError) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError) }
type EmojiStore ¶
type EmojiStore interface { Save(emoji *model.Emoji) (*model.Emoji, error) Get(id string, allowFromCache bool) (*model.Emoji, error) GetByName(name string, allowFromCache bool) (*model.Emoji, error) GetMultipleByName(names []string) ([]*model.Emoji, error) GetList(offset, limit int, sort string) ([]*model.Emoji, error) Delete(emoji *model.Emoji, time int64) error Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, error) }
type ErrConflict ¶ added in v5.24.0
type ErrConflict struct { Resource string // The resource which created the conflict. // contains filtered or unexported fields }
ErrConflict indicates a conflict that occured.
func NewErrConflict ¶ added in v5.24.0
func NewErrConflict(resource string, err error, meta string) *ErrConflict
func (*ErrConflict) Error ¶ added in v5.24.0
func (e *ErrConflict) Error() string
func (*ErrConflict) Unwrap ¶ added in v5.24.0
func (e *ErrConflict) Unwrap() error
type ErrInvalidInput ¶ added in v5.24.0
type ErrInvalidInput struct { Entity string // The entity which was sent as the input. Field string // The field of the entity which was invalid. Value interface{} // The actual value of the field. }
ErrInvalidInput indicates an error that has occured due to an invalid input.
func NewErrInvalidInput ¶ added in v5.24.0
func NewErrInvalidInput(entity, field string, value interface{}) *ErrInvalidInput
func (*ErrInvalidInput) Error ¶ added in v5.24.0
func (e *ErrInvalidInput) Error() string
type ErrLimitExceeded ¶ added in v5.24.0
type ErrLimitExceeded struct { What string // What was the object that exceeded. Count int // The value of the object. // contains filtered or unexported fields }
ErrLimitExceeded indicates an error that has occured because some value exceeded a limit.
func NewErrLimitExceeded ¶ added in v5.24.0
func NewErrLimitExceeded(what string, count int, meta string) *ErrLimitExceeded
func (*ErrLimitExceeded) Error ¶ added in v5.24.0
func (e *ErrLimitExceeded) Error() string
type ErrNotFound ¶ added in v5.24.0
type ErrNotFound struct { Id string // contains filtered or unexported fields }
ErrNotFound indicates that a resource was not found
func NewErrNotFound ¶ added in v5.24.0
func NewErrNotFound(resource, id string) *ErrNotFound
func (*ErrNotFound) Error ¶ added in v5.24.0
func (e *ErrNotFound) Error() string
type ErrOutOfBounds ¶ added in v5.26.0
type ErrOutOfBounds struct {
// contains filtered or unexported fields
}
ErrOutOfBounds indicates that the requested total numbers of rows was greater than the allowed limit.
func NewErrOutOfBounds ¶ added in v5.26.0
func NewErrOutOfBounds(value int) *ErrOutOfBounds
func (*ErrOutOfBounds) Error ¶ added in v5.26.0
func (e *ErrOutOfBounds) Error() string
type FileInfoStore ¶
type FileInfoStore interface { Save(info *model.FileInfo) (*model.FileInfo, *model.AppError) Get(id string) (*model.FileInfo, *model.AppError) GetByPath(path string) (*model.FileInfo, *model.AppError) GetForPost(postId string, readFromMaster, includeDeleted, allowFromCache bool) ([]*model.FileInfo, *model.AppError) GetForUser(userId string) ([]*model.FileInfo, *model.AppError) GetWithOptions(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) InvalidateFileInfosForPostCache(postId string, deleted bool) AttachToPost(fileId string, postId string, creatorId string) *model.AppError DeleteForPost(postId string) (string, *model.AppError) PermanentDelete(fileId string) *model.AppError PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) PermanentDeleteByUser(userId string) (int64, *model.AppError) ClearCaches() }
type GroupStore ¶
type GroupStore interface { Create(group *model.Group) (*model.Group, *model.AppError) Get(groupID string) (*model.Group, *model.AppError) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError) GetByUser(userId string) ([]*model.Group, *model.AppError) Update(group *model.Group) (*model.Group, *model.AppError) Delete(groupID string) (*model.Group, *model.AppError) GetMemberUsers(groupID string) ([]*model.User, *model.AppError) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError) GetMemberCount(groupID string) (int64, *model.AppError) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError) PermanentDeleteMembersByUser(userId string) *model.AppError CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) // TeamMembersToAdd returns a slice of UserTeamIDPair that need newly created memberships // based on the groups configurations. The returned list can be optionally scoped to a single given team. // // Typically since will be the last successful group sync time. TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError) // ChannelMembersToAdd returns a slice of UserChannelIDPair that need newly created memberships // based on the groups configurations. The returned list can be optionally scoped to a single given channel. // // Typically since will be the last successful group sync time. ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError) // TeamMembersToRemove returns all team members that should be removed based on group constraints. TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError) // ChannelMembersToRemove returns all channel members that should be removed based on group constraints. ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError) GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError) // AdminRoleGroupsForSyncableMember returns the IDs of all of the groups that the user is a member of that are // configured as SchemeAdmin: true for the given syncable. AdminRoleGroupsForSyncableMember(userID, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError) // PermittedSyncableAdmins returns the IDs of all of the user who are permitted by the group syncable to have // the admin role for the given syncable. PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError) // GroupCount returns the total count of records in the UserGroups table. GroupCount() (int64, *model.AppError) // GroupTeamCount returns the total count of records in the GroupTeams table. GroupTeamCount() (int64, *model.AppError) // GroupChannelCount returns the total count of records in the GroupChannels table. GroupChannelCount() (int64, *model.AppError) // GroupMemberCount returns the total count of records in the GroupMembers table. GroupMemberCount() (int64, *model.AppError) // DistinctGroupMemberCount returns the count of records in the GroupMembers table with distinct UserId values. DistinctGroupMemberCount() (int64, *model.AppError) // GroupCountWithAllowReference returns the count of records in the Groups table with AllowReference set to true. GroupCountWithAllowReference() (int64, *model.AppError) }
type IntegrityCheckResult ¶
type IntegrityCheckResult struct { Data interface{} Err error }
type JobStore ¶
type JobStore interface { Save(job *model.Job) (*model.Job, *model.AppError) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError) UpdateStatus(id string, status string) (*model.Job, *model.AppError) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError) Get(id string) (*model.Job, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError) GetAllByType(jobType string) ([]*model.Job, *model.AppError) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError) GetAllByStatus(status string) ([]*model.Job, *model.AppError) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, *model.AppError) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError) Delete(id string) (string, *model.AppError) }
type LicenseStore ¶
type LicenseStore interface { Save(license *model.LicenseRecord) (*model.LicenseRecord, error) Get(id string) (*model.LicenseRecord, error) }
type LinkMetadataStore ¶
type LinkMetadataStore interface { Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error) Get(url string, timestamp int64) (*model.LinkMetadata, error) }
type OAuthStore ¶
type OAuthStore interface { SaveApp(app *model.OAuthApp) (*model.OAuthApp, error) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error) GetApp(id string) (*model.OAuthApp, error) GetAppByUser(userId string, offset, limit int) ([]*model.OAuthApp, error) GetApps(offset, limit int) ([]*model.OAuthApp, error) GetAuthorizedApps(userId string, offset, limit int) ([]*model.OAuthApp, error) DeleteApp(id string) error SaveAuthData(authData *model.AuthData) (*model.AuthData, error) GetAuthData(code string) (*model.AuthData, error) RemoveAuthData(code string) error PermanentDeleteAuthDataByUser(userId string) error SaveAccessData(accessData *model.AccessData) (*model.AccessData, error) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error) GetAccessData(token string) (*model.AccessData, error) GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, error) GetAccessDataByRefreshToken(token string) (*model.AccessData, error) GetPreviousAccessData(userId, clientId string) (*model.AccessData, error) RemoveAccessData(token string) error RemoveAllAccessData() error }
type OpenTracingLayer ¶ added in v5.22.0
type OpenTracingLayer struct { Store AuditStore AuditStore BotStore BotStore ChannelStore ChannelStore ChannelMemberHistoryStore ChannelMemberHistoryStore ClusterDiscoveryStore ClusterDiscoveryStore CommandStore CommandStore CommandWebhookStore CommandWebhookStore ComplianceStore ComplianceStore EmojiStore EmojiStore FileInfoStore FileInfoStore GroupStore GroupStore JobStore JobStore LicenseStore LicenseStore LinkMetadataStore LinkMetadataStore OAuthStore OAuthStore PluginStore PluginStore PostStore PostStore PreferenceStore PreferenceStore ReactionStore ReactionStore RoleStore RoleStore SchemeStore SchemeStore SessionStore SessionStore StatusStore StatusStore SystemStore SystemStore TeamStore TeamStore TermsOfServiceStore TermsOfServiceStore TokenStore TokenStore UserStore UserStore UserAccessTokenStore UserAccessTokenStore UserTermsOfServiceStore UserTermsOfServiceStore WebhookStore WebhookStore }
func NewOpenTracingLayer ¶ added in v5.22.0
func NewOpenTracingLayer(childStore Store, ctx context.Context) *OpenTracingLayer
func (*OpenTracingLayer) Audit ¶ added in v5.22.0
func (s *OpenTracingLayer) Audit() AuditStore
func (*OpenTracingLayer) Bot ¶ added in v5.22.0
func (s *OpenTracingLayer) Bot() BotStore
func (*OpenTracingLayer) Channel ¶ added in v5.22.0
func (s *OpenTracingLayer) Channel() ChannelStore
func (*OpenTracingLayer) ChannelMemberHistory ¶ added in v5.22.0
func (s *OpenTracingLayer) ChannelMemberHistory() ChannelMemberHistoryStore
func (*OpenTracingLayer) Close ¶ added in v5.22.0
func (s *OpenTracingLayer) Close()
func (*OpenTracingLayer) ClusterDiscovery ¶ added in v5.22.0
func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore
func (*OpenTracingLayer) Command ¶ added in v5.22.0
func (s *OpenTracingLayer) Command() CommandStore
func (*OpenTracingLayer) CommandWebhook ¶ added in v5.22.0
func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore
func (*OpenTracingLayer) Compliance ¶ added in v5.22.0
func (s *OpenTracingLayer) Compliance() ComplianceStore
func (*OpenTracingLayer) DropAllTables ¶ added in v5.22.0
func (s *OpenTracingLayer) DropAllTables()
func (*OpenTracingLayer) Emoji ¶ added in v5.22.0
func (s *OpenTracingLayer) Emoji() EmojiStore
func (*OpenTracingLayer) FileInfo ¶ added in v5.22.0
func (s *OpenTracingLayer) FileInfo() FileInfoStore
func (*OpenTracingLayer) GetCurrentSchemaVersion ¶ added in v5.22.0
func (s *OpenTracingLayer) GetCurrentSchemaVersion() string
func (*OpenTracingLayer) Group ¶ added in v5.22.0
func (s *OpenTracingLayer) Group() GroupStore
func (*OpenTracingLayer) Job ¶ added in v5.22.0
func (s *OpenTracingLayer) Job() JobStore
func (*OpenTracingLayer) License ¶ added in v5.22.0
func (s *OpenTracingLayer) License() LicenseStore
func (*OpenTracingLayer) LinkMetadata ¶ added in v5.22.0
func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore
func (*OpenTracingLayer) LockToMaster ¶ added in v5.22.0
func (s *OpenTracingLayer) LockToMaster()
func (*OpenTracingLayer) MarkSystemRanUnitTests ¶ added in v5.22.0
func (s *OpenTracingLayer) MarkSystemRanUnitTests()
func (*OpenTracingLayer) OAuth ¶ added in v5.22.0
func (s *OpenTracingLayer) OAuth() OAuthStore
func (*OpenTracingLayer) Plugin ¶ added in v5.22.0
func (s *OpenTracingLayer) Plugin() PluginStore
func (*OpenTracingLayer) Post ¶ added in v5.22.0
func (s *OpenTracingLayer) Post() PostStore
func (*OpenTracingLayer) Preference ¶ added in v5.22.0
func (s *OpenTracingLayer) Preference() PreferenceStore
func (*OpenTracingLayer) Reaction ¶ added in v5.22.0
func (s *OpenTracingLayer) Reaction() ReactionStore
func (*OpenTracingLayer) Role ¶ added in v5.22.0
func (s *OpenTracingLayer) Role() RoleStore
func (*OpenTracingLayer) Scheme ¶ added in v5.22.0
func (s *OpenTracingLayer) Scheme() SchemeStore
func (*OpenTracingLayer) Session ¶ added in v5.22.0
func (s *OpenTracingLayer) Session() SessionStore
func (*OpenTracingLayer) SetContext ¶ added in v5.22.0
func (s *OpenTracingLayer) SetContext(context context.Context)
func (*OpenTracingLayer) Status ¶ added in v5.22.0
func (s *OpenTracingLayer) Status() StatusStore
func (*OpenTracingLayer) System ¶ added in v5.22.0
func (s *OpenTracingLayer) System() SystemStore
func (*OpenTracingLayer) Team ¶ added in v5.22.0
func (s *OpenTracingLayer) Team() TeamStore
func (*OpenTracingLayer) TermsOfService ¶ added in v5.22.0
func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore
func (*OpenTracingLayer) Token ¶ added in v5.22.0
func (s *OpenTracingLayer) Token() TokenStore
func (*OpenTracingLayer) TotalMasterDbConnections ¶ added in v5.22.0
func (s *OpenTracingLayer) TotalMasterDbConnections() int
func (*OpenTracingLayer) TotalReadDbConnections ¶ added in v5.22.0
func (s *OpenTracingLayer) TotalReadDbConnections() int
func (*OpenTracingLayer) TotalSearchDbConnections ¶ added in v5.22.0
func (s *OpenTracingLayer) TotalSearchDbConnections() int
func (*OpenTracingLayer) UnlockFromMaster ¶ added in v5.22.0
func (s *OpenTracingLayer) UnlockFromMaster()
func (*OpenTracingLayer) User ¶ added in v5.22.0
func (s *OpenTracingLayer) User() UserStore
func (*OpenTracingLayer) UserAccessToken ¶ added in v5.22.0
func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore
func (*OpenTracingLayer) UserTermsOfService ¶ added in v5.22.0
func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore
func (*OpenTracingLayer) Webhook ¶ added in v5.22.0
func (s *OpenTracingLayer) Webhook() WebhookStore
type OpenTracingLayerAuditStore ¶ added in v5.22.0
type OpenTracingLayerAuditStore struct { AuditStore Root *OpenTracingLayer }
func (*OpenTracingLayerAuditStore) PermanentDeleteByUser ¶ added in v5.22.0
func (s *OpenTracingLayerAuditStore) PermanentDeleteByUser(userId string) error
type OpenTracingLayerBotStore ¶ added in v5.22.0
type OpenTracingLayerBotStore struct { BotStore Root *OpenTracingLayer }
func (*OpenTracingLayerBotStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)
func (*OpenTracingLayerBotStore) PermanentDelete ¶ added in v5.22.0
func (s *OpenTracingLayerBotStore) PermanentDelete(userId string) error
type OpenTracingLayerChannelMemberHistoryStore ¶ added in v5.22.0
type OpenTracingLayerChannelMemberHistoryStore struct { ChannelMemberHistoryStore Root *OpenTracingLayer }
func (*OpenTracingLayerChannelMemberHistoryStore) GetUsersInChannelDuring ¶ added in v5.22.0
func (s *OpenTracingLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error)
func (*OpenTracingLayerChannelMemberHistoryStore) LogJoinEvent ¶ added in v5.22.0
func (s *OpenTracingLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) error
func (*OpenTracingLayerChannelMemberHistoryStore) LogLeaveEvent ¶ added in v5.22.0
func (s *OpenTracingLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) error
func (*OpenTracingLayerChannelMemberHistoryStore) PermanentDeleteBatch ¶ added in v5.22.0
func (s *OpenTracingLayerChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
type OpenTracingLayerChannelStore ¶ added in v5.22.0
type OpenTracingLayerChannelStore struct { ChannelStore Root *OpenTracingLayer }
func (*OpenTracingLayerChannelStore) AnalyticsDeletedTypeCount ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) AnalyticsTypeCount ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) AutocompleteInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) AutocompleteInTeamForSearch ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerChannelStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) ClearCaches()
func (*OpenTracingLayerChannelStore) ClearSidebarOnTeamLeave ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) *model.AppError
func (*OpenTracingLayerChannelStore) CountPostsAfter ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) CreateDirectChannel ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) CreateInitialSidebarCategories ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) CreateInitialSidebarCategories(userId string, teamId string) error
func (*OpenTracingLayerChannelStore) CreateSidebarCategory ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) CreateSidebarCategory(userId string, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError)
func (*OpenTracingLayerChannelStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) Delete(channelId string, time int64) error
func (*OpenTracingLayerChannelStore) DeleteSidebarCategory ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) DeleteSidebarCategory(categoryId string) *model.AppError
func (*OpenTracingLayerChannelStore) DeleteSidebarChannelsByPreferences ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*OpenTracingLayerChannelStore) GetAllChannelMembersForUser ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetAllChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
func (*OpenTracingLayerChannelStore) GetAllChannelsCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, error)
func (*OpenTracingLayerChannelStore) GetAllChannelsForExportAfter ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
func (*OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
func (*OpenTracingLayerChannelStore) GetByNameIncludeDeleted ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetByNames ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetChannelCounts ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
func (*OpenTracingLayerChannelStore) GetChannelMembersForExport ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
func (*OpenTracingLayerChannelStore) GetChannelMembersTimezones ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetChannelUnread ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
func (*OpenTracingLayerChannelStore) GetChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error)
func (*OpenTracingLayerChannelStore) GetChannelsBatchForIndexing ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetChannelsByIds ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetChannelsByScheme ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) GetDeleted ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error)
func (*OpenTracingLayerChannelStore) GetDeletedByName ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetForPost ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetFromMaster ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
func (*OpenTracingLayerChannelStore) GetGuestCount ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetMember ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMemberCount ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetMemberCountFromCache ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMemberCountFromCache(channelId string) int64
func (*OpenTracingLayerChannelStore) GetMemberCountsByGroup ¶ added in v5.24.0
func (s *OpenTracingLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMemberForPost ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMembers ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMembersByIds ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMembersForUser ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMembersForUserWithPagination ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
func (*OpenTracingLayerChannelStore) GetMoreChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error)
func (*OpenTracingLayerChannelStore) GetPinnedPostCount ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetPinnedPosts ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) GetPrivateChannelsForTeam ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) GetPublicChannelsForTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) GetSidebarCategories ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) GetSidebarCategories(userId string, teamId string) (*model.OrderedSidebarCategories, *model.AppError)
func (*OpenTracingLayerChannelStore) GetSidebarCategory ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError)
func (*OpenTracingLayerChannelStore) GetSidebarCategoryOrder ¶ added in v5.26.0
func (*OpenTracingLayerChannelStore) GetTeamChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) GroupSyncedChannelCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)
func (*OpenTracingLayerChannelStore) IncrementMentionCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
func (*OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)
func (*OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
func (*OpenTracingLayerChannelStore) InvalidateChannel ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateChannel(id string)
func (*OpenTracingLayerChannelStore) InvalidateChannelByName ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateChannelByName(teamId string, name string)
func (*OpenTracingLayerChannelStore) InvalidateGuestCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateGuestCount(channelId string)
func (*OpenTracingLayerChannelStore) InvalidateMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidateMemberCount(channelId string)
func (*OpenTracingLayerChannelStore) InvalidatePinnedPostCount ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) InvalidatePinnedPostCount(channelId string)
func (*OpenTracingLayerChannelStore) IsUserInChannelUseCache ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
func (*OpenTracingLayerChannelStore) MigrateChannelMembers ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) MigratePublicChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) MigratePublicChannels() error
func (*OpenTracingLayerChannelStore) PermanentDelete ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) PermanentDelete(channelId string) error
func (*OpenTracingLayerChannelStore) PermanentDeleteByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) PermanentDeleteByTeam(teamId string) error
func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByUser ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
func (*OpenTracingLayerChannelStore) RemoveMember ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
func (*OpenTracingLayerChannelStore) RemoveMembers ¶ added in v5.24.0
func (s *OpenTracingLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
func (*OpenTracingLayerChannelStore) ResetAllChannelSchemes ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) ResetAllChannelSchemes() *model.AppError
func (*OpenTracingLayerChannelStore) Restore ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) Restore(channelId string, time int64) error
func (*OpenTracingLayerChannelStore) SaveDirectChannel ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)
func (*OpenTracingLayerChannelStore) SaveMember ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) SaveMultipleMembers ¶ added in v5.24.0
func (s *OpenTracingLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchAllChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchArchivedInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchForUserInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchGroupChannels ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) SearchMore ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
func (*OpenTracingLayerChannelStore) SetDeleteAt ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) error
func (*OpenTracingLayerChannelStore) UpdateLastViewedAt ¶ added in v5.22.0
func (*OpenTracingLayerChannelStore) UpdateLastViewedAtPost ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
func (*OpenTracingLayerChannelStore) UpdateMember ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) UpdateMembersRole ¶ added in v5.22.0
func (s *OpenTracingLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
func (*OpenTracingLayerChannelStore) UpdateMultipleMembers ¶ added in v5.24.0
func (s *OpenTracingLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerChannelStore) UpdateSidebarCategories ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)
func (*OpenTracingLayerChannelStore) UpdateSidebarCategoryOrder ¶ added in v5.26.0
func (*OpenTracingLayerChannelStore) UpdateSidebarChannelCategoryOnMove ¶ added in v5.26.0
func (*OpenTracingLayerChannelStore) UpdateSidebarChannelsByPreferences ¶ added in v5.26.0
func (s *OpenTracingLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*OpenTracingLayerChannelStore) UserBelongsToChannels ¶ added in v5.22.0
type OpenTracingLayerClusterDiscoveryStore ¶ added in v5.22.0
type OpenTracingLayerClusterDiscoveryStore struct { ClusterDiscoveryStore Root *OpenTracingLayer }
func (*OpenTracingLayerClusterDiscoveryStore) Cleanup ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) Cleanup() error
func (*OpenTracingLayerClusterDiscoveryStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error)
func (*OpenTracingLayerClusterDiscoveryStore) Exists ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error)
func (*OpenTracingLayerClusterDiscoveryStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error)
func (*OpenTracingLayerClusterDiscoveryStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error
func (*OpenTracingLayerClusterDiscoveryStore) SetLastPingAt ¶ added in v5.22.0
func (s *OpenTracingLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error
type OpenTracingLayerCommandStore ¶ added in v5.22.0
type OpenTracingLayerCommandStore struct { CommandStore Root *OpenTracingLayer }
func (*OpenTracingLayerCommandStore) AnalyticsCommandCount ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, error)
func (*OpenTracingLayerCommandStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) Delete(commandId string, time int64) error
func (*OpenTracingLayerCommandStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) Get(id string) (*model.Command, error)
func (*OpenTracingLayerCommandStore) GetByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, error)
func (*OpenTracingLayerCommandStore) GetByTrigger ¶ added in v5.22.0
func (*OpenTracingLayerCommandStore) PermanentDeleteByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) PermanentDeleteByTeam(teamId string) error
func (*OpenTracingLayerCommandStore) PermanentDeleteByUser ¶ added in v5.22.0
func (s *OpenTracingLayerCommandStore) PermanentDeleteByUser(userId string) error
type OpenTracingLayerCommandWebhookStore ¶ added in v5.22.0
type OpenTracingLayerCommandWebhookStore struct { CommandWebhookStore Root *OpenTracingLayer }
func (*OpenTracingLayerCommandWebhookStore) Cleanup ¶ added in v5.22.0
func (s *OpenTracingLayerCommandWebhookStore) Cleanup()
func (*OpenTracingLayerCommandWebhookStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
func (*OpenTracingLayerCommandWebhookStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
type OpenTracingLayerComplianceStore ¶ added in v5.22.0
type OpenTracingLayerComplianceStore struct { ComplianceStore Root *OpenTracingLayer }
func (*OpenTracingLayerComplianceStore) ComplianceExport ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (*OpenTracingLayerComplianceStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (*OpenTracingLayerComplianceStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
func (*OpenTracingLayerComplianceStore) MessageExport ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (*OpenTracingLayerComplianceStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (*OpenTracingLayerComplianceStore) Update ¶ added in v5.22.0
func (s *OpenTracingLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type OpenTracingLayerEmojiStore ¶ added in v5.22.0
type OpenTracingLayerEmojiStore struct { EmojiStore Root *OpenTracingLayer }
func (*OpenTracingLayerEmojiStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerEmojiStore) Delete(emoji *model.Emoji, time int64) error
func (*OpenTracingLayerEmojiStore) GetMultipleByName ¶ added in v5.22.0
func (s *OpenTracingLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error)
type OpenTracingLayerFileInfoStore ¶ added in v5.22.0
type OpenTracingLayerFileInfoStore struct { FileInfoStore Root *OpenTracingLayer }
func (*OpenTracingLayerFileInfoStore) AttachToPost ¶ added in v5.22.0
func (*OpenTracingLayerFileInfoStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) ClearCaches()
func (*OpenTracingLayerFileInfoStore) DeleteForPost ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (*OpenTracingLayerFileInfoStore) GetForPost ¶ added in v5.22.0
func (*OpenTracingLayerFileInfoStore) GetForUser ¶ added in v5.22.0
func (*OpenTracingLayerFileInfoStore) GetWithOptions ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
func (*OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
func (*OpenTracingLayerFileInfoStore) PermanentDelete ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (*OpenTracingLayerFileInfoStore) PermanentDeleteBatch ¶ added in v5.22.0
func (*OpenTracingLayerFileInfoStore) PermanentDeleteByUser ¶ added in v5.22.0
func (s *OpenTracingLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type OpenTracingLayerGroupStore ¶ added in v5.22.0
type OpenTracingLayerGroupStore struct { GroupStore Root *OpenTracingLayer }
func (*OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
func (*OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*OpenTracingLayerGroupStore) ChannelMembersToAdd ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
func (*OpenTracingLayerGroupStore) ChannelMembersToRemove ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
func (*OpenTracingLayerGroupStore) CountChannelMembersMinusGroupMembers ¶ added in v5.22.0
func (*OpenTracingLayerGroupStore) CountGroupsByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) CountGroupsByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) CountTeamMembersMinusGroupMembers ¶ added in v5.22.0
func (*OpenTracingLayerGroupStore) CreateGroupSyncable ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*OpenTracingLayerGroupStore) DeleteGroupSyncable ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*OpenTracingLayerGroupStore) DeleteMember ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
func (*OpenTracingLayerGroupStore) DistinctGroupMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GetAllBySource ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
func (*OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
func (*OpenTracingLayerGroupStore) GetByName ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)
func (*OpenTracingLayerGroupStore) GetByRemoteID ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
func (*OpenTracingLayerGroupStore) GetGroupSyncable ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*OpenTracingLayerGroupStore) GetGroups ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*OpenTracingLayerGroupStore) GetGroupsAssociatedToChannelsByTeam ¶ added in v5.24.0
func (s *OpenTracingLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)
func (*OpenTracingLayerGroupStore) GetGroupsByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
func (*OpenTracingLayerGroupStore) GetGroupsByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
func (*OpenTracingLayerGroupStore) GetMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GetMemberUsers ¶ added in v5.22.0
func (*OpenTracingLayerGroupStore) GetMemberUsersInTeam ¶ added in v5.24.0
func (*OpenTracingLayerGroupStore) GetMemberUsersNotInChannel ¶ added in v5.24.0
func (*OpenTracingLayerGroupStore) GetMemberUsersPage ¶ added in v5.22.0
func (*OpenTracingLayerGroupStore) GroupChannelCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GroupChannelCount() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GroupCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GroupCount() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GroupCountWithAllowReference ¶ added in v5.24.0
func (s *OpenTracingLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GroupMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GroupMemberCount() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) GroupTeamCount ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) GroupTeamCount() (int64, *model.AppError)
func (*OpenTracingLayerGroupStore) PermanentDeleteMembersByUser ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*OpenTracingLayerGroupStore) PermittedSyncableAdmins ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
func (*OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*OpenTracingLayerGroupStore) TeamMembersToAdd ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
func (*OpenTracingLayerGroupStore) TeamMembersToRemove ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerGroupStore) UpdateGroupSyncable ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*OpenTracingLayerGroupStore) UpsertMember ¶ added in v5.22.0
func (s *OpenTracingLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
type OpenTracingLayerJobStore ¶ added in v5.22.0
type OpenTracingLayerJobStore struct { JobStore Root *OpenTracingLayer }
func (*OpenTracingLayerJobStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerJobStore) Delete(id string) (string, *model.AppError)
func (*OpenTracingLayerJobStore) GetAllByStatus ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetAllByType ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetAllByTypePage ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetAllPage ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetCountByStatusAndType ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetNewestJobByStatusAndType ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) GetNewestJobByStatusesAndType ¶ added in v5.27.0
func (*OpenTracingLayerJobStore) UpdateOptimistically ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) UpdateStatus ¶ added in v5.22.0
func (*OpenTracingLayerJobStore) UpdateStatusOptimistically ¶ added in v5.22.0
type OpenTracingLayerLicenseStore ¶ added in v5.22.0
type OpenTracingLayerLicenseStore struct { LicenseStore Root *OpenTracingLayer }
func (*OpenTracingLayerLicenseStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerLicenseStore) Get(id string) (*model.LicenseRecord, error)
func (*OpenTracingLayerLicenseStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error)
type OpenTracingLayerLinkMetadataStore ¶ added in v5.22.0
type OpenTracingLayerLinkMetadataStore struct { LinkMetadataStore Root *OpenTracingLayer }
func (*OpenTracingLayerLinkMetadataStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error)
func (*OpenTracingLayerLinkMetadataStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerLinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error)
type OpenTracingLayerOAuthStore ¶ added in v5.22.0
type OpenTracingLayerOAuthStore struct { OAuthStore Root *OpenTracingLayer }
func (*OpenTracingLayerOAuthStore) DeleteApp ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) DeleteApp(id string) error
func (*OpenTracingLayerOAuthStore) GetAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetAccessData(token string) (*model.AccessData, error)
func (*OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)
func (*OpenTracingLayerOAuthStore) GetAccessDataByUserForApp ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, error)
func (*OpenTracingLayerOAuthStore) GetApp ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetApp(id string) (*model.OAuthApp, error)
func (*OpenTracingLayerOAuthStore) GetAppByUser ¶ added in v5.22.0
func (*OpenTracingLayerOAuthStore) GetAuthData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetAuthData(code string) (*model.AuthData, error)
func (*OpenTracingLayerOAuthStore) GetAuthorizedApps ¶ added in v5.22.0
func (*OpenTracingLayerOAuthStore) GetPreviousAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, error)
func (*OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) error
func (*OpenTracingLayerOAuthStore) RemoveAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) RemoveAccessData(token string) error
func (*OpenTracingLayerOAuthStore) RemoveAllAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) RemoveAllAccessData() error
func (*OpenTracingLayerOAuthStore) RemoveAuthData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) RemoveAuthData(code string) error
func (*OpenTracingLayerOAuthStore) SaveAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)
func (*OpenTracingLayerOAuthStore) SaveAuthData ¶ added in v5.22.0
func (*OpenTracingLayerOAuthStore) UpdateAccessData ¶ added in v5.22.0
func (s *OpenTracingLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error)
type OpenTracingLayerPluginStore ¶ added in v5.22.0
type OpenTracingLayerPluginStore struct { PluginStore Root *OpenTracingLayer }
func (*OpenTracingLayerPluginStore) CompareAndDelete ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*OpenTracingLayerPluginStore) CompareAndSet ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*OpenTracingLayerPluginStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) Delete(pluginId string, key string) *model.AppError
func (*OpenTracingLayerPluginStore) DeleteAllExpired ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) DeleteAllExpired() *model.AppError
func (*OpenTracingLayerPluginStore) DeleteAllForPlugin ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
func (*OpenTracingLayerPluginStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
func (*OpenTracingLayerPluginStore) SaveOrUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
func (*OpenTracingLayerPluginStore) SetWithOptions ¶ added in v5.22.0
func (s *OpenTracingLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
type OpenTracingLayerPostStore ¶ added in v5.22.0
type OpenTracingLayerPostStore struct { PostStore Root *OpenTracingLayer }
func (*OpenTracingLayerPostStore) AnalyticsPostCount ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) AnalyticsPostCountsByDay ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
func (*OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
func (*OpenTracingLayerPostStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) ClearCaches()
func (*OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
func (*OpenTracingLayerPostStore) GetEtag ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
func (*OpenTracingLayerPostStore) GetFlaggedPosts ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetFlaggedPostsForChannel ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetFlaggedPostsForTeam ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetMaxPostSize ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetMaxPostSize() int
func (*OpenTracingLayerPostStore) GetOldest ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetOldest() (*model.Post, *model.AppError)
func (*OpenTracingLayerPostStore) GetOldestEntityCreationTime ¶ added in v5.26.0
func (s *OpenTracingLayerPostStore) GetOldestEntityCreationTime() (int64, *model.AppError)
func (*OpenTracingLayerPostStore) GetParentsForExportAfter ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
func (*OpenTracingLayerPostStore) GetPostAfterTime ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetPostIdAfterTime ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetPostIdBeforeTime ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetPosts ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*OpenTracingLayerPostStore) GetPostsAfter ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*OpenTracingLayerPostStore) GetPostsBatchForIndexing ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
func (*OpenTracingLayerPostStore) GetPostsBefore ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*OpenTracingLayerPostStore) GetPostsByIds ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetPostsCreatedAt ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) GetPostsSince ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*OpenTracingLayerPostStore) GetRepliesForExport ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
func (*OpenTracingLayerPostStore) InvalidateLastPostTimeCache ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) InvalidateLastPostTimeCache(channelId string)
func (*OpenTracingLayerPostStore) OverwriteMultiple ¶ added in v5.24.0
func (*OpenTracingLayerPostStore) PermanentDeleteBatch ¶ added in v5.22.0
func (*OpenTracingLayerPostStore) PermanentDeleteByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
func (*OpenTracingLayerPostStore) PermanentDeleteByUser ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
func (*OpenTracingLayerPostStore) SaveMultiple ¶ added in v5.24.0
func (*OpenTracingLayerPostStore) Search ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
func (*OpenTracingLayerPostStore) SearchPostsInTeamForUser ¶ added in v5.22.0
func (s *OpenTracingLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool, page int, perPage int) (*model.PostSearchResults, *model.AppError)
type OpenTracingLayerPreferenceStore ¶ added in v5.22.0
type OpenTracingLayerPreferenceStore struct { PreferenceStore Root *OpenTracingLayer }
func (*OpenTracingLayerPreferenceStore) CleanupFlagsBatch ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (*OpenTracingLayerPreferenceStore) DeleteCategory ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (*OpenTracingLayerPreferenceStore) DeleteCategoryAndName ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (*OpenTracingLayerPreferenceStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (*OpenTracingLayerPreferenceStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (*OpenTracingLayerPreferenceStore) GetCategory ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (*OpenTracingLayerPreferenceStore) PermanentDeleteByUser ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (*OpenTracingLayerPreferenceStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type OpenTracingLayerReactionStore ¶ added in v5.22.0
type OpenTracingLayerReactionStore struct { ReactionStore Root *OpenTracingLayer }
func (*OpenTracingLayerReactionStore) BulkGetForPosts ¶ added in v5.22.0
func (s *OpenTracingLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error)
func (*OpenTracingLayerReactionStore) DeleteAllWithEmojiName ¶ added in v5.22.0
func (s *OpenTracingLayerReactionStore) DeleteAllWithEmojiName(emojiName string) error
func (*OpenTracingLayerReactionStore) GetForPost ¶ added in v5.22.0
func (*OpenTracingLayerReactionStore) PermanentDeleteBatch ¶ added in v5.22.0
func (s *OpenTracingLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
type OpenTracingLayerRoleStore ¶ added in v5.22.0
type OpenTracingLayerRoleStore struct { RoleStore Root *OpenTracingLayer }
func (*OpenTracingLayerRoleStore) AllChannelSchemeRoles ¶ added in v5.22.0
func (s *OpenTracingLayerRoleStore) AllChannelSchemeRoles() ([]*model.Role, *model.AppError)
func (*OpenTracingLayerRoleStore) ChannelHigherScopedPermissions ¶ added in v5.22.0
func (s *OpenTracingLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
func (*OpenTracingLayerRoleStore) ChannelRolesUnderTeamRole ¶ added in v5.22.0
func (*OpenTracingLayerRoleStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
func (*OpenTracingLayerRoleStore) GetByNames ¶ added in v5.22.0
func (*OpenTracingLayerRoleStore) PermanentDeleteAll ¶ added in v5.22.0
func (s *OpenTracingLayerRoleStore) PermanentDeleteAll() *model.AppError
type OpenTracingLayerSchemeStore ¶ added in v5.22.0
type OpenTracingLayerSchemeStore struct { SchemeStore Root *OpenTracingLayer }
func (*OpenTracingLayerSchemeStore) CountByScope ¶ added in v5.24.0
func (s *OpenTracingLayerSchemeStore) CountByScope(scope string) (int64, error)
func (*OpenTracingLayerSchemeStore) CountWithoutPermission ¶ added in v5.24.0
func (*OpenTracingLayerSchemeStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerSchemeStore) Delete(schemeId string) (*model.Scheme, error)
func (*OpenTracingLayerSchemeStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerSchemeStore) Get(schemeId string) (*model.Scheme, error)
func (*OpenTracingLayerSchemeStore) GetAllPage ¶ added in v5.22.0
func (*OpenTracingLayerSchemeStore) GetByName ¶ added in v5.22.0
func (s *OpenTracingLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, error)
func (*OpenTracingLayerSchemeStore) PermanentDeleteAll ¶ added in v5.22.0
func (s *OpenTracingLayerSchemeStore) PermanentDeleteAll() error
type OpenTracingLayerSessionStore ¶ added in v5.22.0
type OpenTracingLayerSessionStore struct { SessionStore Root *OpenTracingLayer }
func (*OpenTracingLayerSessionStore) AnalyticsSessionCount ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) AnalyticsSessionCount() (int64, error)
func (*OpenTracingLayerSessionStore) Cleanup ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (*OpenTracingLayerSessionStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, error)
func (*OpenTracingLayerSessionStore) GetSessions ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) GetSessions(userId string) ([]*model.Session, error)
func (*OpenTracingLayerSessionStore) GetSessionsExpired ¶ added in v5.26.0
func (*OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, error)
func (*OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) error
func (*OpenTracingLayerSessionStore) Remove ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) Remove(sessionIdOrToken string) error
func (*OpenTracingLayerSessionStore) RemoveAllSessions ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) RemoveAllSessions() error
func (*OpenTracingLayerSessionStore) UpdateDeviceId ¶ added in v5.22.0
func (*OpenTracingLayerSessionStore) UpdateExpiredNotify ¶ added in v5.26.0
func (s *OpenTracingLayerSessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
func (*OpenTracingLayerSessionStore) UpdateExpiresAt ¶ added in v5.24.0
func (s *OpenTracingLayerSessionStore) UpdateExpiresAt(sessionId string, time int64) error
func (*OpenTracingLayerSessionStore) UpdateLastActivityAt ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) error
func (*OpenTracingLayerSessionStore) UpdateProps ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) UpdateProps(session *model.Session) error
func (*OpenTracingLayerSessionStore) UpdateRoles ¶ added in v5.22.0
func (s *OpenTracingLayerSessionStore) UpdateRoles(userId string, roles string) (string, error)
type OpenTracingLayerStatusStore ¶ added in v5.22.0
type OpenTracingLayerStatusStore struct { StatusStore Root *OpenTracingLayer }
func (*OpenTracingLayerStatusStore) GetTotalActiveUsersCount ¶ added in v5.22.0
func (s *OpenTracingLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (*OpenTracingLayerStatusStore) ResetAll ¶ added in v5.22.0
func (s *OpenTracingLayerStatusStore) ResetAll() *model.AppError
func (*OpenTracingLayerStatusStore) SaveOrUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (*OpenTracingLayerStatusStore) UpdateLastActivityAt ¶ added in v5.22.0
func (s *OpenTracingLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
type OpenTracingLayerSystemStore ¶ added in v5.22.0
type OpenTracingLayerSystemStore struct { SystemStore Root *OpenTracingLayer }
func (*OpenTracingLayerSystemStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerSystemStore) Get() (model.StringMap, *model.AppError)
func (*OpenTracingLayerSystemStore) InsertIfExists ¶ added in v5.26.0
func (*OpenTracingLayerSystemStore) PermanentDeleteByName ¶ added in v5.22.0
func (*OpenTracingLayerSystemStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerSystemStore) Save(system *model.System) *model.AppError
func (*OpenTracingLayerSystemStore) SaveOrUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type OpenTracingLayerTeamStore ¶ added in v5.22.0
type OpenTracingLayerTeamStore struct { TeamStore Root *OpenTracingLayer }
func (*OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) AnalyticsPublicTeamCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) AnalyticsTeamCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerTeamStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) ClearCaches()
func (*OpenTracingLayerTeamStore) GetActiveMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
func (*OpenTracingLayerTeamStore) GetAllForExportAfter ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
func (*OpenTracingLayerTeamStore) GetAllPage ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetAllPrivateTeamListing ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
func (*OpenTracingLayerTeamStore) GetAllPrivateTeamPageListing ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetAllPublicTeamPageListing ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetAllTeamListing ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
func (*OpenTracingLayerTeamStore) GetAllTeamPageListing ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetByInviteId ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetByNames ¶ added in v5.24.0
func (*OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*OpenTracingLayerTeamStore) GetChannelUnreadsForTeam ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*OpenTracingLayerTeamStore) GetMember ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) GetMembers ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) GetMembersByIds ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) GetTeamMembersForExport ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
func (*OpenTracingLayerTeamStore) GetTeamsByScheme ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetTeamsByUserId ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GetTeamsForUser ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) GetTeamsForUserWithPagination ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) GetTotalMemberCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) GetUserTeamIds ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) GroupSyncedTeamCount ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)
func (*OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
func (*OpenTracingLayerTeamStore) MigrateTeamMembers ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) PermanentDelete ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) PermanentDelete(teamId string) *model.AppError
func (*OpenTracingLayerTeamStore) RemoveAllMembersByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
func (*OpenTracingLayerTeamStore) RemoveAllMembersByUser ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
func (*OpenTracingLayerTeamStore) RemoveMember ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
func (*OpenTracingLayerTeamStore) RemoveMembers ¶ added in v5.24.0
func (s *OpenTracingLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError
func (*OpenTracingLayerTeamStore) ResetAllTeamSchemes ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) ResetAllTeamSchemes() *model.AppError
func (*OpenTracingLayerTeamStore) SaveMember ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) SaveMultipleMembers ¶ added in v5.24.0
func (s *OpenTracingLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) SearchAllPaged ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) SearchOpen ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) SearchPrivate ¶ added in v5.22.0
func (*OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
func (*OpenTracingLayerTeamStore) UpdateMember ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) UpdateMembersRole ¶ added in v5.22.0
func (s *OpenTracingLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError
func (*OpenTracingLayerTeamStore) UpdateMultipleMembers ¶ added in v5.24.0
func (s *OpenTracingLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)
func (*OpenTracingLayerTeamStore) UserBelongsToTeams ¶ added in v5.22.0
type OpenTracingLayerTermsOfServiceStore ¶ added in v5.22.0
type OpenTracingLayerTermsOfServiceStore struct { TermsOfServiceStore Root *OpenTracingLayer }
func (*OpenTracingLayerTermsOfServiceStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error)
func (*OpenTracingLayerTermsOfServiceStore) GetLatest ¶ added in v5.22.0
func (s *OpenTracingLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error)
func (*OpenTracingLayerTermsOfServiceStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error)
type OpenTracingLayerTokenStore ¶ added in v5.22.0
type OpenTracingLayerTokenStore struct { TokenStore Root *OpenTracingLayer }
func (*OpenTracingLayerTokenStore) Cleanup ¶ added in v5.22.0
func (s *OpenTracingLayerTokenStore) Cleanup()
func (*OpenTracingLayerTokenStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerTokenStore) Delete(token string) error
func (*OpenTracingLayerTokenStore) GetByToken ¶ added in v5.22.0
func (s *OpenTracingLayerTokenStore) GetByToken(token string) (*model.Token, error)
func (*OpenTracingLayerTokenStore) RemoveAllTokensByType ¶ added in v5.22.0
func (s *OpenTracingLayerTokenStore) RemoveAllTokensByType(tokenType string) error
type OpenTracingLayerUserAccessTokenStore ¶ added in v5.22.0
type OpenTracingLayerUserAccessTokenStore struct { UserAccessTokenStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserAccessTokenStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) DeleteAllForUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) Get ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetByToken ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetByUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) Search ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable ¶ added in v5.22.0
func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type OpenTracingLayerUserStore ¶ added in v5.22.0
type OpenTracingLayerUserStore struct { UserStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserStore) AnalyticsActiveCount ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AnalyticsGetGuestCount ¶ added in v5.24.0
func (s *OpenTracingLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AutocompleteUsersInChannel ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
func (*OpenTracingLayerUserStore) ClearAllCustomRoleAssignments ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerUserStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) ClearCaches()
func (*OpenTracingLayerUserStore) Count ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) DeactivateGuests ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) DeactivateGuests() ([]string, *model.AppError)
func (*OpenTracingLayerUserStore) DemoteUserToGuest ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
func (*OpenTracingLayerUserStore) GetAll ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetAll() ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetAllAfter ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetAllNotInAuthService ¶ added in v5.24.0
func (*OpenTracingLayerUserStore) GetAllProfiles ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetAllProfilesInChannel ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetAllUsingAuthService ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetAnyUnreadPostCountForChannel ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetByEmail ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetByUsername ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetChannelGroupUsers ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetEtagForAllProfiles ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string
func (*OpenTracingLayerUserStore) GetEtagForProfiles ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetEtagForProfiles(teamId string) string
func (*OpenTracingLayerUserStore) GetEtagForProfilesNotInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string
func (*OpenTracingLayerUserStore) GetForLogin ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetKnownUsers ¶ added in v5.23.0
func (s *OpenTracingLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)
func (*OpenTracingLayerUserStore) GetNewUsersForTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfileByGroupChannelIdsForUser ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetProfileByIds ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfiles ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfilesByUsernames ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfilesInChannel ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetProfilesInChannelByStatus ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetProfilesNotInChannel ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetProfilesNotInTeam ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetProfilesWithoutTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetSystemAdminProfiles ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetTeamGroupUsers ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetUnreadCount ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) GetUnreadCountForChannel ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) GetUsersBatchForIndexing ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (*OpenTracingLayerUserStore) InferSystemInstallDate ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) InvalidateProfileCacheForUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)
func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCache ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
func (*OpenTracingLayerUserStore) PermanentDelete ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) PermanentDelete(userId string) *model.AppError
func (*OpenTracingLayerUserStore) PromoteGuestToUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
func (*OpenTracingLayerUserStore) ResetLastPictureUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (*OpenTracingLayerUserStore) Search ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) SearchInChannel ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) SearchInGroup ¶ added in v5.26.0
func (s *OpenTracingLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) SearchNotInChannel ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) SearchNotInTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) SearchWithoutTeam ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) Update ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
func (*OpenTracingLayerUserStore) UpdateAuthData ¶ added in v5.22.0
func (*OpenTracingLayerUserStore) UpdateFailedPasswordAttempts ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
func (*OpenTracingLayerUserStore) UpdateLastPictureUpdate ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
func (*OpenTracingLayerUserStore) UpdateMfaActive ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
func (*OpenTracingLayerUserStore) UpdateMfaSecret ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
func (*OpenTracingLayerUserStore) UpdatePassword ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
func (*OpenTracingLayerUserStore) UpdateUpdateAt ¶ added in v5.22.0
func (s *OpenTracingLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) VerifyEmail ¶ added in v5.22.0
type OpenTracingLayerUserTermsOfServiceStore ¶ added in v5.22.0
type OpenTracingLayerUserTermsOfServiceStore struct { UserTermsOfServiceStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserTermsOfServiceStore) Delete ¶ added in v5.22.0
func (s *OpenTracingLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) error
func (*OpenTracingLayerUserTermsOfServiceStore) GetByUser ¶ added in v5.22.0
func (s *OpenTracingLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, error)
func (*OpenTracingLayerUserTermsOfServiceStore) Save ¶ added in v5.22.0
func (s *OpenTracingLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error)
type OpenTracingLayerWebhookStore ¶ added in v5.22.0
type OpenTracingLayerWebhookStore struct { WebhookStore Root *OpenTracingLayer }
func (*OpenTracingLayerWebhookStore) AnalyticsIncomingCount ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (*OpenTracingLayerWebhookStore) AnalyticsOutgoingCount ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (*OpenTracingLayerWebhookStore) ClearCaches ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) ClearCaches()
func (*OpenTracingLayerWebhookStore) DeleteIncoming ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (*OpenTracingLayerWebhookStore) DeleteOutgoing ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (*OpenTracingLayerWebhookStore) GetIncoming ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByTeamByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingList ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingListByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoing ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByTeam ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingList ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingListByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) InvalidateWebhookCache ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (*OpenTracingLayerWebhookStore) SaveIncoming ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) SaveOutgoing ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) UpdateIncoming ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) UpdateOutgoing ¶ added in v5.22.0
func (s *OpenTracingLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type OrphanedRecord ¶
type PluginStore ¶
type PluginStore interface { SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError) Get(pluginId, key string) (*model.PluginKeyValue, *model.AppError) Delete(pluginId, key string) *model.AppError DeleteAllForPlugin(PluginId string) *model.AppError DeleteAllExpired() *model.AppError List(pluginId string, page, perPage int) ([]string, *model.AppError) }
type PostStore ¶
type PostStore interface { SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError) Save(post *model.Post) (*model.Post, *model.AppError) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError) GetSingle(id string) (*model.Post, *model.AppError) Delete(postId string, time int64, deleteByID string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError PermanentDeleteByChannel(channelId string) *model.AppError GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError) // @openTracingParams userId, teamId, offset, limit GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError) GetFlaggedPostsForChannel(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError) GetEtag(channelId string, allowFromCache bool) string Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError) ClearCaches() InvalidateLastPostTimeCache(channelId string) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError) Overwrite(post *model.Post) (*model.Post, *model.AppError) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) GetOldest() (*model.Post, *model.AppError) GetMaxPostSize() int GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, isOrSearch, includeDeletedChannels bool, page, perPage int) (*model.PostSearchResults, *model.AppError) GetOldestEntityCreationTime() (int64, *model.AppError) }
type PreferenceStore ¶
type PreferenceStore interface { Save(preferences *model.Preferences) *model.AppError GetCategory(userId string, category string) (model.Preferences, *model.AppError) Get(userId string, category string, name string) (*model.Preference, *model.AppError) GetAll(userId string) (model.Preferences, *model.AppError) Delete(userId, category, name string) *model.AppError DeleteCategory(userId string, category string) *model.AppError DeleteCategoryAndName(category string, name string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError CleanupFlagsBatch(limit int64) (int64, *model.AppError) }
type ReactionStore ¶
type ReactionStore interface { Save(reaction *model.Reaction) (*model.Reaction, error) Delete(reaction *model.Reaction) (*model.Reaction, error) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, error) DeleteAllWithEmojiName(emojiName string) error PermanentDeleteBatch(endTime int64, limit int64) (int64, error) BulkGetForPosts(postIds []string) ([]*model.Reaction, error) }
type RelationalIntegrityCheckData ¶
type RelationalIntegrityCheckData struct { ParentName string ChildName string ParentIdAttr string ChildIdAttr string Records []OrphanedRecord }
type RoleStore ¶
type RoleStore interface { Save(role *model.Role) (*model.Role, *model.AppError) Get(roleId string) (*model.Role, *model.AppError) GetAll() ([]*model.Role, *model.AppError) GetByName(name string) (*model.Role, *model.AppError) GetByNames(names []string) ([]*model.Role, *model.AppError) Delete(roleId string) (*model.Role, *model.AppError) PermanentDeleteAll() *model.AppError // HigherScopedPermissions retrieves the higher-scoped permissions of a list of role names. The higher-scope // (either team scheme or system scheme) is determined based on whether the team has a scheme or not. ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError) // AllChannelSchemeRoles returns all of the roles associated to channel schemes. AllChannelSchemeRoles() ([]*model.Role, *model.AppError) // ChannelRolesUnderTeamRole returns all of the non-deleted roles that are affected by updates to the // given role. ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, *model.AppError) }
type SchemeStore ¶
type SchemeStore interface { Save(scheme *model.Scheme) (*model.Scheme, error) Get(schemeId string) (*model.Scheme, error) GetByName(schemeName string) (*model.Scheme, error) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, error) Delete(schemeId string) (*model.Scheme, error) PermanentDeleteAll() error CountByScope(scope string) (int64, error) CountWithoutPermission(scope, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, error) }
type SessionStore ¶
type SessionStore interface { Get(sessionIdOrToken string) (*model.Session, error) Save(session *model.Session) (*model.Session, error) GetSessions(userId string) ([]*model.Session, error) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, error) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error) UpdateExpiredNotify(sessionid string, notified bool) error Remove(sessionIdOrToken string) error RemoveAllSessions() error PermanentDeleteSessionsByUser(teamId string) error UpdateExpiresAt(sessionId string, time int64) error UpdateLastActivityAt(sessionId string, time int64) error UpdateRoles(userId string, roles string) (string, error) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, error) UpdateProps(session *model.Session) error AnalyticsSessionCount() (int64, error) Cleanup(expiryTime int64, batchSize int64) }
type StatusStore ¶
type StatusStore interface { SaveOrUpdate(status *model.Status) *model.AppError Get(userId string) (*model.Status, *model.AppError) GetByIds(userIds []string) ([]*model.Status, *model.AppError) ResetAll() *model.AppError GetTotalActiveUsersCount() (int64, *model.AppError) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError }
type Store ¶
type Store interface { Team() TeamStore Channel() ChannelStore Post() PostStore User() UserStore Bot() BotStore Audit() AuditStore ClusterDiscovery() ClusterDiscoveryStore Compliance() ComplianceStore Session() SessionStore OAuth() OAuthStore System() SystemStore Webhook() WebhookStore Command() CommandStore CommandWebhook() CommandWebhookStore Preference() PreferenceStore License() LicenseStore Token() TokenStore Emoji() EmojiStore Status() StatusStore FileInfo() FileInfoStore Reaction() ReactionStore Role() RoleStore Scheme() SchemeStore Job() JobStore UserAccessToken() UserAccessTokenStore ChannelMemberHistory() ChannelMemberHistoryStore Plugin() PluginStore TermsOfService() TermsOfServiceStore Group() GroupStore UserTermsOfService() UserTermsOfServiceStore LinkMetadata() LinkMetadataStore MarkSystemRanUnitTests() Close() LockToMaster() UnlockFromMaster() DropAllTables() RecycleDBConnections(d time.Duration) GetCurrentSchemaVersion() string GetDbVersion() (string, error) TotalMasterDbConnections() int TotalReadDbConnections() int TotalSearchDbConnections() int CheckIntegrity() <-chan IntegrityCheckResult SetContext(context context.Context) Context() context.Context }
type StoreResult ¶
type SystemStore ¶
type SystemStore interface { Save(system *model.System) *model.AppError SaveOrUpdate(system *model.System) *model.AppError Update(system *model.System) *model.AppError Get() (model.StringMap, *model.AppError) GetByName(name string) (*model.System, *model.AppError) PermanentDeleteByName(name string) (*model.System, *model.AppError) InsertIfExists(system *model.System) (*model.System, *model.AppError) }
type TeamStore ¶
type TeamStore interface { Save(team *model.Team) (*model.Team, *model.AppError) Update(team *model.Team) (*model.Team, *model.AppError) Get(id string) (*model.Team, *model.AppError) GetByName(name string) (*model.Team, *model.AppError) GetByNames(name []string) ([]*model.Team, *model.AppError) SearchAll(term string) ([]*model.Team, *model.AppError) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError) SearchOpen(term string) ([]*model.Team, *model.AppError) SearchPrivate(term string) ([]*model.Team, *model.AppError) GetAll() ([]*model.Team, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetAllTeamListing() ([]*model.Team, *model.AppError) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError) GetByInviteId(inviteId string) (*model.Team, *model.AppError) PermanentDelete(teamId string) *model.AppError AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError) AnalyticsPublicTeamCount() (int64, *model.AppError) AnalyticsPrivateTeamCount() (int64, *model.AppError) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError) GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError) GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError) GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError) GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError) RemoveMember(teamId string, userId string) *model.AppError RemoveMembers(teamId string, userIds []string) *model.AppError RemoveAllMembersByTeam(teamId string) *model.AppError RemoveAllMembersByUser(userId string) *model.AppError UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError) ResetAllTeamSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError) InvalidateAllTeamIdsForUser(userId string) ClearCaches() // UpdateMembersRole sets all of the given team members to admins and all of the other members of the team to // non-admin members. UpdateMembersRole(teamID string, userIDs []string) *model.AppError // GroupSyncedTeamCount returns the count of non-deleted group-constrained teams. GroupSyncedTeamCount() (int64, *model.AppError) }
type TermsOfServiceStore ¶
type TermsOfServiceStore interface { Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error) GetLatest(allowFromCache bool) (*model.TermsOfService, error) Get(id string, allowFromCache bool) (*model.TermsOfService, error) }
type TimerLayer ¶
type TimerLayer struct { Store Metrics einterfaces.MetricsInterface AuditStore AuditStore BotStore BotStore ChannelStore ChannelStore ChannelMemberHistoryStore ChannelMemberHistoryStore ClusterDiscoveryStore ClusterDiscoveryStore CommandStore CommandStore CommandWebhookStore CommandWebhookStore ComplianceStore ComplianceStore EmojiStore EmojiStore FileInfoStore FileInfoStore GroupStore GroupStore JobStore JobStore LicenseStore LicenseStore LinkMetadataStore LinkMetadataStore OAuthStore OAuthStore PluginStore PluginStore PostStore PostStore PreferenceStore PreferenceStore ReactionStore ReactionStore RoleStore RoleStore SchemeStore SchemeStore SessionStore SessionStore StatusStore StatusStore SystemStore SystemStore TeamStore TeamStore TermsOfServiceStore TermsOfServiceStore TokenStore TokenStore UserStore UserStore UserAccessTokenStore UserAccessTokenStore UserTermsOfServiceStore UserTermsOfServiceStore WebhookStore WebhookStore }
func NewTimerLayer ¶
func NewTimerLayer(childStore Store, metrics einterfaces.MetricsInterface) *TimerLayer
func (*TimerLayer) Audit ¶
func (s *TimerLayer) Audit() AuditStore
func (*TimerLayer) Bot ¶
func (s *TimerLayer) Bot() BotStore
func (*TimerLayer) Channel ¶
func (s *TimerLayer) Channel() ChannelStore
func (*TimerLayer) ChannelMemberHistory ¶
func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore
func (*TimerLayer) Close ¶
func (s *TimerLayer) Close()
func (*TimerLayer) ClusterDiscovery ¶
func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
func (*TimerLayer) Command ¶
func (s *TimerLayer) Command() CommandStore
func (*TimerLayer) CommandWebhook ¶
func (s *TimerLayer) CommandWebhook() CommandWebhookStore
func (*TimerLayer) Compliance ¶
func (s *TimerLayer) Compliance() ComplianceStore
func (*TimerLayer) DropAllTables ¶
func (s *TimerLayer) DropAllTables()
func (*TimerLayer) Emoji ¶
func (s *TimerLayer) Emoji() EmojiStore
func (*TimerLayer) FileInfo ¶
func (s *TimerLayer) FileInfo() FileInfoStore
func (*TimerLayer) GetCurrentSchemaVersion ¶
func (s *TimerLayer) GetCurrentSchemaVersion() string
func (*TimerLayer) Group ¶
func (s *TimerLayer) Group() GroupStore
func (*TimerLayer) Job ¶
func (s *TimerLayer) Job() JobStore
func (*TimerLayer) License ¶
func (s *TimerLayer) License() LicenseStore
func (*TimerLayer) LinkMetadata ¶
func (s *TimerLayer) LinkMetadata() LinkMetadataStore
func (*TimerLayer) LockToMaster ¶
func (s *TimerLayer) LockToMaster()
func (*TimerLayer) MarkSystemRanUnitTests ¶
func (s *TimerLayer) MarkSystemRanUnitTests()
func (*TimerLayer) OAuth ¶
func (s *TimerLayer) OAuth() OAuthStore
func (*TimerLayer) Plugin ¶
func (s *TimerLayer) Plugin() PluginStore
func (*TimerLayer) Post ¶
func (s *TimerLayer) Post() PostStore
func (*TimerLayer) Preference ¶
func (s *TimerLayer) Preference() PreferenceStore
func (*TimerLayer) Reaction ¶
func (s *TimerLayer) Reaction() ReactionStore
func (*TimerLayer) Role ¶
func (s *TimerLayer) Role() RoleStore
func (*TimerLayer) Scheme ¶
func (s *TimerLayer) Scheme() SchemeStore
func (*TimerLayer) Session ¶
func (s *TimerLayer) Session() SessionStore
func (*TimerLayer) SetContext ¶ added in v5.22.0
func (s *TimerLayer) SetContext(context context.Context)
func (*TimerLayer) Status ¶
func (s *TimerLayer) Status() StatusStore
func (*TimerLayer) System ¶
func (s *TimerLayer) System() SystemStore
func (*TimerLayer) Team ¶
func (s *TimerLayer) Team() TeamStore
func (*TimerLayer) TermsOfService ¶
func (s *TimerLayer) TermsOfService() TermsOfServiceStore
func (*TimerLayer) Token ¶
func (s *TimerLayer) Token() TokenStore
func (*TimerLayer) TotalMasterDbConnections ¶
func (s *TimerLayer) TotalMasterDbConnections() int
func (*TimerLayer) TotalReadDbConnections ¶
func (s *TimerLayer) TotalReadDbConnections() int
func (*TimerLayer) TotalSearchDbConnections ¶
func (s *TimerLayer) TotalSearchDbConnections() int
func (*TimerLayer) UnlockFromMaster ¶
func (s *TimerLayer) UnlockFromMaster()
func (*TimerLayer) User ¶
func (s *TimerLayer) User() UserStore
func (*TimerLayer) UserAccessToken ¶
func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
func (*TimerLayer) UserTermsOfService ¶
func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
func (*TimerLayer) Webhook ¶
func (s *TimerLayer) Webhook() WebhookStore
type TimerLayerAuditStore ¶
type TimerLayerAuditStore struct { AuditStore Root *TimerLayer }
func (*TimerLayerAuditStore) PermanentDeleteByUser ¶
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) error
type TimerLayerBotStore ¶
type TimerLayerBotStore struct { BotStore Root *TimerLayer }
func (*TimerLayerBotStore) GetAll ¶
func (s *TimerLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)
func (*TimerLayerBotStore) PermanentDelete ¶
func (s *TimerLayerBotStore) PermanentDelete(userId string) error
type TimerLayerChannelMemberHistoryStore ¶
type TimerLayerChannelMemberHistoryStore struct { ChannelMemberHistoryStore Root *TimerLayer }
func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring ¶
func (s *TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, error)
func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent ¶
func (s *TimerLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) error
func (*TimerLayerChannelMemberHistoryStore) LogLeaveEvent ¶
func (s *TimerLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) error
func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch ¶
func (s *TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
type TimerLayerChannelStore ¶
type TimerLayerChannelStore struct { ChannelStore Root *TimerLayer }
func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount ¶
func (*TimerLayerChannelStore) AnalyticsTypeCount ¶
func (*TimerLayerChannelStore) AutocompleteInTeam ¶
func (s *TimerLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) AutocompleteInTeamForSearch ¶
func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerChannelStore) ClearCaches ¶
func (s *TimerLayerChannelStore) ClearCaches()
func (*TimerLayerChannelStore) ClearSidebarOnTeamLeave ¶ added in v5.26.0
func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) *model.AppError
func (*TimerLayerChannelStore) CountPostsAfter ¶ added in v5.20.0
func (*TimerLayerChannelStore) CreateDirectChannel ¶
func (*TimerLayerChannelStore) CreateInitialSidebarCategories ¶ added in v5.26.0
func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, teamId string) error
func (*TimerLayerChannelStore) CreateSidebarCategory ¶ added in v5.26.0
func (s *TimerLayerChannelStore) CreateSidebarCategory(userId string, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError)
func (*TimerLayerChannelStore) Delete ¶
func (s *TimerLayerChannelStore) Delete(channelId string, time int64) error
func (*TimerLayerChannelStore) DeleteSidebarCategory ¶ added in v5.26.0
func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryId string) *model.AppError
func (*TimerLayerChannelStore) DeleteSidebarChannelsByPreferences ¶ added in v5.26.0
func (s *TimerLayerChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*TimerLayerChannelStore) GetAllChannelMembersForUser ¶
func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶
func (*TimerLayerChannelStore) GetAllChannels ¶
func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
func (*TimerLayerChannelStore) GetAllChannelsCount ¶
func (s *TimerLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, error)
func (*TimerLayerChannelStore) GetAllChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
func (*TimerLayerChannelStore) GetByNameIncludeDeleted ¶
func (*TimerLayerChannelStore) GetByNames ¶
func (*TimerLayerChannelStore) GetChannelCounts ¶
func (s *TimerLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
func (*TimerLayerChannelStore) GetChannelMembersForExport ¶
func (s *TimerLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
func (*TimerLayerChannelStore) GetChannelMembersTimezones ¶
func (*TimerLayerChannelStore) GetChannelUnread ¶
func (s *TimerLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
func (*TimerLayerChannelStore) GetChannels ¶
func (s *TimerLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetChannelsBatchForIndexing ¶
func (*TimerLayerChannelStore) GetChannelsByIds ¶
func (*TimerLayerChannelStore) GetChannelsByScheme ¶
func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetDeleted ¶
func (s *TimerLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetDeletedByName ¶
func (*TimerLayerChannelStore) GetForPost ¶
func (*TimerLayerChannelStore) GetFromMaster ¶
func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
func (*TimerLayerChannelStore) GetGuestCount ¶
func (*TimerLayerChannelStore) GetMember ¶
func (s *TimerLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) GetMemberCount ¶
func (*TimerLayerChannelStore) GetMemberCountFromCache ¶
func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelId string) int64
func (*TimerLayerChannelStore) GetMemberCountsByGroup ¶ added in v5.24.0
func (s *TimerLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)
func (*TimerLayerChannelStore) GetMemberForPost ¶
func (s *TimerLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) GetMembers ¶
func (s *TimerLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersByIds ¶
func (s *TimerLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersForUser ¶
func (s *TimerLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersForUserWithPagination ¶
func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMoreChannels ¶
func (s *TimerLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetPinnedPostCount ¶
func (*TimerLayerChannelStore) GetPinnedPosts ¶
func (*TimerLayerChannelStore) GetPrivateChannelsForTeam ¶ added in v5.26.0
func (s *TimerLayerChannelStore) GetPrivateChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetPublicChannelsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetSidebarCategories ¶ added in v5.26.0
func (s *TimerLayerChannelStore) GetSidebarCategories(userId string, teamId string) (*model.OrderedSidebarCategories, *model.AppError)
func (*TimerLayerChannelStore) GetSidebarCategory ¶ added in v5.26.0
func (s *TimerLayerChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError)
func (*TimerLayerChannelStore) GetSidebarCategoryOrder ¶ added in v5.26.0
func (*TimerLayerChannelStore) GetTeamChannels ¶
func (s *TimerLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GroupSyncedChannelCount ¶ added in v5.22.0
func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)
func (*TimerLayerChannelStore) IncrementMentionCount ¶
func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
func (*TimerLayerChannelStore) InvalidateAllChannelMembersForUser ¶
func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)
func (*TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps ¶
func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
func (*TimerLayerChannelStore) InvalidateChannel ¶
func (s *TimerLayerChannelStore) InvalidateChannel(id string)
func (*TimerLayerChannelStore) InvalidateChannelByName ¶
func (s *TimerLayerChannelStore) InvalidateChannelByName(teamId string, name string)
func (*TimerLayerChannelStore) InvalidateGuestCount ¶
func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)
func (*TimerLayerChannelStore) InvalidateMemberCount ¶
func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)
func (*TimerLayerChannelStore) InvalidatePinnedPostCount ¶
func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)
func (*TimerLayerChannelStore) IsUserInChannelUseCache ¶
func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
func (*TimerLayerChannelStore) MigrateChannelMembers ¶
func (*TimerLayerChannelStore) MigratePublicChannels ¶
func (s *TimerLayerChannelStore) MigratePublicChannels() error
func (*TimerLayerChannelStore) PermanentDelete ¶
func (s *TimerLayerChannelStore) PermanentDelete(channelId string) error
func (*TimerLayerChannelStore) PermanentDeleteByTeam ¶
func (s *TimerLayerChannelStore) PermanentDeleteByTeam(teamId string) error
func (*TimerLayerChannelStore) PermanentDeleteMembersByChannel ¶
func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
func (*TimerLayerChannelStore) PermanentDeleteMembersByUser ¶
func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers ¶
func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
func (*TimerLayerChannelStore) RemoveMember ¶
func (s *TimerLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
func (*TimerLayerChannelStore) RemoveMembers ¶ added in v5.24.0
func (s *TimerLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError
func (*TimerLayerChannelStore) ResetAllChannelSchemes ¶
func (s *TimerLayerChannelStore) ResetAllChannelSchemes() *model.AppError
func (*TimerLayerChannelStore) Restore ¶
func (s *TimerLayerChannelStore) Restore(channelId string, time int64) error
func (*TimerLayerChannelStore) SaveDirectChannel ¶
func (s *TimerLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)
func (*TimerLayerChannelStore) SaveMember ¶
func (s *TimerLayerChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) SaveMultipleMembers ¶ added in v5.24.0
func (s *TimerLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) SearchAllChannels ¶
func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
func (*TimerLayerChannelStore) SearchArchivedInTeam ¶ added in v5.20.0
func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchForUserInTeam ¶
func (s *TimerLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchGroupChannels ¶
func (s *TimerLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchInTeam ¶
func (s *TimerLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchMore ¶
func (s *TimerLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SetDeleteAt ¶
func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) error
func (*TimerLayerChannelStore) UpdateLastViewedAt ¶
func (*TimerLayerChannelStore) UpdateLastViewedAtPost ¶ added in v5.20.0
func (s *TimerLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
func (*TimerLayerChannelStore) UpdateMember ¶
func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) UpdateMembersRole ¶ added in v5.20.0
func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError
func (*TimerLayerChannelStore) UpdateMultipleMembers ¶ added in v5.24.0
func (s *TimerLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) UpdateSidebarCategories ¶ added in v5.26.0
func (s *TimerLayerChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)
func (*TimerLayerChannelStore) UpdateSidebarCategoryOrder ¶ added in v5.26.0
func (*TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove ¶ added in v5.26.0
func (*TimerLayerChannelStore) UpdateSidebarChannelsByPreferences ¶ added in v5.26.0
func (s *TimerLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*TimerLayerChannelStore) UserBelongsToChannels ¶
type TimerLayerClusterDiscoveryStore ¶
type TimerLayerClusterDiscoveryStore struct { ClusterDiscoveryStore Root *TimerLayer }
func (*TimerLayerClusterDiscoveryStore) Cleanup ¶
func (s *TimerLayerClusterDiscoveryStore) Cleanup() error
func (*TimerLayerClusterDiscoveryStore) Delete ¶
func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, error)
func (*TimerLayerClusterDiscoveryStore) Exists ¶
func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, error)
func (*TimerLayerClusterDiscoveryStore) GetAll ¶
func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, error)
func (*TimerLayerClusterDiscoveryStore) Save ¶
func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) error
func (*TimerLayerClusterDiscoveryStore) SetLastPingAt ¶
func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error
type TimerLayerCommandStore ¶
type TimerLayerCommandStore struct { CommandStore Root *TimerLayer }
func (*TimerLayerCommandStore) AnalyticsCommandCount ¶
func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, error)
func (*TimerLayerCommandStore) Delete ¶
func (s *TimerLayerCommandStore) Delete(commandId string, time int64) error
func (*TimerLayerCommandStore) Get ¶
func (s *TimerLayerCommandStore) Get(id string) (*model.Command, error)
func (*TimerLayerCommandStore) GetByTeam ¶
func (s *TimerLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, error)
func (*TimerLayerCommandStore) GetByTrigger ¶
func (*TimerLayerCommandStore) PermanentDeleteByTeam ¶
func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) error
func (*TimerLayerCommandStore) PermanentDeleteByUser ¶
func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) error
type TimerLayerCommandWebhookStore ¶
type TimerLayerCommandWebhookStore struct { CommandWebhookStore Root *TimerLayer }
func (*TimerLayerCommandWebhookStore) Cleanup ¶
func (s *TimerLayerCommandWebhookStore) Cleanup()
func (*TimerLayerCommandWebhookStore) Get ¶
func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
func (*TimerLayerCommandWebhookStore) Save ¶
func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
type TimerLayerComplianceStore ¶
type TimerLayerComplianceStore struct { ComplianceStore Root *TimerLayer }
func (*TimerLayerComplianceStore) ComplianceExport ¶
func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (*TimerLayerComplianceStore) Get ¶
func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) GetAll ¶
func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
func (*TimerLayerComplianceStore) MessageExport ¶
func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (*TimerLayerComplianceStore) Save ¶
func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) Update ¶
func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type TimerLayerEmojiStore ¶
type TimerLayerEmojiStore struct { EmojiStore Root *TimerLayer }
func (*TimerLayerEmojiStore) Delete ¶
func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) error
func (*TimerLayerEmojiStore) GetMultipleByName ¶
func (s *TimerLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, error)
type TimerLayerFileInfoStore ¶
type TimerLayerFileInfoStore struct { FileInfoStore Root *TimerLayer }
func (*TimerLayerFileInfoStore) AttachToPost ¶
func (*TimerLayerFileInfoStore) ClearCaches ¶
func (s *TimerLayerFileInfoStore) ClearCaches()
func (*TimerLayerFileInfoStore) DeleteForPost ¶
func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (*TimerLayerFileInfoStore) GetForPost ¶
func (*TimerLayerFileInfoStore) GetForUser ¶
func (*TimerLayerFileInfoStore) GetWithOptions ¶ added in v5.22.0
func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache ¶
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
func (*TimerLayerFileInfoStore) PermanentDelete ¶
func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (*TimerLayerFileInfoStore) PermanentDeleteBatch ¶
func (*TimerLayerFileInfoStore) PermanentDeleteByUser ¶
func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type TimerLayerGroupStore ¶
type TimerLayerGroupStore struct { GroupStore Root *TimerLayer }
func (*TimerLayerGroupStore) AdminRoleGroupsForSyncableMember ¶ added in v5.20.0
func (s *TimerLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*TimerLayerGroupStore) ChannelMembersToAdd ¶
func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)
func (*TimerLayerGroupStore) ChannelMembersToRemove ¶
func (s *TimerLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)
func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers ¶
func (*TimerLayerGroupStore) CountGroupsByChannel ¶
func (s *TimerLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*TimerLayerGroupStore) CountGroupsByTeam ¶
func (s *TimerLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers ¶
func (*TimerLayerGroupStore) CreateGroupSyncable ¶
func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) DeleteGroupSyncable ¶
func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) DeleteMember ¶
func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
func (*TimerLayerGroupStore) DistinctGroupMemberCount ¶ added in v5.22.0
func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)
func (*TimerLayerGroupStore) GetAllBySource ¶
func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId ¶
func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) GetByName ¶
func (s *TimerLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetByRemoteID ¶
func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetGroupSyncable ¶
func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) GetGroups ¶
func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam ¶ added in v5.24.0
func (s *TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)
func (*TimerLayerGroupStore) GetGroupsByChannel ¶
func (s *TimerLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
func (*TimerLayerGroupStore) GetGroupsByTeam ¶
func (s *TimerLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
func (*TimerLayerGroupStore) GetMemberCount ¶
func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
func (*TimerLayerGroupStore) GetMemberUsers ¶
func (*TimerLayerGroupStore) GetMemberUsersInTeam ¶ added in v5.24.0
func (*TimerLayerGroupStore) GetMemberUsersNotInChannel ¶ added in v5.24.0
func (*TimerLayerGroupStore) GetMemberUsersPage ¶
func (*TimerLayerGroupStore) GroupChannelCount ¶ added in v5.22.0
func (s *TimerLayerGroupStore) GroupChannelCount() (int64, *model.AppError)
func (*TimerLayerGroupStore) GroupCount ¶ added in v5.22.0
func (s *TimerLayerGroupStore) GroupCount() (int64, *model.AppError)
func (*TimerLayerGroupStore) GroupCountWithAllowReference ¶ added in v5.24.0
func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)
func (*TimerLayerGroupStore) GroupMemberCount ¶ added in v5.22.0
func (s *TimerLayerGroupStore) GroupMemberCount() (int64, *model.AppError)
func (*TimerLayerGroupStore) GroupTeamCount ¶ added in v5.22.0
func (s *TimerLayerGroupStore) GroupTeamCount() (int64, *model.AppError)
func (*TimerLayerGroupStore) PermanentDeleteMembersByUser ¶ added in v5.20.0
func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*TimerLayerGroupStore) PermittedSyncableAdmins ¶ added in v5.20.0
func (s *TimerLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)
func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*TimerLayerGroupStore) TeamMembersToAdd ¶
func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)
func (*TimerLayerGroupStore) TeamMembersToRemove ¶
func (s *TimerLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerGroupStore) UpdateGroupSyncable ¶
func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) UpsertMember ¶
func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
type TimerLayerJobStore ¶
type TimerLayerJobStore struct { JobStore Root *TimerLayer }
func (*TimerLayerJobStore) Delete ¶
func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
func (*TimerLayerJobStore) GetAllByStatus ¶
func (*TimerLayerJobStore) GetAllByType ¶
func (*TimerLayerJobStore) GetAllByTypePage ¶
func (*TimerLayerJobStore) GetAllPage ¶
func (*TimerLayerJobStore) GetCountByStatusAndType ¶
func (*TimerLayerJobStore) GetNewestJobByStatusAndType ¶
func (*TimerLayerJobStore) GetNewestJobByStatusesAndType ¶ added in v5.27.0
func (*TimerLayerJobStore) UpdateOptimistically ¶
func (*TimerLayerJobStore) UpdateStatus ¶
func (*TimerLayerJobStore) UpdateStatusOptimistically ¶
type TimerLayerLicenseStore ¶
type TimerLayerLicenseStore struct { LicenseStore Root *TimerLayer }
func (*TimerLayerLicenseStore) Get ¶
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, error)
func (*TimerLayerLicenseStore) Save ¶
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error)
type TimerLayerLinkMetadataStore ¶
type TimerLayerLinkMetadataStore struct { LinkMetadataStore Root *TimerLayer }
func (*TimerLayerLinkMetadataStore) Get ¶
func (s *TimerLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error)
func (*TimerLayerLinkMetadataStore) Save ¶
func (s *TimerLayerLinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, error)
type TimerLayerOAuthStore ¶
type TimerLayerOAuthStore struct { OAuthStore Root *TimerLayer }
func (*TimerLayerOAuthStore) DeleteApp ¶
func (s *TimerLayerOAuthStore) DeleteApp(id string) error
func (*TimerLayerOAuthStore) GetAccessData ¶
func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, error)
func (*TimerLayerOAuthStore) GetAccessDataByRefreshToken ¶
func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)
func (*TimerLayerOAuthStore) GetAccessDataByUserForApp ¶
func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, error)
func (*TimerLayerOAuthStore) GetApp ¶
func (s *TimerLayerOAuthStore) GetApp(id string) (*model.OAuthApp, error)
func (*TimerLayerOAuthStore) GetAppByUser ¶
func (*TimerLayerOAuthStore) GetAuthData ¶
func (s *TimerLayerOAuthStore) GetAuthData(code string) (*model.AuthData, error)
func (*TimerLayerOAuthStore) GetAuthorizedApps ¶
func (*TimerLayerOAuthStore) GetPreviousAccessData ¶
func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, error)
func (*TimerLayerOAuthStore) PermanentDeleteAuthDataByUser ¶
func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) error
func (*TimerLayerOAuthStore) RemoveAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAccessData(token string) error
func (*TimerLayerOAuthStore) RemoveAllAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAllAccessData() error
func (*TimerLayerOAuthStore) RemoveAuthData ¶
func (s *TimerLayerOAuthStore) RemoveAuthData(code string) error
func (*TimerLayerOAuthStore) SaveAccessData ¶
func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)
func (*TimerLayerOAuthStore) SaveAuthData ¶
func (*TimerLayerOAuthStore) UpdateAccessData ¶
func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, error)
type TimerLayerPluginStore ¶
type TimerLayerPluginStore struct { PluginStore Root *TimerLayer }
func (*TimerLayerPluginStore) CompareAndDelete ¶ added in v5.22.0
func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*TimerLayerPluginStore) CompareAndSet ¶
func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*TimerLayerPluginStore) Delete ¶
func (s *TimerLayerPluginStore) Delete(pluginId string, key string) *model.AppError
func (*TimerLayerPluginStore) DeleteAllExpired ¶
func (s *TimerLayerPluginStore) DeleteAllExpired() *model.AppError
func (*TimerLayerPluginStore) DeleteAllForPlugin ¶
func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
func (*TimerLayerPluginStore) Get ¶
func (s *TimerLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
func (*TimerLayerPluginStore) SaveOrUpdate ¶
func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
func (*TimerLayerPluginStore) SetWithOptions ¶ added in v5.20.0
func (s *TimerLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
type TimerLayerPostStore ¶
type TimerLayerPostStore struct { PostStore Root *TimerLayer }
func (*TimerLayerPostStore) AnalyticsPostCount ¶
func (*TimerLayerPostStore) AnalyticsPostCountsByDay ¶
func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay ¶
func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
func (*TimerLayerPostStore) ClearCaches ¶
func (s *TimerLayerPostStore) ClearCaches()
func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
func (*TimerLayerPostStore) GetEtag ¶
func (s *TimerLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
func (*TimerLayerPostStore) GetFlaggedPosts ¶
func (*TimerLayerPostStore) GetFlaggedPostsForChannel ¶
func (*TimerLayerPostStore) GetFlaggedPostsForTeam ¶
func (*TimerLayerPostStore) GetMaxPostSize ¶
func (s *TimerLayerPostStore) GetMaxPostSize() int
func (*TimerLayerPostStore) GetOldest ¶
func (s *TimerLayerPostStore) GetOldest() (*model.Post, *model.AppError)
func (*TimerLayerPostStore) GetOldestEntityCreationTime ¶ added in v5.26.0
func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, *model.AppError)
func (*TimerLayerPostStore) GetParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
func (*TimerLayerPostStore) GetPostAfterTime ¶
func (*TimerLayerPostStore) GetPostIdAfterTime ¶
func (*TimerLayerPostStore) GetPostIdBeforeTime ¶
func (*TimerLayerPostStore) GetPosts ¶
func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsAfter ¶
func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsBatchForIndexing ¶
func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
func (*TimerLayerPostStore) GetPostsBefore ¶
func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsByIds ¶
func (*TimerLayerPostStore) GetPostsCreatedAt ¶
func (*TimerLayerPostStore) GetPostsSince ¶
func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetRepliesForExport ¶
func (s *TimerLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
func (*TimerLayerPostStore) InvalidateLastPostTimeCache ¶
func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)
func (*TimerLayerPostStore) OverwriteMultiple ¶ added in v5.24.0
func (*TimerLayerPostStore) PermanentDeleteBatch ¶
func (*TimerLayerPostStore) PermanentDeleteByChannel ¶
func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
func (*TimerLayerPostStore) PermanentDeleteByUser ¶
func (s *TimerLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
func (*TimerLayerPostStore) SaveMultiple ¶ added in v5.22.0
func (*TimerLayerPostStore) Search ¶
func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) SearchPostsInTeamForUser ¶ added in v5.22.0
func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool, page int, perPage int) (*model.PostSearchResults, *model.AppError)
type TimerLayerPreferenceStore ¶
type TimerLayerPreferenceStore struct { PreferenceStore Root *TimerLayer }
func (*TimerLayerPreferenceStore) CleanupFlagsBatch ¶
func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (*TimerLayerPreferenceStore) DeleteCategory ¶
func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (*TimerLayerPreferenceStore) DeleteCategoryAndName ¶
func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (*TimerLayerPreferenceStore) Get ¶
func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (*TimerLayerPreferenceStore) GetAll ¶
func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) GetCategory ¶
func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) PermanentDeleteByUser ¶
func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (*TimerLayerPreferenceStore) Save ¶
func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type TimerLayerReactionStore ¶
type TimerLayerReactionStore struct { ReactionStore Root *TimerLayer }
func (*TimerLayerReactionStore) BulkGetForPosts ¶
func (s *TimerLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, error)
func (*TimerLayerReactionStore) DeleteAllWithEmojiName ¶
func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) error
func (*TimerLayerReactionStore) GetForPost ¶
func (*TimerLayerReactionStore) PermanentDeleteBatch ¶
func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
type TimerLayerRoleStore ¶
type TimerLayerRoleStore struct { RoleStore Root *TimerLayer }
func (*TimerLayerRoleStore) AllChannelSchemeRoles ¶ added in v5.22.0
func (s *TimerLayerRoleStore) AllChannelSchemeRoles() ([]*model.Role, *model.AppError)
func (*TimerLayerRoleStore) ChannelHigherScopedPermissions ¶ added in v5.22.0
func (s *TimerLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
func (*TimerLayerRoleStore) ChannelRolesUnderTeamRole ¶ added in v5.22.0
func (*TimerLayerRoleStore) GetAll ¶
func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
func (*TimerLayerRoleStore) GetByNames ¶
func (*TimerLayerRoleStore) PermanentDeleteAll ¶
func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
type TimerLayerSchemeStore ¶
type TimerLayerSchemeStore struct { SchemeStore Root *TimerLayer }
func (*TimerLayerSchemeStore) CountByScope ¶ added in v5.24.0
func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, error)
func (*TimerLayerSchemeStore) CountWithoutPermission ¶ added in v5.24.0
func (*TimerLayerSchemeStore) Delete ¶
func (s *TimerLayerSchemeStore) Delete(schemeId string) (*model.Scheme, error)
func (*TimerLayerSchemeStore) Get ¶
func (s *TimerLayerSchemeStore) Get(schemeId string) (*model.Scheme, error)
func (*TimerLayerSchemeStore) GetAllPage ¶
func (*TimerLayerSchemeStore) GetByName ¶
func (s *TimerLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, error)
func (*TimerLayerSchemeStore) PermanentDeleteAll ¶
func (s *TimerLayerSchemeStore) PermanentDeleteAll() error
type TimerLayerSessionStore ¶
type TimerLayerSessionStore struct { SessionStore Root *TimerLayer }
func (*TimerLayerSessionStore) AnalyticsSessionCount ¶
func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, error)
func (*TimerLayerSessionStore) Cleanup ¶
func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (*TimerLayerSessionStore) Get ¶
func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, error)
func (*TimerLayerSessionStore) GetSessions ¶
func (s *TimerLayerSessionStore) GetSessions(userId string) ([]*model.Session, error)
func (*TimerLayerSessionStore) GetSessionsExpired ¶ added in v5.26.0
func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds ¶
func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, error)
func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser ¶
func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) error
func (*TimerLayerSessionStore) Remove ¶
func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) error
func (*TimerLayerSessionStore) RemoveAllSessions ¶
func (s *TimerLayerSessionStore) RemoveAllSessions() error
func (*TimerLayerSessionStore) UpdateDeviceId ¶
func (*TimerLayerSessionStore) UpdateExpiredNotify ¶ added in v5.26.0
func (s *TimerLayerSessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
func (*TimerLayerSessionStore) UpdateExpiresAt ¶ added in v5.24.0
func (s *TimerLayerSessionStore) UpdateExpiresAt(sessionId string, time int64) error
func (*TimerLayerSessionStore) UpdateLastActivityAt ¶
func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) error
func (*TimerLayerSessionStore) UpdateProps ¶
func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) error
func (*TimerLayerSessionStore) UpdateRoles ¶
func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (string, error)
type TimerLayerStatusStore ¶
type TimerLayerStatusStore struct { StatusStore Root *TimerLayer }
func (*TimerLayerStatusStore) GetTotalActiveUsersCount ¶
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (*TimerLayerStatusStore) ResetAll ¶
func (s *TimerLayerStatusStore) ResetAll() *model.AppError
func (*TimerLayerStatusStore) SaveOrUpdate ¶
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (*TimerLayerStatusStore) UpdateLastActivityAt ¶
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
type TimerLayerSystemStore ¶
type TimerLayerSystemStore struct { SystemStore Root *TimerLayer }
func (*TimerLayerSystemStore) Get ¶
func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
func (*TimerLayerSystemStore) InsertIfExists ¶ added in v5.26.0
func (*TimerLayerSystemStore) PermanentDeleteByName ¶
func (*TimerLayerSystemStore) Save ¶
func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
func (*TimerLayerSystemStore) SaveOrUpdate ¶
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type TimerLayerTeamStore ¶
type TimerLayerTeamStore struct { TeamStore Root *TimerLayer }
func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme ¶
func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsPrivateTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsPublicTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerTeamStore) ClearCaches ¶
func (s *TimerLayerTeamStore) ClearCaches()
func (*TimerLayerTeamStore) GetActiveMemberCount ¶
func (s *TimerLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerTeamStore) GetAll ¶
func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllForExportAfter ¶
func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
func (*TimerLayerTeamStore) GetAllPage ¶
func (*TimerLayerTeamStore) GetAllPrivateTeamListing ¶
func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllPrivateTeamPageListing ¶
func (*TimerLayerTeamStore) GetAllPublicTeamPageListing ¶
func (*TimerLayerTeamStore) GetAllTeamListing ¶
func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllTeamPageListing ¶
func (*TimerLayerTeamStore) GetByInviteId ¶
func (*TimerLayerTeamStore) GetByNames ¶ added in v5.24.0
func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*TimerLayerTeamStore) GetChannelUnreadsForTeam ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*TimerLayerTeamStore) GetMember ¶
func (s *TimerLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetMembers ¶
func (s *TimerLayerTeamStore) GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetMembersByIds ¶
func (s *TimerLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTeamMembersForExport ¶
func (s *TimerLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
func (*TimerLayerTeamStore) GetTeamsByScheme ¶
func (*TimerLayerTeamStore) GetTeamsByUserId ¶
func (*TimerLayerTeamStore) GetTeamsForUser ¶
func (s *TimerLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTeamsForUserWithPagination ¶
func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTotalMemberCount ¶
func (s *TimerLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerTeamStore) GetUserTeamIds ¶
func (*TimerLayerTeamStore) GroupSyncedTeamCount ¶ added in v5.22.0
func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser ¶
func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
func (*TimerLayerTeamStore) MigrateTeamMembers ¶
func (*TimerLayerTeamStore) PermanentDelete ¶
func (s *TimerLayerTeamStore) PermanentDelete(teamId string) *model.AppError
func (*TimerLayerTeamStore) RemoveAllMembersByTeam ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
func (*TimerLayerTeamStore) RemoveAllMembersByUser ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
func (*TimerLayerTeamStore) RemoveMember ¶
func (s *TimerLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
func (*TimerLayerTeamStore) RemoveMembers ¶ added in v5.24.0
func (s *TimerLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError
func (*TimerLayerTeamStore) ResetAllTeamSchemes ¶
func (s *TimerLayerTeamStore) ResetAllTeamSchemes() *model.AppError
func (*TimerLayerTeamStore) SaveMember ¶
func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) SaveMultipleMembers ¶ added in v5.24.0
func (s *TimerLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) SearchAllPaged ¶ added in v5.20.0
func (*TimerLayerTeamStore) SearchOpen ¶
func (*TimerLayerTeamStore) SearchPrivate ¶
func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate ¶
func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
func (*TimerLayerTeamStore) UpdateMember ¶
func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) UpdateMembersRole ¶ added in v5.20.0
func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError
func (*TimerLayerTeamStore) UpdateMultipleMembers ¶ added in v5.24.0
func (s *TimerLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) UserBelongsToTeams ¶
type TimerLayerTermsOfServiceStore ¶
type TimerLayerTermsOfServiceStore struct { TermsOfServiceStore Root *TimerLayer }
func (*TimerLayerTermsOfServiceStore) Get ¶
func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error)
func (*TimerLayerTermsOfServiceStore) GetLatest ¶
func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, error)
func (*TimerLayerTermsOfServiceStore) Save ¶
func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, error)
type TimerLayerTokenStore ¶
type TimerLayerTokenStore struct { TokenStore Root *TimerLayer }
func (*TimerLayerTokenStore) Cleanup ¶
func (s *TimerLayerTokenStore) Cleanup()
func (*TimerLayerTokenStore) Delete ¶
func (s *TimerLayerTokenStore) Delete(token string) error
func (*TimerLayerTokenStore) GetByToken ¶
func (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, error)
func (*TimerLayerTokenStore) RemoveAllTokensByType ¶
func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) error
type TimerLayerUserAccessTokenStore ¶
type TimerLayerUserAccessTokenStore struct { UserAccessTokenStore Root *TimerLayer }
func (*TimerLayerUserAccessTokenStore) Delete ¶
func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) DeleteAllForUser ¶
func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) Get ¶
func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetAll ¶
func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByToken ¶
func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByUser ¶
func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Save ¶
func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Search ¶
func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type TimerLayerUserStore ¶
type TimerLayerUserStore struct { UserStore Root *TimerLayer }
func (*TimerLayerUserStore) AnalyticsActiveCount ¶
func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetGuestCount ¶ added in v5.24.0
func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount ¶
func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount ¶
func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
func (*TimerLayerUserStore) AutocompleteUsersInChannel ¶ added in v5.22.0
func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
func (*TimerLayerUserStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerUserStore) ClearCaches ¶
func (s *TimerLayerUserStore) ClearCaches()
func (*TimerLayerUserStore) Count ¶
func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) DeactivateGuests ¶ added in v5.20.0
func (s *TimerLayerUserStore) DeactivateGuests() ([]string, *model.AppError)
func (*TimerLayerUserStore) DemoteUserToGuest ¶
func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
func (*TimerLayerUserStore) GetAll ¶
func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllAfter ¶
func (*TimerLayerUserStore) GetAllNotInAuthService ¶ added in v5.24.0
func (*TimerLayerUserStore) GetAllProfiles ¶
func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllProfilesInChannel ¶
func (*TimerLayerUserStore) GetAllUsingAuthService ¶
func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel ¶
func (*TimerLayerUserStore) GetByEmail ¶
func (*TimerLayerUserStore) GetByUsername ¶
func (*TimerLayerUserStore) GetChannelGroupUsers ¶
func (*TimerLayerUserStore) GetEtagForAllProfiles ¶
func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
func (*TimerLayerUserStore) GetEtagForProfiles ¶
func (s *TimerLayerUserStore) GetEtagForProfiles(teamId string) string
func (*TimerLayerUserStore) GetEtagForProfilesNotInTeam ¶
func (s *TimerLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string
func (*TimerLayerUserStore) GetForLogin ¶
func (*TimerLayerUserStore) GetKnownUsers ¶ added in v5.23.0
func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)
func (*TimerLayerUserStore) GetNewUsersForTeam ¶
func (s *TimerLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser ¶
func (*TimerLayerUserStore) GetProfileByIds ¶
func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfiles ¶
func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesByUsernames ¶
func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesInChannel ¶
func (*TimerLayerUserStore) GetProfilesInChannelByStatus ¶
func (*TimerLayerUserStore) GetProfilesNotInChannel ¶
func (*TimerLayerUserStore) GetProfilesNotInTeam ¶
func (*TimerLayerUserStore) GetProfilesWithoutTeam ¶
func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam ¶
func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetSystemAdminProfiles ¶
func (*TimerLayerUserStore) GetTeamGroupUsers ¶
func (*TimerLayerUserStore) GetUnreadCount ¶
func (s *TimerLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
func (*TimerLayerUserStore) GetUnreadCountForChannel ¶
func (*TimerLayerUserStore) GetUsersBatchForIndexing ¶
func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (*TimerLayerUserStore) InferSystemInstallDate ¶
func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
func (*TimerLayerUserStore) InvalidateProfileCacheForUser ¶ added in v5.20.0
func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)
func (*TimerLayerUserStore) InvalidateProfilesInChannelCache ¶
func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
func (*TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser ¶
func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
func (*TimerLayerUserStore) PermanentDelete ¶
func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
func (*TimerLayerUserStore) PromoteGuestToUser ¶
func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
func (*TimerLayerUserStore) ResetLastPictureUpdate ¶
func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) Search ¶
func (s *TimerLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchInChannel ¶
func (s *TimerLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchInGroup ¶ added in v5.26.0
func (s *TimerLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchNotInChannel ¶
func (s *TimerLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchNotInTeam ¶
func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchWithoutTeam ¶
func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) Update ¶
func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
func (*TimerLayerUserStore) UpdateAuthData ¶
func (*TimerLayerUserStore) UpdateFailedPasswordAttempts ¶
func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
func (*TimerLayerUserStore) UpdateLastPictureUpdate ¶
func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) UpdateMfaActive ¶
func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
func (*TimerLayerUserStore) UpdateMfaSecret ¶
func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
func (*TimerLayerUserStore) UpdatePassword ¶
func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
func (*TimerLayerUserStore) UpdateUpdateAt ¶
func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
func (*TimerLayerUserStore) VerifyEmail ¶
type TimerLayerUserTermsOfServiceStore ¶
type TimerLayerUserTermsOfServiceStore struct { UserTermsOfServiceStore Root *TimerLayer }
func (*TimerLayerUserTermsOfServiceStore) Delete ¶
func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) error
func (*TimerLayerUserTermsOfServiceStore) GetByUser ¶
func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, error)
func (*TimerLayerUserTermsOfServiceStore) Save ¶
func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error)
type TimerLayerWebhookStore ¶
type TimerLayerWebhookStore struct { WebhookStore Root *TimerLayer }
func (*TimerLayerWebhookStore) AnalyticsIncomingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) AnalyticsOutgoingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) ClearCaches ¶
func (s *TimerLayerWebhookStore) ClearCaches()
func (*TimerLayerWebhookStore) DeleteIncoming ¶
func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) DeleteOutgoing ¶
func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) GetIncoming ¶
func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByChannel ¶
func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeam ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingList ¶
func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingListByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoing ¶
func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeam ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingList ¶
func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingListByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) InvalidateWebhookCache ¶
func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) SaveIncoming ¶
func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) SaveOutgoing ¶
func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateIncoming ¶
func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateOutgoing ¶
func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type TokenStore ¶
type UserAccessTokenStore ¶
type UserAccessTokenStore interface { Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError) DeleteAllForUser(userId string) *model.AppError Delete(tokenId string) *model.AppError Get(tokenId string) (*model.UserAccessToken, *model.AppError) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError) GetByUser(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError) Search(term string) ([]*model.UserAccessToken, *model.AppError) UpdateTokenEnable(tokenId string) *model.AppError UpdateTokenDisable(tokenId string) *model.AppError }
type UserGetByIdsOpts ¶
type UserGetByIdsOpts struct { // IsAdmin tracks whether or not the request is being made by an administrator. Does nothing when provided by a client. IsAdmin bool // Restrict to search in a list of teams and channels. Does nothing when provided by a client. ViewRestrictions *model.ViewUsersRestrictions // Since filters the users based on their UpdateAt timestamp. Since int64 }
type UserStore ¶
type UserStore interface { Save(user *model.User) (*model.User, *model.AppError) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError) UpdateLastPictureUpdate(userId string) *model.AppError ResetLastPictureUpdate(userId string) *model.AppError UpdatePassword(userId, newPassword string) *model.AppError UpdateUpdateAt(userId string) (int64, *model.AppError) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError) UpdateMfaSecret(userId, secret string) *model.AppError UpdateMfaActive(userId string, active bool) *model.AppError Get(id string) (*model.User, *model.AppError) GetAll() ([]*model.User, *model.AppError) ClearCaches() InvalidateProfilesInChannelCacheByUser(userId string) InvalidateProfilesInChannelCache(channelId string) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError) InvalidateProfileCacheForUser(userId string) GetByEmail(email string) (*model.User, *model.AppError) GetByAuth(authData *string, authService string) (*model.User, *model.AppError) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError) GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError) GetByUsername(username string) (*model.User, *model.AppError) GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError) VerifyEmail(userId, email string) (string, *model.AppError) GetEtagForAllProfiles() string GetEtagForProfiles(teamId string) string UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError GetSystemAdminProfiles() (map[string]*model.User, *model.AppError) PermanentDelete(userId string) *model.AppError AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError) GetUnreadCount(userId string) (int64, *model.AppError) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError) GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) AnalyticsGetInactiveUsersCount() (int64, *model.AppError) AnalyticsGetSystemAdminCount() (int64, *model.AppError) AnalyticsGetGuestCount() (int64, *model.AppError) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetEtagForProfilesNotInTeam(teamId string) string ClearAllCustomRoleAssignments() *model.AppError InferSystemInstallDate() (int64, *model.AppError) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError) GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError) Count(options model.UserCountOptions) (int64, *model.AppError) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError) PromoteGuestToUser(userID string) *model.AppError DemoteUserToGuest(userID string) *model.AppError DeactivateGuests() ([]string, *model.AppError) AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError) GetKnownUsers(userID string) ([]string, *model.AppError) }
type UserTermsOfServiceStore ¶
type UserTermsOfServiceStore interface { GetByUser(userId string) (*model.UserTermsOfService, error) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, error) Delete(userId, termsOfServiceId string) error }
type WebhookStore ¶
type WebhookStore interface { SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError) GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingListByUser(userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError) DeleteIncoming(webhookId string, time int64) *model.AppError PermanentDeleteIncomingByChannel(channelId string) *model.AppError PermanentDeleteIncomingByUser(userId string) *model.AppError SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannelByUser(channelId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingListByUser(userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) DeleteOutgoing(webhookId string, time int64) *model.AppError PermanentDeleteOutgoingByChannel(channelId string) *model.AppError PermanentDeleteOutgoingByUser(userId string) *model.AppError UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) AnalyticsIncomingCount(teamId string) (int64, *model.AppError) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError) InvalidateWebhookCache(webhook string) ClearCaches() }