Documentation ¶
Index ¶
- type TimerLayer
- func (s *TimerLayer) Audit() store.AuditStore
- func (s *TimerLayer) Bot() store.BotStore
- func (s *TimerLayer) Channel() store.ChannelStore
- func (s *TimerLayer) ChannelMemberHistory() store.ChannelMemberHistoryStore
- func (s *TimerLayer) Close()
- func (s *TimerLayer) ClusterDiscovery() store.ClusterDiscoveryStore
- func (s *TimerLayer) Command() store.CommandStore
- func (s *TimerLayer) CommandWebhook() store.CommandWebhookStore
- func (s *TimerLayer) Compliance() store.ComplianceStore
- func (s *TimerLayer) DropAllTables()
- func (s *TimerLayer) Emoji() store.EmojiStore
- func (s *TimerLayer) FileInfo() store.FileInfoStore
- func (s *TimerLayer) GetCurrentSchemaVersion() string
- func (s *TimerLayer) Group() store.GroupStore
- func (s *TimerLayer) Job() store.JobStore
- func (s *TimerLayer) License() store.LicenseStore
- func (s *TimerLayer) LinkMetadata() store.LinkMetadataStore
- func (s *TimerLayer) LockToMaster()
- func (s *TimerLayer) MarkSystemRanUnitTests()
- func (s *TimerLayer) OAuth() store.OAuthStore
- func (s *TimerLayer) Plugin() store.PluginStore
- func (s *TimerLayer) Post() store.PostStore
- func (s *TimerLayer) Preference() store.PreferenceStore
- func (s *TimerLayer) ProductNotices() store.ProductNoticesStore
- func (s *TimerLayer) Reaction() store.ReactionStore
- func (s *TimerLayer) RemoteCluster() store.RemoteClusterStore
- func (s *TimerLayer) RetentionPolicy() store.RetentionPolicyStore
- func (s *TimerLayer) Role() store.RoleStore
- func (s *TimerLayer) Scheme() store.SchemeStore
- func (s *TimerLayer) Session() store.SessionStore
- func (s *TimerLayer) SetContext(context context.Context)
- func (s *TimerLayer) SharedChannel() store.SharedChannelStore
- func (s *TimerLayer) Status() store.StatusStore
- func (s *TimerLayer) System() store.SystemStore
- func (s *TimerLayer) Team() store.TeamStore
- func (s *TimerLayer) TermsOfService() store.TermsOfServiceStore
- func (s *TimerLayer) Thread() store.ThreadStore
- func (s *TimerLayer) Token() store.TokenStore
- func (s *TimerLayer) TotalMasterDbConnections() int
- func (s *TimerLayer) TotalReadDbConnections() int
- func (s *TimerLayer) TotalSearchDbConnections() int
- func (s *TimerLayer) UnlockFromMaster()
- func (s *TimerLayer) UploadSession() store.UploadSessionStore
- func (s *TimerLayer) User() store.UserStore
- func (s *TimerLayer) UserAccessToken() store.UserAccessTokenStore
- func (s *TimerLayer) UserTermsOfService() store.UserTermsOfServiceStore
- func (s *TimerLayer) Webhook() store.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, error)
- func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamID string, channelType string) (int64, error)
- func (s *TimerLayerChannelStore) AutocompleteInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() error
- func (s *TimerLayerChannelStore) ClearCaches()
- func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error
- func (s *TimerLayerChannelStore) CountPostsAfter(channelID string, timestamp int64, userID string) (int, int, error)
- func (s *TimerLayerChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, ...) (*model.Channel, error)
- func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
- func (s *TimerLayerChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error)
- func (s *TimerLayerChannelStore) Delete(channelID string, time int64) error
- func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryID string) error
- 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, error)
- func (s *TimerLayerChannelStore) GetAllChannelMembersForUser(userID string, allowFromCache bool, includeDeleted bool) (map[string]string, error)
- func (s *TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelID string, allowFromCache bool) (map[string]model.StringMap, error)
- func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
- func (s *TimerLayerChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error)
- func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterID string) ([]*model.ChannelForExport, error)
- func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID string) ([]*model.DirectChannelForExport, error)
- 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, error)
- func (s *TimerLayerChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error)
- func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error)
- func (s *TimerLayerChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error)
- func (s *TimerLayerChannelStore) GetChannels(teamID string, userID string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, error)
- func (s *TimerLayerChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, error)
- func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error)
- 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, error)
- func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
- func (s *TimerLayerChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error)
- func (s *TimerLayerChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error)
- func (s *TimerLayerChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error)
- func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelID string) int64
- func (s *TimerLayerChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error)
- func (s *TimerLayerChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error)
- func (s *TimerLayerChannelStore) GetMembers(channelID string, offset int, limit int) (*model.ChannelMembers, error)
- func (s *TimerLayerChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (*model.ChannelMembers, error)
- func (s *TimerLayerChannelStore) GetMembersByIds(channelID string, userIds []string) (*model.ChannelMembers, error)
- func (s *TimerLayerChannelStore) GetMembersForUser(teamID string, userID string) (*model.ChannelMembers, error)
- func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamID string, userID string, page int, perPage int) (*model.ChannelMembers, error)
- func (s *TimerLayerChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error)
- func (s *TimerLayerChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error)
- func (s *TimerLayerChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
- func (s *TimerLayerChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error)
- func (s *TimerLayerChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error)
- func (s *TimerLayerChannelStore) GetTeamChannels(teamID string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) GetTeamForChannel(channelID string) (*model.Team, error)
- func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, error)
- func (s *TimerLayerChannelStore) IncrementMentionCount(channelID string, userID string, updateThreads bool, isRoot bool) error
- 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, error)
- 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) error
- func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userID string) error
- func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelID string) error
- func (s *TimerLayerChannelStore) RemoveMember(channelID string, userID string) error
- func (s *TimerLayerChannelStore) RemoveMembers(channelID string, userIds []string) error
- func (s *TimerLayerChannelStore) ResetAllChannelSchemes() error
- 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, error)
- func (s *TimerLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
- func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, error)
- func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) SearchGroupChannels(userID string, term string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) SearchMore(userID string, teamID string, term string) (*model.ChannelList, error)
- func (s *TimerLayerChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error
- func (s *TimerLayerChannelStore) SetShared(channelId string, shared bool) error
- func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, error)
- func (s *TimerLayerChannelStore) UpdateLastViewedAt(channelIds []string, userID string, updateThreads bool) (map[string]int64, error)
- func (s *TimerLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, mentionCountRoot int, ...) (*model.ChannelUnreadAt, error)
- func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error)
- func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) error
- func (s *TimerLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
- func (s *TimerLayerChannelStore) UpdateSidebarCategories(userID string, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, ...)
- func (s *TimerLayerChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error
- func (s *TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error
- func (s *TimerLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
- func (s *TimerLayerChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error)
- 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, error)
- func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, error)
- func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) error
- type TimerLayerComplianceStore
- func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance, cursor model.ComplianceExportCursor, limit int) ([]*model.CompliancePost, model.ComplianceExportCursor, error)
- func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, error)
- func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, error)
- func (s *TimerLayerComplianceStore) MessageExport(cursor model.MessageExportCursor, limit int) ([]*model.MessageExport, model.MessageExportCursor, error)
- func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error)
- func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error)
- type TimerLayerEmojiStore
- func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) error
- func (s *TimerLayerEmojiStore) Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error)
- func (s *TimerLayerEmojiStore) GetByName(ctx context.Context, 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) error
- func (s *TimerLayerFileInfoStore) ClearCaches()
- func (s *TimerLayerFileInfoStore) CountAll() (int64, error)
- func (s *TimerLayerFileInfoStore) DeleteForPost(postID string) (string, error)
- func (s *TimerLayerFileInfoStore) Get(id string) (*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetFilesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.FileForIndexing, error)
- func (s *TimerLayerFileInfoStore) GetForPost(postID string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetFromMaster(id string) (*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted bool)
- func (s *TimerLayerFileInfoStore) PermanentDelete(fileID string) error
- func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userID string) (int64, error)
- func (s *TimerLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, error)
- func (s *TimerLayerFileInfoStore) Search(paramsList []*model.SearchParams, userID string, teamID string, page int, ...) (*model.FileInfoList, error)
- func (s *TimerLayerFileInfoStore) SetContent(fileID string, content string) error
- func (s *TimerLayerFileInfoStore) Upsert(info *model.FileInfo) (*model.FileInfo, error)
- type TimerLayerGroupStore
- func (s *TimerLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error)
- func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
- func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string, includeRemovedMembers bool) ([]*model.UserChannelIDPair, error)
- func (s *TimerLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error)
- func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error)
- func (s *TimerLayerGroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error)
- func (s *TimerLayerGroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error)
- func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error)
- func (s *TimerLayerGroupStore) Create(group *model.Group) (*model.Group, error)
- func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
- func (s *TimerLayerGroupStore) Delete(groupID string) (*model.Group, error)
- func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
- func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error)
- func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, error)
- func (s *TimerLayerGroupStore) Get(groupID string) (*model.Group, error)
- func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error)
- func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error)
- func (s *TimerLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error)
- func (s *TimerLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error)
- func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error)
- func (s *TimerLayerGroupStore) GetByUser(userID string) ([]*model.Group, error)
- func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
- func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error)
- func (s *TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error)
- func (s *TimerLayerGroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
- func (s *TimerLayerGroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
- func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, error)
- func (s *TimerLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, error)
- func (s *TimerLayerGroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, error)
- func (s *TimerLayerGroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, error)
- func (s *TimerLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, error)
- func (s *TimerLayerGroupStore) GroupChannelCount() (int64, error)
- func (s *TimerLayerGroupStore) GroupCount() (int64, error)
- func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, error)
- func (s *TimerLayerGroupStore) GroupMemberCount() (int64, error)
- func (s *TimerLayerGroupStore) GroupTeamCount() (int64, error)
- func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userID string) error
- func (s *TimerLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error)
- func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
- func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemovedMembers bool) ([]*model.UserTeamIDPair, error)
- func (s *TimerLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error)
- func (s *TimerLayerGroupStore) Update(group *model.Group) (*model.Group, error)
- func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
- func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error)
- type TimerLayerJobStore
- func (s *TimerLayerJobStore) Delete(id string) (string, error)
- func (s *TimerLayerJobStore) Get(id string) (*model.Job, error)
- func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, error)
- func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, error)
- func (s *TimerLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, error)
- func (s *TimerLayerJobStore) GetAllByTypesPage(jobTypes []string, offset int, limit int) ([]*model.Job, error)
- func (s *TimerLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, error)
- func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, error)
- func (s *TimerLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, error)
- func (s *TimerLayerJobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error)
- func (s *TimerLayerJobStore) Save(job *model.Job) (*model.Job, error)
- func (s *TimerLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, error)
- func (s *TimerLayerJobStore) UpdateStatus(id string, status string) (*model.Job, error)
- func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error)
- 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, error)
- func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
- func (s *TimerLayerPluginStore) Delete(pluginID string, key string) error
- func (s *TimerLayerPluginStore) DeleteAllExpired() error
- func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginID string) error
- func (s *TimerLayerPluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error)
- func (s *TimerLayerPluginStore) List(pluginID string, page int, perPage int) ([]string, error)
- func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error)
- func (s *TimerLayerPluginStore) SetWithOptions(pluginID string, key string, value []byte, options model.PluginKVSetOptions) (bool, error)
- type TimerLayerPostStore
- func (s *TimerLayerPostStore) AnalyticsPostCount(teamID string, mustHaveFile bool, mustHaveHashtag bool) (int64, error)
- func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error)
- func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error)
- func (s *TimerLayerPostStore) ClearCaches()
- func (s *TimerLayerPostStore) Delete(postID string, time int64, deleteByID string) error
- func (s *TimerLayerPostStore) Get(ctx context.Context, id string, skipFetchThreads bool, collapsedThreads bool, ...) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterID string) ([]*model.DirectPostForExport, error)
- func (s *TimerLayerPostStore) GetEtag(channelID string, allowFromCache bool, collapsedThreads bool) string
- func (s *TimerLayerPostStore) GetFlaggedPosts(userID string, offset int, limit int) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetFlaggedPostsForChannel(userID string, channelID string, offset int, limit int) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset int, limit int) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetMaxPostSize() int
- func (s *TimerLayerPostStore) GetOldest() (*model.Post, error)
- func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, error)
- func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterID string) ([]*model.PostForExport, error)
- func (s *TimerLayerPostStore) GetPostAfterTime(channelID string, time int64, collapsedThreads bool) (*model.Post, error)
- func (s *TimerLayerPostStore) GetPostIdAfterTime(channelID string, time int64, collapsedThreads bool) (string, error)
- func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelID string, time int64, collapsedThreads bool) (string, error)
- func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, error)
- func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, error)
- func (s *TimerLayerPostStore) GetPostsCreatedAt(channelID string, time int64) ([]*model.Post, error)
- func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, error)
- func (s *TimerLayerPostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOptions, ...) ([]*model.Post, model.GetPostsSinceForSyncCursor, error)
- func (s *TimerLayerPostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error)
- func (s *TimerLayerPostStore) GetSingle(id string, inclDeleted bool) (*model.Post, error)
- func (s *TimerLayerPostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error)
- func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelID string)
- func (s *TimerLayerPostStore) Overwrite(post *model.Post) (*model.Post, error)
- func (s *TimerLayerPostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, error)
- func (s *TimerLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
- func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelID string) error
- func (s *TimerLayerPostStore) PermanentDeleteByUser(userID string) error
- func (s *TimerLayerPostStore) Save(post *model.Post) (*model.Post, error)
- func (s *TimerLayerPostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, error)
- func (s *TimerLayerPostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error)
- func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userID string, teamID string, page int, ...) (*model.PostSearchResults, error)
- func (s *TimerLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, error)
- type TimerLayerPreferenceStore
- func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, error)
- func (s *TimerLayerPreferenceStore) Delete(userID string, category string, name string) error
- func (s *TimerLayerPreferenceStore) DeleteCategory(userID string, category string) error
- func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) error
- func (s *TimerLayerPreferenceStore) Get(userID string, category string, name string) (*model.Preference, error)
- func (s *TimerLayerPreferenceStore) GetAll(userID string) (model.Preferences, error)
- func (s *TimerLayerPreferenceStore) GetCategory(userID string, category string) (model.Preferences, error)
- func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userID string) error
- func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) error
- type TimerLayerProductNoticesStore
- func (s *TimerLayerProductNoticesStore) Clear(notices []string) error
- func (s *TimerLayerProductNoticesStore) ClearOldNotices(currentNotices *model.ProductNotices) error
- func (s *TimerLayerProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeViewState, error)
- func (s *TimerLayerProductNoticesStore) View(userID string, notices []string) error
- 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) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted 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 TimerLayerRemoteClusterStore
- func (s *TimerLayerRemoteClusterStore) Delete(remoteClusterId string) (bool, error)
- func (s *TimerLayerRemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error)
- func (s *TimerLayerRemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error)
- func (s *TimerLayerRemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluster, error)
- func (s *TimerLayerRemoteClusterStore) SetLastPingAt(remoteClusterId string) error
- func (s *TimerLayerRemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteCluster, error)
- func (s *TimerLayerRemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error)
- type TimerLayerRetentionPolicyStore
- func (s *TimerLayerRetentionPolicyStore) AddChannels(policyId string, channelIds []string) error
- func (s *TimerLayerRetentionPolicyStore) AddTeams(policyId string, teamIds []string) error
- func (s *TimerLayerRetentionPolicyStore) Delete(id string) error
- func (s *TimerLayerRetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (s *TimerLayerRetentionPolicyStore) GetAll(offset int, limit int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error)
- func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error)
- func (s *TimerLayerRetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error)
- func (s *TimerLayerRetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
- func (s *TimerLayerRetentionPolicyStore) GetCount() (int64, error)
- func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error)
- func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error)
- func (s *TimerLayerRetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error)
- func (s *TimerLayerRetentionPolicyStore) GetTeamsCount(policyId string) (int64, error)
- func (s *TimerLayerRetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- func (s *TimerLayerRetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error
- func (s *TimerLayerRetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error
- func (s *TimerLayerRetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
- type TimerLayerRoleStore
- func (s *TimerLayerRoleStore) AllChannelSchemeRoles() ([]*model.Role, error)
- func (s *TimerLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error)
- func (s *TimerLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error)
- func (s *TimerLayerRoleStore) Delete(roleID string) (*model.Role, error)
- func (s *TimerLayerRoleStore) Get(roleID string) (*model.Role, error)
- func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, error)
- func (s *TimerLayerRoleStore) GetByName(ctx context.Context, name string) (*model.Role, error)
- func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, error)
- func (s *TimerLayerRoleStore) PermanentDeleteAll() error
- func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, error)
- 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(ctx context.Context, 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 TimerLayerSharedChannelStore
- func (s *TimerLayerSharedChannelStore) Delete(channelId string) (bool, error)
- func (s *TimerLayerSharedChannelStore) DeleteRemote(remoteId string) (bool, error)
- func (s *TimerLayerSharedChannelStore) Get(channelId string) (*model.SharedChannel, error)
- func (s *TimerLayerSharedChannelStore) GetAll(offset int, limit int, opts model.SharedChannelFilterOpts) ([]*model.SharedChannel, error)
- func (s *TimerLayerSharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (int64, error)
- func (s *TimerLayerSharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error)
- func (s *TimerLayerSharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote, error)
- func (s *TimerLayerSharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error)
- func (s *TimerLayerSharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error)
- func (s *TimerLayerSharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error)
- func (s *TimerLayerSharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error)
- func (s *TimerLayerSharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error)
- func (s *TimerLayerSharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error)
- func (s *TimerLayerSharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error)
- func (s *TimerLayerSharedChannelStore) HasChannel(channelID string) (bool, error)
- func (s *TimerLayerSharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error)
- func (s *TimerLayerSharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChannel, error)
- func (s *TimerLayerSharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachment) (*model.SharedChannelAttachment, error)
- func (s *TimerLayerSharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
- func (s *TimerLayerSharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.SharedChannelUser, error)
- func (s *TimerLayerSharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChannel, error)
- func (s *TimerLayerSharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error
- func (s *TimerLayerSharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
- func (s *TimerLayerSharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error
- func (s *TimerLayerSharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error
- func (s *TimerLayerSharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error)
- type TimerLayerStatusStore
- func (s *TimerLayerStatusStore) Get(userID string) (*model.Status, error)
- func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, error)
- func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, error)
- func (s *TimerLayerStatusStore) ResetAll() error
- func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) error
- func (s *TimerLayerStatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error)
- func (s *TimerLayerStatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error
- type TimerLayerSystemStore
- func (s *TimerLayerSystemStore) Get() (model.StringMap, error)
- func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, error)
- func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.System, error)
- func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, error)
- func (s *TimerLayerSystemStore) Save(system *model.System) error
- func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) error
- func (s *TimerLayerSystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error
- func (s *TimerLayerSystemStore) Update(system *model.System) error
- type TimerLayerTeamStore
- func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, error)
- func (s *TimerLayerTeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error)
- func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() error
- func (s *TimerLayerTeamStore) ClearCaches()
- func (s *TimerLayerTeamStore) Get(id string) (*model.Team, error)
- func (s *TimerLayerTeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
- func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.TeamForExport, error)
- func (s *TimerLayerTeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetByInviteId(inviteID string) (*model.Team, error)
- func (s *TimerLayerTeamStore) GetByName(name string) (*model.Team, error)
- func (s *TimerLayerTeamStore) GetByNames(name []string) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error)
- func (s *TimerLayerTeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error)
- func (s *TimerLayerTeamStore) GetMember(ctx context.Context, teamID string, userID string) (*model.TeamMember, error)
- func (s *TimerLayerTeamStore) GetMembers(teamID string, offset int, limit int, ...) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) GetMembersByIds(teamID string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error)
- func (s *TimerLayerTeamStore) GetTeamsByScheme(schemeID string, offset int, limit int) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) GetTeamsForUser(ctx context.Context, userID string) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userID string, page int, perPage int) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
- func (s *TimerLayerTeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, error)
- func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, error)
- func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userID string)
- func (s *TimerLayerTeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (map[string]string, error)
- func (s *TimerLayerTeamStore) PermanentDelete(teamID string) error
- func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamID string) error
- func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userID string) error
- func (s *TimerLayerTeamStore) RemoveMember(teamID string, userID string) error
- func (s *TimerLayerTeamStore) RemoveMembers(teamID string, userIds []string) error
- func (s *TimerLayerTeamStore) ResetAllTeamSchemes() error
- func (s *TimerLayerTeamStore) Save(team *model.Team) (*model.Team, error)
- func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
- func (s *TimerLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int64, error)
- func (s *TimerLayerTeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error)
- func (s *TimerLayerTeamStore) Update(team *model.Team) (*model.Team, error)
- func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) error
- func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, error)
- func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) error
- func (s *TimerLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error)
- func (s *TimerLayerTeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool, error)
- 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 TimerLayerThreadStore
- func (s *TimerLayerThreadStore) CollectThreadsWithNewerReplies(userId string, channelIds []string, timestamp int64) ([]string, error)
- func (s *TimerLayerThreadStore) Delete(postID string) error
- func (s *TimerLayerThreadStore) DeleteMembershipForUser(userId string, postID string) error
- func (s *TimerLayerThreadStore) Get(id string) (*model.Thread, error)
- func (s *TimerLayerThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error)
- func (s *TimerLayerThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error)
- func (s *TimerLayerThreadStore) GetPosts(threadID string, since int64) ([]*model.Post, error)
- func (s *TimerLayerThreadStore) GetThreadFollowers(threadID string) ([]string, error)
- func (s *TimerLayerThreadStore) GetThreadForUser(teamID string, threadMembership *model.ThreadMembership, extended bool) (*model.ThreadResponse, error)
- func (s *TimerLayerThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) (*model.Threads, error)
- func (s *TimerLayerThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error)
- func (s *TimerLayerThreadStore) MarkAllAsRead(userID string, teamID string) error
- func (s *TimerLayerThreadStore) MarkAllAsReadInChannels(userID string, channelIDs []string) error
- func (s *TimerLayerThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error
- func (s *TimerLayerThreadStore) Save(thread *model.Thread) (*model.Thread, error)
- func (s *TimerLayerThreadStore) SaveMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
- func (s *TimerLayerThreadStore) SaveMultiple(thread []*model.Thread) ([]*model.Thread, int, error)
- func (s *TimerLayerThreadStore) Update(thread *model.Thread) (*model.Thread, error)
- func (s *TimerLayerThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
- func (s *TimerLayerThreadStore) UpdateUnreadsByChannel(userId string, changedThreads []string, timestamp int64, ...) 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 TimerLayerUploadSessionStore
- func (s *TimerLayerUploadSessionStore) Delete(id string) error
- func (s *TimerLayerUploadSessionStore) Get(id string) (*model.UploadSession, error)
- func (s *TimerLayerUploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error)
- func (s *TimerLayerUploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error)
- func (s *TimerLayerUploadSessionStore) Update(session *model.UploadSession) error
- type TimerLayerUserAccessTokenStore
- func (s *TimerLayerUserAccessTokenStore) Delete(tokenID string) error
- func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userID string) error
- func (s *TimerLayerUserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error)
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenID string) error
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenID string) error
- type TimerLayerUserStore
- func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error)
- func (s *TimerLayerUserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error)
- func (s *TimerLayerUserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)
- func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (int64, error)
- func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, error)
- func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, error)
- func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
- func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() error
- func (s *TimerLayerUserStore) ClearCaches()
- func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, error)
- func (s *TimerLayerUserStore) DeactivateGuests() ([]string, error)
- func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) (*model.User, error)
- func (s *TimerLayerUserStore) Get(ctx context.Context, id string) (*model.User, error)
- func (s *TimerLayerUserStore) GetAll() ([]*model.User, error)
- func (s *TimerLayerUserStore) GetAllAfter(limit int, afterID string) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error)
- func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error)
- func (s *TimerLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, error)
- func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, error)
- func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, error)
- func (s *TimerLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, error)
- 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, error)
- func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, error)
- func (s *TimerLayerUserStore) GetMany(ctx context.Context, ids []string) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetNewUsersForTeam(teamID string, offset int, limit int, ...) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfileByGroupChannelIdsForUser(userID string, channelIds []string) (map[string][]*model.User, error)
- func (s *TimerLayerUserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, ...) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesNotInChannel(teamID string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, limit int, ...) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, error)
- func (s *TimerLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error)
- func (s *TimerLayerUserStore) GetUnreadCount(userID string) (int64, error)
- func (s *TimerLayerUserStore) GetUnreadCountForChannel(userID string, channelID string) (int64, error)
- func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, error)
- func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, error)
- func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userID string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelID string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userID string)
- func (s *TimerLayerUserStore) PermanentDelete(userID string) error
- func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) error
- func (s *TimerLayerUserStore) ResetAuthDataToEmailForUsers(service string, userIDs []string, includeDeleted bool, dryRun bool) (int, error)
- func (s *TimerLayerUserStore) ResetLastPictureUpdate(userID string) error
- func (s *TimerLayerUserStore) Save(user *model.User) (*model.User, error)
- func (s *TimerLayerUserStore) Search(teamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) SearchInChannel(channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error)
- func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, error)
- func (s *TimerLayerUserStore) UpdateAuthData(userID string, service string, authData *string, email string, resetMfa bool) (string, error)
- func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userID string, attempts int) error
- func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userID string) error
- func (s *TimerLayerUserStore) UpdateMfaActive(userID string, active bool) error
- func (s *TimerLayerUserStore) UpdateMfaSecret(userID string, secret string) error
- func (s *TimerLayerUserStore) UpdatePassword(userID string, newPassword string) error
- func (s *TimerLayerUserStore) UpdateUpdateAt(userID string) (int64, error)
- func (s *TimerLayerUserStore) VerifyEmail(userID string, email string) (string, error)
- 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, error)
- func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error)
- func (s *TimerLayerWebhookStore) ClearCaches()
- func (s *TimerLayerWebhookStore) DeleteIncoming(webhookID string, time int64) error
- func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookID string, time int64) error
- func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelID string) error
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userID string) error
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userID string) error
- func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
- func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
- func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimerLayer ¶
type TimerLayer struct { store.Store Metrics einterfaces.MetricsInterface AuditStore store.AuditStore BotStore store.BotStore ChannelStore store.ChannelStore ChannelMemberHistoryStore store.ChannelMemberHistoryStore ClusterDiscoveryStore store.ClusterDiscoveryStore CommandStore store.CommandStore CommandWebhookStore store.CommandWebhookStore ComplianceStore store.ComplianceStore EmojiStore store.EmojiStore FileInfoStore store.FileInfoStore GroupStore store.GroupStore JobStore store.JobStore LicenseStore store.LicenseStore LinkMetadataStore store.LinkMetadataStore OAuthStore store.OAuthStore PluginStore store.PluginStore PostStore store.PostStore PreferenceStore store.PreferenceStore ProductNoticesStore store.ProductNoticesStore ReactionStore store.ReactionStore RemoteClusterStore store.RemoteClusterStore RetentionPolicyStore store.RetentionPolicyStore RoleStore store.RoleStore SchemeStore store.SchemeStore SessionStore store.SessionStore StatusStore store.StatusStore SystemStore store.SystemStore TeamStore store.TeamStore TermsOfServiceStore store.TermsOfServiceStore ThreadStore store.ThreadStore TokenStore store.TokenStore UploadSessionStore store.UploadSessionStore UserStore store.UserStore UserAccessTokenStore store.UserAccessTokenStore UserTermsOfServiceStore store.UserTermsOfServiceStore WebhookStore store.WebhookStore }
func New ¶
func New(childStore store.Store, metrics einterfaces.MetricsInterface) *TimerLayer
func (*TimerLayer) Audit ¶
func (s *TimerLayer) Audit() store.AuditStore
func (*TimerLayer) Bot ¶
func (s *TimerLayer) Bot() store.BotStore
func (*TimerLayer) Channel ¶
func (s *TimerLayer) Channel() store.ChannelStore
func (*TimerLayer) ChannelMemberHistory ¶
func (s *TimerLayer) ChannelMemberHistory() store.ChannelMemberHistoryStore
func (*TimerLayer) Close ¶
func (s *TimerLayer) Close()
func (*TimerLayer) ClusterDiscovery ¶
func (s *TimerLayer) ClusterDiscovery() store.ClusterDiscoveryStore
func (*TimerLayer) Command ¶
func (s *TimerLayer) Command() store.CommandStore
func (*TimerLayer) CommandWebhook ¶
func (s *TimerLayer) CommandWebhook() store.CommandWebhookStore
func (*TimerLayer) Compliance ¶
func (s *TimerLayer) Compliance() store.ComplianceStore
func (*TimerLayer) DropAllTables ¶
func (s *TimerLayer) DropAllTables()
func (*TimerLayer) Emoji ¶
func (s *TimerLayer) Emoji() store.EmojiStore
func (*TimerLayer) FileInfo ¶
func (s *TimerLayer) FileInfo() store.FileInfoStore
func (*TimerLayer) GetCurrentSchemaVersion ¶
func (s *TimerLayer) GetCurrentSchemaVersion() string
func (*TimerLayer) Group ¶
func (s *TimerLayer) Group() store.GroupStore
func (*TimerLayer) Job ¶
func (s *TimerLayer) Job() store.JobStore
func (*TimerLayer) License ¶
func (s *TimerLayer) License() store.LicenseStore
func (*TimerLayer) LinkMetadata ¶
func (s *TimerLayer) LinkMetadata() store.LinkMetadataStore
func (*TimerLayer) LockToMaster ¶
func (s *TimerLayer) LockToMaster()
func (*TimerLayer) MarkSystemRanUnitTests ¶
func (s *TimerLayer) MarkSystemRanUnitTests()
func (*TimerLayer) OAuth ¶
func (s *TimerLayer) OAuth() store.OAuthStore
func (*TimerLayer) Plugin ¶
func (s *TimerLayer) Plugin() store.PluginStore
func (*TimerLayer) Post ¶
func (s *TimerLayer) Post() store.PostStore
func (*TimerLayer) Preference ¶
func (s *TimerLayer) Preference() store.PreferenceStore
func (*TimerLayer) ProductNotices ¶
func (s *TimerLayer) ProductNotices() store.ProductNoticesStore
func (*TimerLayer) Reaction ¶
func (s *TimerLayer) Reaction() store.ReactionStore
func (*TimerLayer) RemoteCluster ¶ added in v5.35.0
func (s *TimerLayer) RemoteCluster() store.RemoteClusterStore
func (*TimerLayer) RetentionPolicy ¶ added in v5.36.0
func (s *TimerLayer) RetentionPolicy() store.RetentionPolicyStore
func (*TimerLayer) Role ¶
func (s *TimerLayer) Role() store.RoleStore
func (*TimerLayer) Scheme ¶
func (s *TimerLayer) Scheme() store.SchemeStore
func (*TimerLayer) Session ¶
func (s *TimerLayer) Session() store.SessionStore
func (*TimerLayer) SetContext ¶
func (s *TimerLayer) SetContext(context context.Context)
func (*TimerLayer) SharedChannel ¶ added in v5.35.0
func (s *TimerLayer) SharedChannel() store.SharedChannelStore
func (*TimerLayer) Status ¶
func (s *TimerLayer) Status() store.StatusStore
func (*TimerLayer) System ¶
func (s *TimerLayer) System() store.SystemStore
func (*TimerLayer) Team ¶
func (s *TimerLayer) Team() store.TeamStore
func (*TimerLayer) TermsOfService ¶
func (s *TimerLayer) TermsOfService() store.TermsOfServiceStore
func (*TimerLayer) Thread ¶ added in v5.29.0
func (s *TimerLayer) Thread() store.ThreadStore
func (*TimerLayer) Token ¶
func (s *TimerLayer) Token() store.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) UploadSession ¶
func (s *TimerLayer) UploadSession() store.UploadSessionStore
func (*TimerLayer) User ¶
func (s *TimerLayer) User() store.UserStore
func (*TimerLayer) UserAccessToken ¶
func (s *TimerLayer) UserAccessToken() store.UserAccessTokenStore
func (*TimerLayer) UserTermsOfService ¶
func (s *TimerLayer) UserTermsOfService() store.UserTermsOfServiceStore
func (*TimerLayer) Webhook ¶
func (s *TimerLayer) Webhook() store.WebhookStore
type TimerLayerAuditStore ¶
type TimerLayerAuditStore struct { store.AuditStore Root *TimerLayer }
func (*TimerLayerAuditStore) PermanentDeleteByUser ¶
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userID string) error
type TimerLayerBotStore ¶
type TimerLayerBotStore struct { store.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 { store.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 { store.ChannelStore Root *TimerLayer }
func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount ¶
func (s *TimerLayerChannelStore) AnalyticsDeletedTypeCount(teamID string, channelType string) (int64, error)
func (*TimerLayerChannelStore) AnalyticsTypeCount ¶
func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamID string, channelType string) (int64, error)
func (*TimerLayerChannelStore) AutocompleteInTeam ¶
func (s *TimerLayerChannelStore) AutocompleteInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
func (*TimerLayerChannelStore) AutocompleteInTeamForSearch ¶
func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (*model.ChannelList, error)
func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() error
func (*TimerLayerChannelStore) ClearCaches ¶
func (s *TimerLayerChannelStore) ClearCaches()
func (*TimerLayerChannelStore) ClearSidebarOnTeamLeave ¶
func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error
func (*TimerLayerChannelStore) CountPostsAfter ¶
func (*TimerLayerChannelStore) CreateDirectChannel ¶
func (s *TimerLayerChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error)
func (*TimerLayerChannelStore) CreateInitialSidebarCategories ¶
func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
func (*TimerLayerChannelStore) CreateSidebarCategory ¶
func (s *TimerLayerChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error)
func (*TimerLayerChannelStore) Delete ¶
func (s *TimerLayerChannelStore) Delete(channelID string, time int64) error
func (*TimerLayerChannelStore) DeleteSidebarCategory ¶
func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryID string) error
func (*TimerLayerChannelStore) DeleteSidebarChannelsByPreferences ¶
func (s *TimerLayerChannelStore) DeleteSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*TimerLayerChannelStore) GetAll ¶
func (s *TimerLayerChannelStore) GetAll(teamID string) ([]*model.Channel, error)
func (*TimerLayerChannelStore) GetAllChannelMembersForUser ¶
func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶
func (*TimerLayerChannelStore) GetAllChannels ¶
func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, error)
func (*TimerLayerChannelStore) GetAllChannelsCount ¶
func (s *TimerLayerChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error)
func (*TimerLayerChannelStore) GetAllChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterID string) ([]*model.ChannelForExport, error)
func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterID string) ([]*model.DirectChannelForExport, error)
func (*TimerLayerChannelStore) GetByNameIncludeDeleted ¶
func (*TimerLayerChannelStore) GetByNames ¶
func (*TimerLayerChannelStore) GetChannelCounts ¶
func (s *TimerLayerChannelStore) GetChannelCounts(teamID string, userID string) (*model.ChannelCounts, error)
func (*TimerLayerChannelStore) GetChannelMembersForExport ¶
func (s *TimerLayerChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error)
func (*TimerLayerChannelStore) GetChannelMembersTimezones ¶
func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error)
func (*TimerLayerChannelStore) GetChannelUnread ¶
func (s *TimerLayerChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error)
func (*TimerLayerChannelStore) GetChannels ¶
func (s *TimerLayerChannelStore) GetChannels(teamID string, userID string, includeDeleted bool, lastDeleteAt int) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetChannelsBatchForIndexing ¶
func (*TimerLayerChannelStore) GetChannelsByIds ¶
func (*TimerLayerChannelStore) GetChannelsByScheme ¶
func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error)
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 (s *TimerLayerChannelStore) GetForPost(postID string) (*model.Channel, error)
func (*TimerLayerChannelStore) GetFromMaster ¶
func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, error)
func (*TimerLayerChannelStore) GetGuestCount ¶
func (s *TimerLayerChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error)
func (*TimerLayerChannelStore) GetMember ¶
func (s *TimerLayerChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error)
func (*TimerLayerChannelStore) GetMemberCount ¶
func (s *TimerLayerChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error)
func (*TimerLayerChannelStore) GetMemberCountFromCache ¶
func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelID string) int64
func (*TimerLayerChannelStore) GetMemberCountsByGroup ¶
func (s *TimerLayerChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error)
func (*TimerLayerChannelStore) GetMemberForPost ¶
func (s *TimerLayerChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error)
func (*TimerLayerChannelStore) GetMembers ¶
func (s *TimerLayerChannelStore) GetMembers(channelID string, offset int, limit int) (*model.ChannelMembers, error)
func (*TimerLayerChannelStore) GetMembersByChannelIds ¶ added in v5.30.0
func (s *TimerLayerChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (*model.ChannelMembers, error)
func (*TimerLayerChannelStore) GetMembersByIds ¶
func (s *TimerLayerChannelStore) GetMembersByIds(channelID string, userIds []string) (*model.ChannelMembers, error)
func (*TimerLayerChannelStore) GetMembersForUser ¶
func (s *TimerLayerChannelStore) GetMembersForUser(teamID string, userID string) (*model.ChannelMembers, error)
func (*TimerLayerChannelStore) GetMembersForUserWithPagination ¶
func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamID string, userID string, page int, perPage int) (*model.ChannelMembers, error)
func (*TimerLayerChannelStore) GetMoreChannels ¶
func (s *TimerLayerChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetPinnedPostCount ¶
func (s *TimerLayerChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error)
func (*TimerLayerChannelStore) GetPinnedPosts ¶
func (s *TimerLayerChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error)
func (*TimerLayerChannelStore) GetPrivateChannelsForTeam ¶
func (s *TimerLayerChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetPublicChannelsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetSidebarCategories ¶
func (s *TimerLayerChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)
func (*TimerLayerChannelStore) GetSidebarCategory ¶
func (s *TimerLayerChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error)
func (*TimerLayerChannelStore) GetSidebarCategoryOrder ¶
func (s *TimerLayerChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error)
func (*TimerLayerChannelStore) GetTeamChannels ¶
func (s *TimerLayerChannelStore) GetTeamChannels(teamID string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) GetTeamForChannel ¶ added in v5.35.0
func (s *TimerLayerChannelStore) GetTeamForChannel(channelID string) (*model.Team, error)
func (*TimerLayerChannelStore) GroupSyncedChannelCount ¶
func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, error)
func (*TimerLayerChannelStore) IncrementMentionCount ¶
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) error
func (*TimerLayerChannelStore) PermanentDeleteMembersByUser ¶
func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userID string) error
func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers ¶
func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelID string) error
func (*TimerLayerChannelStore) RemoveMember ¶
func (s *TimerLayerChannelStore) RemoveMember(channelID string, userID string) error
func (*TimerLayerChannelStore) RemoveMembers ¶
func (s *TimerLayerChannelStore) RemoveMembers(channelID string, userIds []string) error
func (*TimerLayerChannelStore) ResetAllChannelSchemes ¶
func (s *TimerLayerChannelStore) ResetAllChannelSchemes() error
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, error)
func (*TimerLayerChannelStore) SaveMultipleMembers ¶
func (s *TimerLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
func (*TimerLayerChannelStore) SearchAllChannels ¶
func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, error)
func (*TimerLayerChannelStore) SearchArchivedInTeam ¶
func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) SearchForUserInTeam ¶
func (s *TimerLayerChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
func (*TimerLayerChannelStore) SearchGroupChannels ¶
func (s *TimerLayerChannelStore) SearchGroupChannels(userID string, term string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) SearchInTeam ¶
func (s *TimerLayerChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (*model.ChannelList, error)
func (*TimerLayerChannelStore) SearchMore ¶
func (s *TimerLayerChannelStore) SearchMore(userID string, teamID string, term string) (*model.ChannelList, error)
func (*TimerLayerChannelStore) SetDeleteAt ¶
func (s *TimerLayerChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error
func (*TimerLayerChannelStore) SetShared ¶ added in v5.35.0
func (s *TimerLayerChannelStore) SetShared(channelId string, shared bool) error
func (*TimerLayerChannelStore) UpdateLastViewedAt ¶
func (*TimerLayerChannelStore) UpdateLastViewedAtPost ¶
func (*TimerLayerChannelStore) UpdateMember ¶
func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error)
func (*TimerLayerChannelStore) UpdateMembersRole ¶
func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) error
func (*TimerLayerChannelStore) UpdateMultipleMembers ¶
func (s *TimerLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, error)
func (*TimerLayerChannelStore) UpdateSidebarCategories ¶
func (s *TimerLayerChannelStore) UpdateSidebarCategories(userID string, teamID string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, []*model.SidebarCategoryWithChannels, error)
func (*TimerLayerChannelStore) UpdateSidebarCategoryOrder ¶
func (s *TimerLayerChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error
func (*TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove ¶
func (s *TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error
func (*TimerLayerChannelStore) UpdateSidebarChannelsByPreferences ¶
func (s *TimerLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences *model.Preferences) error
func (*TimerLayerChannelStore) UserBelongsToChannels ¶
func (s *TimerLayerChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error)
type TimerLayerClusterDiscoveryStore ¶
type TimerLayerClusterDiscoveryStore struct { store.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 { store.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 { store.CommandWebhookStore Root *TimerLayer }
func (*TimerLayerCommandWebhookStore) Cleanup ¶
func (s *TimerLayerCommandWebhookStore) Cleanup()
func (*TimerLayerCommandWebhookStore) Get ¶
func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, error)
func (*TimerLayerCommandWebhookStore) Save ¶
func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, error)
type TimerLayerComplianceStore ¶
type TimerLayerComplianceStore struct { store.ComplianceStore Root *TimerLayer }
func (*TimerLayerComplianceStore) ComplianceExport ¶
func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance, cursor model.ComplianceExportCursor, limit int) ([]*model.CompliancePost, model.ComplianceExportCursor, error)
func (*TimerLayerComplianceStore) Get ¶
func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, error)
func (*TimerLayerComplianceStore) GetAll ¶
func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, error)
func (*TimerLayerComplianceStore) MessageExport ¶
func (s *TimerLayerComplianceStore) MessageExport(cursor model.MessageExportCursor, limit int) ([]*model.MessageExport, model.MessageExportCursor, error)
func (*TimerLayerComplianceStore) Save ¶
func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, error)
func (*TimerLayerComplianceStore) Update ¶
func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error)
type TimerLayerEmojiStore ¶
type TimerLayerEmojiStore struct { store.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 { store.FileInfoStore Root *TimerLayer }
func (*TimerLayerFileInfoStore) AttachToPost ¶
func (s *TimerLayerFileInfoStore) AttachToPost(fileID string, postID string, creatorID string) error
func (*TimerLayerFileInfoStore) ClearCaches ¶
func (s *TimerLayerFileInfoStore) ClearCaches()
func (*TimerLayerFileInfoStore) CountAll ¶ added in v5.34.0
func (s *TimerLayerFileInfoStore) CountAll() (int64, error)
func (*TimerLayerFileInfoStore) DeleteForPost ¶
func (s *TimerLayerFileInfoStore) DeleteForPost(postID string) (string, error)
func (*TimerLayerFileInfoStore) Get ¶
func (s *TimerLayerFileInfoStore) Get(id string) (*model.FileInfo, error)
func (*TimerLayerFileInfoStore) GetByIds ¶ added in v5.32.0
func (s *TimerLayerFileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error)
func (*TimerLayerFileInfoStore) GetByPath ¶
func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, error)
func (*TimerLayerFileInfoStore) GetFilesBatchForIndexing ¶ added in v5.34.0
func (s *TimerLayerFileInfoStore) GetFilesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.FileForIndexing, error)
func (*TimerLayerFileInfoStore) GetForPost ¶
func (*TimerLayerFileInfoStore) GetForUser ¶
func (s *TimerLayerFileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error)
func (*TimerLayerFileInfoStore) GetFromMaster ¶ added in v5.35.0
func (s *TimerLayerFileInfoStore) GetFromMaster(id string) (*model.FileInfo, error)
func (*TimerLayerFileInfoStore) GetWithOptions ¶
func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, error)
func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache ¶
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted bool)
func (*TimerLayerFileInfoStore) PermanentDelete ¶
func (s *TimerLayerFileInfoStore) PermanentDelete(fileID string) error
func (*TimerLayerFileInfoStore) PermanentDeleteBatch ¶
func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
func (*TimerLayerFileInfoStore) PermanentDeleteByUser ¶
func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userID string) (int64, error)
func (*TimerLayerFileInfoStore) Search ¶ added in v5.32.0
func (s *TimerLayerFileInfoStore) Search(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.FileInfoList, error)
func (*TimerLayerFileInfoStore) SetContent ¶ added in v5.30.0
func (s *TimerLayerFileInfoStore) SetContent(fileID string, content string) error
type TimerLayerGroupStore ¶
type TimerLayerGroupStore struct { store.GroupStore Root *TimerLayer }
func (*TimerLayerGroupStore) AdminRoleGroupsForSyncableMember ¶
func (s *TimerLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, error)
func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
func (*TimerLayerGroupStore) ChannelMembersToAdd ¶
func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string, includeRemovedMembers bool) ([]*model.UserChannelIDPair, error)
func (*TimerLayerGroupStore) ChannelMembersToRemove ¶
func (s *TimerLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, error)
func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error)
func (*TimerLayerGroupStore) CountGroupsByChannel ¶
func (s *TimerLayerGroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error)
func (*TimerLayerGroupStore) CountGroupsByTeam ¶
func (s *TimerLayerGroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error)
func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error)
func (*TimerLayerGroupStore) CreateGroupSyncable ¶
func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
func (*TimerLayerGroupStore) Delete ¶
func (s *TimerLayerGroupStore) Delete(groupID string) (*model.Group, error)
func (*TimerLayerGroupStore) DeleteGroupSyncable ¶
func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
func (*TimerLayerGroupStore) DeleteMember ¶
func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, error)
func (*TimerLayerGroupStore) DistinctGroupMemberCount ¶
func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, error)
func (*TimerLayerGroupStore) Get ¶
func (s *TimerLayerGroupStore) Get(groupID string) (*model.Group, error)
func (*TimerLayerGroupStore) GetAllBySource ¶
func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, error)
func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId ¶
func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, error)
func (*TimerLayerGroupStore) GetByIDs ¶
func (s *TimerLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, error)
func (*TimerLayerGroupStore) GetByName ¶
func (s *TimerLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, error)
func (*TimerLayerGroupStore) GetByRemoteID ¶
func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, error)
func (*TimerLayerGroupStore) GetByUser ¶
func (s *TimerLayerGroupStore) GetByUser(userID string) ([]*model.Group, error)
func (*TimerLayerGroupStore) GetGroupSyncable ¶
func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, error)
func (*TimerLayerGroupStore) GetGroups ¶
func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, error)
func (*TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam ¶
func (s *TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamID string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, error)
func (*TimerLayerGroupStore) GetGroupsByChannel ¶
func (s *TimerLayerGroupStore) GetGroupsByChannel(channelID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
func (*TimerLayerGroupStore) GetGroupsByTeam ¶
func (s *TimerLayerGroupStore) GetGroupsByTeam(teamID string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, error)
func (*TimerLayerGroupStore) GetMemberCount ¶
func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, error)
func (*TimerLayerGroupStore) GetMemberUsers ¶
func (s *TimerLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, error)
func (*TimerLayerGroupStore) GetMemberUsersInTeam ¶
func (*TimerLayerGroupStore) GetMemberUsersNotInChannel ¶
func (*TimerLayerGroupStore) GetMemberUsersPage ¶
func (*TimerLayerGroupStore) GroupChannelCount ¶
func (s *TimerLayerGroupStore) GroupChannelCount() (int64, error)
func (*TimerLayerGroupStore) GroupCount ¶
func (s *TimerLayerGroupStore) GroupCount() (int64, error)
func (*TimerLayerGroupStore) GroupCountWithAllowReference ¶
func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, error)
func (*TimerLayerGroupStore) GroupMemberCount ¶
func (s *TimerLayerGroupStore) GroupMemberCount() (int64, error)
func (*TimerLayerGroupStore) GroupTeamCount ¶
func (s *TimerLayerGroupStore) GroupTeamCount() (int64, error)
func (*TimerLayerGroupStore) PermanentDeleteMembersByUser ¶
func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userID string) error
func (*TimerLayerGroupStore) PermittedSyncableAdmins ¶
func (s *TimerLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, error)
func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, error)
func (*TimerLayerGroupStore) TeamMembersToAdd ¶
func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64, teamID *string, includeRemovedMembers bool) ([]*model.UserTeamIDPair, error)
func (*TimerLayerGroupStore) TeamMembersToRemove ¶
func (s *TimerLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, error)
func (*TimerLayerGroupStore) UpdateGroupSyncable ¶
func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, error)
func (*TimerLayerGroupStore) UpsertMember ¶
func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, error)
type TimerLayerJobStore ¶
type TimerLayerJobStore struct { store.JobStore Root *TimerLayer }
func (*TimerLayerJobStore) GetAllByStatus ¶
func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, error)
func (*TimerLayerJobStore) GetAllByType ¶
func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, error)
func (*TimerLayerJobStore) GetAllByTypePage ¶
func (*TimerLayerJobStore) GetAllByTypesPage ¶ added in v5.35.0
func (*TimerLayerJobStore) GetAllPage ¶
func (*TimerLayerJobStore) GetCountByStatusAndType ¶
func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, error)
func (*TimerLayerJobStore) GetNewestJobByStatusAndType ¶
func (*TimerLayerJobStore) GetNewestJobByStatusesAndType ¶
func (*TimerLayerJobStore) UpdateOptimistically ¶
func (*TimerLayerJobStore) UpdateStatus ¶
func (*TimerLayerJobStore) UpdateStatusOptimistically ¶
type TimerLayerLicenseStore ¶
type TimerLayerLicenseStore struct { store.LicenseStore Root *TimerLayer }
func (*TimerLayerLicenseStore) Get ¶
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, error)
func (*TimerLayerLicenseStore) GetAll ¶ added in v5.37.0
func (s *TimerLayerLicenseStore) GetAll() ([]*model.LicenseRecord, error)
func (*TimerLayerLicenseStore) Save ¶
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error)
type TimerLayerLinkMetadataStore ¶
type TimerLayerLinkMetadataStore struct { store.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 { store.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 { store.PluginStore Root *TimerLayer }
func (*TimerLayerPluginStore) CompareAndDelete ¶
func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
func (*TimerLayerPluginStore) CompareAndSet ¶
func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, error)
func (*TimerLayerPluginStore) Delete ¶
func (s *TimerLayerPluginStore) Delete(pluginID string, key string) error
func (*TimerLayerPluginStore) DeleteAllExpired ¶
func (s *TimerLayerPluginStore) DeleteAllExpired() error
func (*TimerLayerPluginStore) DeleteAllForPlugin ¶
func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginID string) error
func (*TimerLayerPluginStore) Get ¶
func (s *TimerLayerPluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error)
func (*TimerLayerPluginStore) SaveOrUpdate ¶
func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error)
func (*TimerLayerPluginStore) SetWithOptions ¶
func (s *TimerLayerPluginStore) SetWithOptions(pluginID string, key string, value []byte, options model.PluginKVSetOptions) (bool, error)
type TimerLayerPostStore ¶
type TimerLayerPostStore struct { store.PostStore Root *TimerLayer }
func (*TimerLayerPostStore) AnalyticsPostCount ¶
func (*TimerLayerPostStore) AnalyticsPostCountsByDay ¶
func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, error)
func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay ¶
func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error)
func (*TimerLayerPostStore) ClearCaches ¶
func (s *TimerLayerPostStore) ClearCaches()
func (*TimerLayerPostStore) Delete ¶
func (s *TimerLayerPostStore) Delete(postID string, time int64, deleteByID string) error
func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterID string) ([]*model.DirectPostForExport, error)
func (*TimerLayerPostStore) GetEtag ¶
func (s *TimerLayerPostStore) GetEtag(channelID string, allowFromCache bool, collapsedThreads 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, error)
func (*TimerLayerPostStore) GetOldestEntityCreationTime ¶
func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, error)
func (*TimerLayerPostStore) GetParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterID string) ([]*model.PostForExport, error)
func (*TimerLayerPostStore) GetPostAfterTime ¶
func (*TimerLayerPostStore) GetPostIdAfterTime ¶
func (*TimerLayerPostStore) GetPostIdBeforeTime ¶
func (*TimerLayerPostStore) GetPosts ¶
func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, error)
func (*TimerLayerPostStore) GetPostsAfter ¶
func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, error)
func (*TimerLayerPostStore) GetPostsBatchForIndexing ¶
func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, error)
func (*TimerLayerPostStore) GetPostsBefore ¶
func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, error)
func (*TimerLayerPostStore) GetPostsByIds ¶
func (s *TimerLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, error)
func (*TimerLayerPostStore) GetPostsCreatedAt ¶
func (*TimerLayerPostStore) GetPostsSince ¶
func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, error)
func (*TimerLayerPostStore) GetPostsSinceForSync ¶ added in v5.35.0
func (s *TimerLayerPostStore) GetPostsSinceForSync(options model.GetPostsSinceForSyncOptions, cursor model.GetPostsSinceForSyncCursor, limit int) ([]*model.Post, model.GetPostsSinceForSyncCursor, error)
func (*TimerLayerPostStore) GetRepliesForExport ¶
func (s *TimerLayerPostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error)
func (*TimerLayerPostStore) HasAutoResponsePostByUserSince ¶ added in v5.36.0
func (s *TimerLayerPostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error)
func (*TimerLayerPostStore) InvalidateLastPostTimeCache ¶
func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelID string)
func (*TimerLayerPostStore) OverwriteMultiple ¶
func (*TimerLayerPostStore) PermanentDeleteBatch ¶
func (s *TimerLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
func (*TimerLayerPostStore) PermanentDeleteByChannel ¶
func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelID string) error
func (*TimerLayerPostStore) PermanentDeleteByUser ¶
func (s *TimerLayerPostStore) PermanentDeleteByUser(userID string) error
func (*TimerLayerPostStore) SaveMultiple ¶
func (*TimerLayerPostStore) Search ¶
func (s *TimerLayerPostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error)
func (*TimerLayerPostStore) SearchPostsInTeamForUser ¶
func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.PostSearchResults, error)
type TimerLayerPreferenceStore ¶
type TimerLayerPreferenceStore struct { store.PreferenceStore Root *TimerLayer }
func (*TimerLayerPreferenceStore) CleanupFlagsBatch ¶
func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, error)
func (*TimerLayerPreferenceStore) Delete ¶
func (s *TimerLayerPreferenceStore) Delete(userID string, category string, name string) error
func (*TimerLayerPreferenceStore) DeleteCategory ¶
func (s *TimerLayerPreferenceStore) DeleteCategory(userID string, category string) error
func (*TimerLayerPreferenceStore) DeleteCategoryAndName ¶
func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) error
func (*TimerLayerPreferenceStore) Get ¶
func (s *TimerLayerPreferenceStore) Get(userID string, category string, name string) (*model.Preference, error)
func (*TimerLayerPreferenceStore) GetAll ¶
func (s *TimerLayerPreferenceStore) GetAll(userID string) (model.Preferences, error)
func (*TimerLayerPreferenceStore) GetCategory ¶
func (s *TimerLayerPreferenceStore) GetCategory(userID string, category string) (model.Preferences, error)
func (*TimerLayerPreferenceStore) PermanentDeleteByUser ¶
func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userID string) error
func (*TimerLayerPreferenceStore) Save ¶
func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) error
type TimerLayerProductNoticesStore ¶
type TimerLayerProductNoticesStore struct { store.ProductNoticesStore Root *TimerLayer }
func (*TimerLayerProductNoticesStore) Clear ¶
func (s *TimerLayerProductNoticesStore) Clear(notices []string) error
func (*TimerLayerProductNoticesStore) ClearOldNotices ¶
func (s *TimerLayerProductNoticesStore) ClearOldNotices(currentNotices *model.ProductNotices) error
func (*TimerLayerProductNoticesStore) GetViews ¶
func (s *TimerLayerProductNoticesStore) GetViews(userID string) ([]model.ProductNoticeViewState, error)
type TimerLayerReactionStore ¶
type TimerLayerReactionStore struct { store.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) GetForPostSince ¶ added in v5.35.0
func (*TimerLayerReactionStore) PermanentDeleteBatch ¶
func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)
type TimerLayerRemoteClusterStore ¶ added in v5.35.0
type TimerLayerRemoteClusterStore struct { store.RemoteClusterStore Root *TimerLayer }
func (*TimerLayerRemoteClusterStore) Delete ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) Delete(remoteClusterId string) (bool, error)
func (*TimerLayerRemoteClusterStore) Get ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error)
func (*TimerLayerRemoteClusterStore) GetAll ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) GetAll(filter model.RemoteClusterQueryFilter) ([]*model.RemoteCluster, error)
func (*TimerLayerRemoteClusterStore) Save ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) Save(rc *model.RemoteCluster) (*model.RemoteCluster, error)
func (*TimerLayerRemoteClusterStore) SetLastPingAt ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) SetLastPingAt(remoteClusterId string) error
func (*TimerLayerRemoteClusterStore) Update ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) Update(rc *model.RemoteCluster) (*model.RemoteCluster, error)
func (*TimerLayerRemoteClusterStore) UpdateTopics ¶ added in v5.35.0
func (s *TimerLayerRemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error)
type TimerLayerRetentionPolicyStore ¶ added in v5.36.0
type TimerLayerRetentionPolicyStore struct { store.RetentionPolicyStore Root *TimerLayer }
func (*TimerLayerRetentionPolicyStore) AddChannels ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) AddChannels(policyId string, channelIds []string) error
func (*TimerLayerRetentionPolicyStore) AddTeams ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) AddTeams(policyId string, teamIds []string) error
func (*TimerLayerRetentionPolicyStore) Delete ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) Delete(id string) error
func (*TimerLayerRetentionPolicyStore) Get ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) Get(id string) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
func (*TimerLayerRetentionPolicyStore) GetAll ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetAll(offset int, limit int) ([]*model.RetentionPolicyWithTeamAndChannelCounts, error)
func (*TimerLayerRetentionPolicyStore) GetChannelPoliciesCountForUser ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error)
func (*TimerLayerRetentionPolicyStore) GetChannelPoliciesForUser ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error)
func (*TimerLayerRetentionPolicyStore) GetChannels ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error)
func (*TimerLayerRetentionPolicyStore) GetChannelsCount ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)
func (*TimerLayerRetentionPolicyStore) GetCount ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetCount() (int64, error)
func (*TimerLayerRetentionPolicyStore) GetTeamPoliciesCountForUser ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error)
func (*TimerLayerRetentionPolicyStore) GetTeamPoliciesForUser ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error)
func (*TimerLayerRetentionPolicyStore) GetTeamsCount ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) GetTeamsCount(policyId string) (int64, error)
func (*TimerLayerRetentionPolicyStore) Patch ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) Patch(patch *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
func (*TimerLayerRetentionPolicyStore) RemoveChannels ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error
func (*TimerLayerRetentionPolicyStore) RemoveTeams ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error
func (*TimerLayerRetentionPolicyStore) Save ¶ added in v5.36.0
func (s *TimerLayerRetentionPolicyStore) Save(policy *model.RetentionPolicyWithTeamAndChannelIDs) (*model.RetentionPolicyWithTeamAndChannelCounts, error)
type TimerLayerRoleStore ¶
type TimerLayerRoleStore struct { store.RoleStore Root *TimerLayer }
func (*TimerLayerRoleStore) AllChannelSchemeRoles ¶
func (s *TimerLayerRoleStore) AllChannelSchemeRoles() ([]*model.Role, error)
func (*TimerLayerRoleStore) ChannelHigherScopedPermissions ¶
func (s *TimerLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, error)
func (*TimerLayerRoleStore) ChannelRolesUnderTeamRole ¶
func (s *TimerLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error)
func (*TimerLayerRoleStore) Delete ¶
func (s *TimerLayerRoleStore) Delete(roleID string) (*model.Role, error)
func (*TimerLayerRoleStore) Get ¶
func (s *TimerLayerRoleStore) Get(roleID string) (*model.Role, error)
func (*TimerLayerRoleStore) GetByNames ¶
func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, error)
func (*TimerLayerRoleStore) PermanentDeleteAll ¶
func (s *TimerLayerRoleStore) PermanentDeleteAll() error
type TimerLayerSchemeStore ¶
type TimerLayerSchemeStore struct { store.SchemeStore Root *TimerLayer }
func (*TimerLayerSchemeStore) CountByScope ¶
func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, error)
func (*TimerLayerSchemeStore) CountWithoutPermission ¶
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 { store.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) GetSessions ¶
func (s *TimerLayerSessionStore) GetSessions(userID string) ([]*model.Session, error)
func (*TimerLayerSessionStore) GetSessionsExpired ¶
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 ¶
func (s *TimerLayerSessionStore) UpdateExpiredNotify(sessionid string, notified bool) error
func (*TimerLayerSessionStore) UpdateExpiresAt ¶
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 TimerLayerSharedChannelStore ¶ added in v5.35.0
type TimerLayerSharedChannelStore struct {}
func (*TimerLayerSharedChannelStore) Delete ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) Delete(channelId string) (bool, error)
func (*TimerLayerSharedChannelStore) DeleteRemote ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) DeleteRemote(remoteId string) (bool, error)
func (*TimerLayerSharedChannelStore) Get ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) Get(channelId string) (*model.SharedChannel, error)
func (*TimerLayerSharedChannelStore) GetAll ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetAll(offset int, limit int, opts model.SharedChannelFilterOpts) ([]*model.SharedChannel, error)
func (*TimerLayerSharedChannelStore) GetAllCount ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetAllCount(opts model.SharedChannelFilterOpts) (int64, error)
func (*TimerLayerSharedChannelStore) GetAttachment ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error)
func (*TimerLayerSharedChannelStore) GetRemote ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetRemote(id string) (*model.SharedChannelRemote, error)
func (*TimerLayerSharedChannelStore) GetRemoteByIds ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error)
func (*TimerLayerSharedChannelStore) GetRemoteForUser ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error)
func (*TimerLayerSharedChannelStore) GetRemotes ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetRemotes(opts model.SharedChannelRemoteFilterOpts) ([]*model.SharedChannelRemote, error)
func (*TimerLayerSharedChannelStore) GetRemotesStatus ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error)
func (*TimerLayerSharedChannelStore) GetSingleUser ¶ added in v5.36.0
func (s *TimerLayerSharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error)
func (*TimerLayerSharedChannelStore) GetUsersForSync ¶ added in v5.36.0
func (s *TimerLayerSharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error)
func (*TimerLayerSharedChannelStore) GetUsersForUser ¶ added in v5.36.0
func (s *TimerLayerSharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error)
func (*TimerLayerSharedChannelStore) HasChannel ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) HasChannel(channelID string) (bool, error)
func (*TimerLayerSharedChannelStore) HasRemote ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error)
func (*TimerLayerSharedChannelStore) Save ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) Save(sc *model.SharedChannel) (*model.SharedChannel, error)
func (*TimerLayerSharedChannelStore) SaveAttachment ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) SaveAttachment(remote *model.SharedChannelAttachment) (*model.SharedChannelAttachment, error)
func (*TimerLayerSharedChannelStore) SaveRemote ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) SaveRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
func (*TimerLayerSharedChannelStore) SaveUser ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) SaveUser(remote *model.SharedChannelUser) (*model.SharedChannelUser, error)
func (*TimerLayerSharedChannelStore) Update ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) Update(sc *model.SharedChannel) (*model.SharedChannel, error)
func (*TimerLayerSharedChannelStore) UpdateAttachmentLastSyncAt ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error
func (*TimerLayerSharedChannelStore) UpdateRemote ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) UpdateRemote(remote *model.SharedChannelRemote) (*model.SharedChannelRemote, error)
func (*TimerLayerSharedChannelStore) UpdateRemoteCursor ¶ added in v5.36.0
func (s *TimerLayerSharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error
func (*TimerLayerSharedChannelStore) UpdateUserLastSyncAt ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error
func (*TimerLayerSharedChannelStore) UpsertAttachment ¶ added in v5.35.0
func (s *TimerLayerSharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error)
type TimerLayerStatusStore ¶
type TimerLayerStatusStore struct { store.StatusStore Root *TimerLayer }
func (*TimerLayerStatusStore) Get ¶
func (s *TimerLayerStatusStore) Get(userID string) (*model.Status, error)
func (*TimerLayerStatusStore) GetByIds ¶
func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, error)
func (*TimerLayerStatusStore) GetTotalActiveUsersCount ¶
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, error)
func (*TimerLayerStatusStore) ResetAll ¶
func (s *TimerLayerStatusStore) ResetAll() error
func (*TimerLayerStatusStore) SaveOrUpdate ¶
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) error
func (*TimerLayerStatusStore) UpdateExpiredDNDStatuses ¶ added in v5.37.0
func (s *TimerLayerStatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error)
func (*TimerLayerStatusStore) UpdateLastActivityAt ¶
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error
type TimerLayerSystemStore ¶
type TimerLayerSystemStore struct { store.SystemStore Root *TimerLayer }
func (*TimerLayerSystemStore) GetByName ¶
func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, error)
func (*TimerLayerSystemStore) InsertIfExists ¶
func (*TimerLayerSystemStore) PermanentDeleteByName ¶
func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, error)
func (*TimerLayerSystemStore) Save ¶
func (s *TimerLayerSystemStore) Save(system *model.System) error
func (*TimerLayerSystemStore) SaveOrUpdate ¶
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) error
func (*TimerLayerSystemStore) SaveOrUpdateWithWarnMetricHandling ¶
func (s *TimerLayerSystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error
type TimerLayerTeamStore ¶
type TimerLayerTeamStore struct { store.TeamStore Root *TimerLayer }
func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme ¶
func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, error)
func (*TimerLayerTeamStore) AnalyticsTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error)
func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() error
func (*TimerLayerTeamStore) ClearCaches ¶
func (s *TimerLayerTeamStore) ClearCaches()
func (*TimerLayerTeamStore) GetActiveMemberCount ¶
func (s *TimerLayerTeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
func (*TimerLayerTeamStore) GetAllForExportAfter ¶
func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterID string) ([]*model.TeamForExport, error)
func (*TimerLayerTeamStore) GetAllPage ¶
func (s *TimerLayerTeamStore) GetAllPage(offset int, limit int, opts *model.TeamSearch) ([]*model.Team, error)
func (*TimerLayerTeamStore) GetAllPrivateTeamListing ¶
func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, error)
func (*TimerLayerTeamStore) GetAllTeamListing ¶
func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, error)
func (*TimerLayerTeamStore) GetByInviteId ¶
func (s *TimerLayerTeamStore) GetByInviteId(inviteID string) (*model.Team, error)
func (*TimerLayerTeamStore) GetByName ¶
func (s *TimerLayerTeamStore) GetByName(name string) (*model.Team, error)
func (*TimerLayerTeamStore) GetByNames ¶
func (s *TimerLayerTeamStore) GetByNames(name []string) ([]*model.Team, error)
func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error)
func (*TimerLayerTeamStore) GetChannelUnreadsForTeam ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error)
func (*TimerLayerTeamStore) GetCommonTeamIDsForTwoUsers ¶ added in v5.36.0
func (s *TimerLayerTeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error)
func (*TimerLayerTeamStore) GetMember ¶
func (s *TimerLayerTeamStore) GetMember(ctx context.Context, teamID string, userID string) (*model.TeamMember, error)
func (*TimerLayerTeamStore) GetMembers ¶
func (s *TimerLayerTeamStore) GetMembers(teamID string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) GetMembersByIds ¶
func (s *TimerLayerTeamStore) GetMembersByIds(teamID string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) GetTeamMembersForExport ¶
func (s *TimerLayerTeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error)
func (*TimerLayerTeamStore) GetTeamsByScheme ¶
func (*TimerLayerTeamStore) GetTeamsByUserId ¶
func (s *TimerLayerTeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error)
func (*TimerLayerTeamStore) GetTeamsForUser ¶
func (s *TimerLayerTeamStore) GetTeamsForUser(ctx context.Context, userID string) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) GetTeamsForUserWithPagination ¶
func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userID string, page int, perPage int) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) GetTotalMemberCount ¶
func (s *TimerLayerTeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)
func (*TimerLayerTeamStore) GetUserTeamIds ¶
func (s *TimerLayerTeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, error)
func (*TimerLayerTeamStore) GroupSyncedTeamCount ¶
func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, error)
func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser ¶
func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userID string)
func (*TimerLayerTeamStore) MigrateTeamMembers ¶
func (*TimerLayerTeamStore) PermanentDelete ¶
func (s *TimerLayerTeamStore) PermanentDelete(teamID string) error
func (*TimerLayerTeamStore) RemoveAllMembersByTeam ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamID string) error
func (*TimerLayerTeamStore) RemoveAllMembersByUser ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userID string) error
func (*TimerLayerTeamStore) RemoveMember ¶
func (s *TimerLayerTeamStore) RemoveMember(teamID string, userID string) error
func (*TimerLayerTeamStore) RemoveMembers ¶
func (s *TimerLayerTeamStore) RemoveMembers(teamID string, userIds []string) error
func (*TimerLayerTeamStore) ResetAllTeamSchemes ¶
func (s *TimerLayerTeamStore) ResetAllTeamSchemes() error
func (*TimerLayerTeamStore) SaveMember ¶
func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, error)
func (*TimerLayerTeamStore) SaveMultipleMembers ¶
func (s *TimerLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) SearchAll ¶
func (s *TimerLayerTeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error)
func (*TimerLayerTeamStore) SearchAllPaged ¶
func (s *TimerLayerTeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int64, error)
func (*TimerLayerTeamStore) SearchOpen ¶
func (s *TimerLayerTeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error)
func (*TimerLayerTeamStore) SearchPrivate ¶
func (s *TimerLayerTeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error)
func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate ¶
func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) error
func (*TimerLayerTeamStore) UpdateMember ¶
func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, error)
func (*TimerLayerTeamStore) UpdateMembersRole ¶
func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) error
func (*TimerLayerTeamStore) UpdateMultipleMembers ¶
func (s *TimerLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, error)
func (*TimerLayerTeamStore) UserBelongsToTeams ¶
func (s *TimerLayerTeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool, error)
type TimerLayerTermsOfServiceStore ¶
type TimerLayerTermsOfServiceStore struct { store.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 TimerLayerThreadStore ¶ added in v5.29.0
type TimerLayerThreadStore struct { store.ThreadStore Root *TimerLayer }
func (*TimerLayerThreadStore) CollectThreadsWithNewerReplies ¶ added in v5.29.0
func (*TimerLayerThreadStore) Delete ¶ added in v5.29.0
func (s *TimerLayerThreadStore) Delete(postID string) error
func (*TimerLayerThreadStore) DeleteMembershipForUser ¶ added in v5.29.0
func (s *TimerLayerThreadStore) DeleteMembershipForUser(userId string, postID string) error
func (*TimerLayerThreadStore) Get ¶ added in v5.29.0
func (s *TimerLayerThreadStore) Get(id string) (*model.Thread, error)
func (*TimerLayerThreadStore) GetMembershipForUser ¶ added in v5.29.0
func (s *TimerLayerThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error)
func (*TimerLayerThreadStore) GetMembershipsForUser ¶ added in v5.29.0
func (s *TimerLayerThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error)
func (*TimerLayerThreadStore) GetThreadFollowers ¶ added in v5.36.0
func (s *TimerLayerThreadStore) GetThreadFollowers(threadID string) ([]string, error)
func (*TimerLayerThreadStore) GetThreadForUser ¶ added in v5.33.0
func (s *TimerLayerThreadStore) GetThreadForUser(teamID string, threadMembership *model.ThreadMembership, extended bool) (*model.ThreadResponse, error)
func (*TimerLayerThreadStore) GetThreadsForUser ¶ added in v5.30.0
func (s *TimerLayerThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) (*model.Threads, error)
func (*TimerLayerThreadStore) MaintainMembership ¶ added in v5.34.0
func (s *TimerLayerThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error)
func (*TimerLayerThreadStore) MarkAllAsRead ¶ added in v5.30.0
func (s *TimerLayerThreadStore) MarkAllAsRead(userID string, teamID string) error
func (*TimerLayerThreadStore) MarkAllAsReadInChannels ¶ added in v5.37.0
func (s *TimerLayerThreadStore) MarkAllAsReadInChannels(userID string, channelIDs []string) error
func (*TimerLayerThreadStore) MarkAsRead ¶ added in v5.30.0
func (s *TimerLayerThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error
func (*TimerLayerThreadStore) SaveMembership ¶ added in v5.29.0
func (s *TimerLayerThreadStore) SaveMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
func (*TimerLayerThreadStore) SaveMultiple ¶ added in v5.29.0
func (*TimerLayerThreadStore) UpdateMembership ¶ added in v5.29.0
func (s *TimerLayerThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)
func (*TimerLayerThreadStore) UpdateUnreadsByChannel ¶ added in v5.29.0
type TimerLayerTokenStore ¶
type TimerLayerTokenStore struct { store.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 TimerLayerUploadSessionStore ¶
type TimerLayerUploadSessionStore struct { store.UploadSessionStore Root *TimerLayer }
func (*TimerLayerUploadSessionStore) Delete ¶
func (s *TimerLayerUploadSessionStore) Delete(id string) error
func (*TimerLayerUploadSessionStore) Get ¶
func (s *TimerLayerUploadSessionStore) Get(id string) (*model.UploadSession, error)
func (*TimerLayerUploadSessionStore) GetForUser ¶
func (s *TimerLayerUploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error)
func (*TimerLayerUploadSessionStore) Save ¶
func (s *TimerLayerUploadSessionStore) Save(session *model.UploadSession) (*model.UploadSession, error)
func (*TimerLayerUploadSessionStore) Update ¶
func (s *TimerLayerUploadSessionStore) Update(session *model.UploadSession) error
type TimerLayerUserAccessTokenStore ¶
type TimerLayerUserAccessTokenStore struct { store.UserAccessTokenStore Root *TimerLayer }
func (*TimerLayerUserAccessTokenStore) Delete ¶
func (s *TimerLayerUserAccessTokenStore) Delete(tokenID string) error
func (*TimerLayerUserAccessTokenStore) DeleteAllForUser ¶
func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userID string) error
func (*TimerLayerUserAccessTokenStore) Get ¶
func (s *TimerLayerUserAccessTokenStore) Get(tokenID string) (*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) GetAll ¶
func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) GetByToken ¶
func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) GetByUser ¶
func (s *TimerLayerUserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) Save ¶
func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) Search ¶
func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, error)
func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenID string) error
func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenID string) error
type TimerLayerUserStore ¶
type TimerLayerUserStore struct { store.UserStore Root *TimerLayer }
func (*TimerLayerUserStore) AnalyticsActiveCount ¶
func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error)
func (*TimerLayerUserStore) AnalyticsActiveCountForPeriod ¶ added in v5.30.0
func (s *TimerLayerUserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error)
func (*TimerLayerUserStore) AnalyticsGetExternalUsers ¶
func (s *TimerLayerUserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)
func (*TimerLayerUserStore) AnalyticsGetGuestCount ¶
func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (int64, error)
func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount ¶
func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, error)
func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount ¶
func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, error)
func (*TimerLayerUserStore) AutocompleteUsersInChannel ¶
func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)
func (*TimerLayerUserStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() error
func (*TimerLayerUserStore) ClearCaches ¶
func (s *TimerLayerUserStore) ClearCaches()
func (*TimerLayerUserStore) Count ¶
func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, error)
func (*TimerLayerUserStore) DeactivateGuests ¶
func (s *TimerLayerUserStore) DeactivateGuests() ([]string, error)
func (*TimerLayerUserStore) DemoteUserToGuest ¶
func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) (*model.User, error)
func (*TimerLayerUserStore) GetAllAfter ¶
func (*TimerLayerUserStore) GetAllNotInAuthService ¶
func (s *TimerLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, error)
func (*TimerLayerUserStore) GetAllProfiles ¶
func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, error)
func (*TimerLayerUserStore) GetAllProfilesInChannel ¶
func (*TimerLayerUserStore) GetAllUsingAuthService ¶
func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, error)
func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel ¶
func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error)
func (*TimerLayerUserStore) GetByEmail ¶
func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, error)
func (*TimerLayerUserStore) GetByUsername ¶
func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, error)
func (*TimerLayerUserStore) GetChannelGroupUsers ¶
func (s *TimerLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, error)
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 ¶
func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, error)
func (*TimerLayerUserStore) GetNewUsersForTeam ¶
func (s *TimerLayerUserStore) GetNewUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser ¶
func (*TimerLayerUserStore) GetProfileByIds ¶
func (s *TimerLayerUserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfiles ¶
func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfilesByUsernames ¶
func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfilesInChannel ¶
func (s *TimerLayerUserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfilesInChannelByStatus ¶
func (s *TimerLayerUserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfilesNotInChannel ¶
func (*TimerLayerUserStore) GetProfilesNotInTeam ¶
func (s *TimerLayerUserStore) GetProfilesNotInTeam(teamID string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
func (*TimerLayerUserStore) GetProfilesWithoutTeam ¶
func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, error)
func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam ¶
func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamID string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, error)
func (*TimerLayerUserStore) GetSystemAdminProfiles ¶
func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, error)
func (*TimerLayerUserStore) GetTeamGroupUsers ¶
func (s *TimerLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, error)
func (*TimerLayerUserStore) GetUnreadCount ¶
func (s *TimerLayerUserStore) GetUnreadCount(userID string) (int64, error)
func (*TimerLayerUserStore) GetUnreadCountForChannel ¶
func (s *TimerLayerUserStore) GetUnreadCountForChannel(userID string, channelID string) (int64, error)
func (*TimerLayerUserStore) GetUsersBatchForIndexing ¶
func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, error)
func (*TimerLayerUserStore) InferSystemInstallDate ¶
func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, error)
func (*TimerLayerUserStore) InvalidateProfileCacheForUser ¶
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) error
func (*TimerLayerUserStore) PromoteGuestToUser ¶
func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) error
func (*TimerLayerUserStore) ResetAuthDataToEmailForUsers ¶ added in v5.36.0
func (*TimerLayerUserStore) ResetLastPictureUpdate ¶
func (s *TimerLayerUserStore) ResetLastPictureUpdate(userID string) error
func (*TimerLayerUserStore) Search ¶
func (s *TimerLayerUserStore) Search(teamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) SearchInChannel ¶
func (s *TimerLayerUserStore) SearchInChannel(channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) SearchInGroup ¶
func (s *TimerLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) SearchNotInChannel ¶
func (s *TimerLayerUserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) SearchNotInTeam ¶
func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamID string, term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) SearchWithoutTeam ¶
func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, error)
func (*TimerLayerUserStore) Update ¶
func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, error)
func (*TimerLayerUserStore) UpdateAuthData ¶
func (*TimerLayerUserStore) UpdateFailedPasswordAttempts ¶
func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userID string, attempts int) error
func (*TimerLayerUserStore) UpdateLastPictureUpdate ¶
func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userID string) error
func (*TimerLayerUserStore) UpdateMfaActive ¶
func (s *TimerLayerUserStore) UpdateMfaActive(userID string, active bool) error
func (*TimerLayerUserStore) UpdateMfaSecret ¶
func (s *TimerLayerUserStore) UpdateMfaSecret(userID string, secret string) error
func (*TimerLayerUserStore) UpdatePassword ¶
func (s *TimerLayerUserStore) UpdatePassword(userID string, newPassword string) error
func (*TimerLayerUserStore) UpdateUpdateAt ¶
func (s *TimerLayerUserStore) UpdateUpdateAt(userID string) (int64, error)
func (*TimerLayerUserStore) VerifyEmail ¶
func (s *TimerLayerUserStore) VerifyEmail(userID string, email string) (string, error)
type TimerLayerUserTermsOfServiceStore ¶
type TimerLayerUserTermsOfServiceStore struct { store.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 { store.WebhookStore Root *TimerLayer }
func (*TimerLayerWebhookStore) AnalyticsIncomingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamID string) (int64, error)
func (*TimerLayerWebhookStore) AnalyticsOutgoingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error)
func (*TimerLayerWebhookStore) ClearCaches ¶
func (s *TimerLayerWebhookStore) ClearCaches()
func (*TimerLayerWebhookStore) DeleteIncoming ¶
func (s *TimerLayerWebhookStore) DeleteIncoming(webhookID string, time int64) error
func (*TimerLayerWebhookStore) DeleteOutgoing ¶
func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookID string, time int64) error
func (*TimerLayerWebhookStore) GetIncoming ¶
func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetIncomingByChannel ¶
func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetIncomingByTeam ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetIncomingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetIncomingList ¶
func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetIncomingListByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoing ¶
func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingByTeam ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingList ¶
func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) GetOutgoingListByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) InvalidateWebhookCache ¶
func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelID string) error
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userID string) error
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userID string) error
func (*TimerLayerWebhookStore) SaveIncoming ¶
func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) SaveOutgoing ¶
func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
func (*TimerLayerWebhookStore) UpdateIncoming ¶
func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)
func (*TimerLayerWebhookStore) UpdateOutgoing ¶
func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, error)
Click to show internal directories.
Click to hide internal directories.