Documentation ¶
Index ¶
- Constants
- type AuditStore
- type BotStore
- type ChannelMemberHistoryStore
- type ChannelSearchOpts
- type ChannelStore
- type ClusterDiscoveryStore
- type CommandStore
- type CommandWebhookStore
- type ComplianceStore
- type EmojiStore
- type FileInfoStore
- type GroupStore
- type IntegrityCheckResult
- type JobStore
- type LicenseStore
- type LinkMetadataStore
- type OAuthStore
- type OrphanedRecord
- type PluginStore
- type PostStore
- type PreferenceStore
- type ReactionStore
- type RelationalIntegrityCheckData
- type RoleStore
- type SchemeStore
- type SessionStore
- type StatusStore
- type Store
- type StoreResult
- type SystemStore
- type TeamStore
- type TermsOfServiceStore
- type TimerLayer
- func (s *TimerLayer) Audit() AuditStore
- func (s *TimerLayer) Bot() BotStore
- func (s *TimerLayer) Channel() ChannelStore
- func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore
- func (s *TimerLayer) Close()
- func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
- func (s *TimerLayer) Command() CommandStore
- func (s *TimerLayer) CommandWebhook() CommandWebhookStore
- func (s *TimerLayer) Compliance() ComplianceStore
- func (s *TimerLayer) DropAllTables()
- func (s *TimerLayer) Emoji() EmojiStore
- func (s *TimerLayer) FileInfo() FileInfoStore
- func (s *TimerLayer) GetCurrentSchemaVersion() string
- func (s *TimerLayer) Group() GroupStore
- func (s *TimerLayer) Job() JobStore
- func (s *TimerLayer) License() LicenseStore
- func (s *TimerLayer) LinkMetadata() LinkMetadataStore
- func (s *TimerLayer) LockToMaster()
- func (s *TimerLayer) MarkSystemRanUnitTests()
- func (s *TimerLayer) OAuth() OAuthStore
- func (s *TimerLayer) Plugin() PluginStore
- func (s *TimerLayer) Post() PostStore
- func (s *TimerLayer) Preference() PreferenceStore
- func (s *TimerLayer) Reaction() ReactionStore
- func (s *TimerLayer) Role() RoleStore
- func (s *TimerLayer) Scheme() SchemeStore
- func (s *TimerLayer) Session() SessionStore
- func (s *TimerLayer) Status() StatusStore
- func (s *TimerLayer) System() SystemStore
- func (s *TimerLayer) Team() TeamStore
- func (s *TimerLayer) TermsOfService() TermsOfServiceStore
- func (s *TimerLayer) Token() TokenStore
- func (s *TimerLayer) TotalMasterDbConnections() int
- func (s *TimerLayer) TotalReadDbConnections() int
- func (s *TimerLayer) TotalSearchDbConnections() int
- func (s *TimerLayer) UnlockFromMaster()
- func (s *TimerLayer) User() UserStore
- func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
- func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
- func (s *TimerLayer) Webhook() WebhookStore
- type TimerLayerAuditStore
- func (s *TimerLayerAuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)
- func (s *TimerLayerAuditStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerAuditStore) Save(audit *model.Audit) *model.AppError
- type TimerLayerBotStore
- func (s *TimerLayerBotStore) Get(userId string, includeDeleted bool) (*model.Bot, *model.AppError)
- func (s *TimerLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
- func (s *TimerLayerBotStore) PermanentDelete(userId string) *model.AppError
- func (s *TimerLayerBotStore) Save(bot *model.Bot) (*model.Bot, *model.AppError)
- func (s *TimerLayerBotStore) Update(bot *model.Bot) (*model.Bot, *model.AppError)
- type TimerLayerChannelMemberHistoryStore
- func (s *TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
- func (s *TimerLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError
- func (s *TimerLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError
- func (s *TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- type TimerLayerChannelStore
- func (s *TimerLayerChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerChannelStore) ClearCaches()
- func (s *TimerLayerChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) Delete(channelId string, time int64) *model.AppError
- func (s *TimerLayerChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetAll(teamId string) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelsByIds(channelIds []string) ([]*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetGuestCountFromCache(channelId string) int64
- func (s *TimerLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelId string) int64
- func (s *TimerLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
- func (s *TimerLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerChannelStore) GetPinnedPostCountFromCache(channelId string) int64
- func (s *TimerLayerChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
- func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)
- func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
- func (s *TimerLayerChannelStore) InvalidateChannel(id string)
- func (s *TimerLayerChannelStore) InvalidateChannelByName(teamId string, name string)
- func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)
- func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)
- func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)
- func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
- func (s *TimerLayerChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerChannelStore) MigratePublicChannels() error
- func (s *TimerLayerChannelStore) PermanentDelete(channelId string) *model.AppError
- func (s *TimerLayerChannelStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
- func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (s *TimerLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
- func (s *TimerLayerChannelStore) ResetAllChannelSchemes() *model.AppError
- func (s *TimerLayerChannelStore) Restore(channelId string, time int64) *model.AppError
- func (s *TimerLayerChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
- func (s *TimerLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
- func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError
- func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
- func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s *TimerLayerChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
- type TimerLayerClusterDiscoveryStore
- func (s *TimerLayerClusterDiscoveryStore) Cleanup() *model.AppError
- func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
- func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
- type TimerLayerCommandStore
- func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerCommandStore) Delete(commandId string, time int64) *model.AppError
- func (s *TimerLayerCommandStore) Get(id string) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerCommandStore) Save(webhook *model.Command) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) Update(hook *model.Command) (*model.Command, *model.AppError)
- type TimerLayerCommandWebhookStore
- func (s *TimerLayerCommandWebhookStore) Cleanup()
- func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type TimerLayerComplianceStore
- func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type TimerLayerEmojiStore
- func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError
- func (s *TimerLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
- type TimerLayerFileInfoStore
- func (s *TimerLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError
- func (s *TimerLayerFileInfoStore) ClearCaches()
- func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (s *TimerLayerFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string)
- func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type TimerLayerGroupStore
- func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError)
- func (s *TimerLayerGroupStore) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError)
- func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) Create(group *model.Group) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) Delete(groupID string) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- func (s *TimerLayerGroupStore) Get(groupID string) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByName(name string) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError)
- func (s *TimerLayerGroupStore) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerGroupStore) Update(group *model.Group) (*model.Group, *model.AppError)
- func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
- type TimerLayerJobStore
- func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
- func (s *TimerLayerJobStore) Get(id string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (s *TimerLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type TimerLayerLicenseStore
- type TimerLayerLinkMetadataStore
- type TimerLayerOAuthStore
- func (s *TimerLayerOAuthStore) DeleteApp(id string) *model.AppError
- func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetApp(id string) (*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAccessData(token string) *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAllAccessData() *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAuthData(code string) *model.AppError
- func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
- func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- type TimerLayerPluginStore
- func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (s *TimerLayerPluginStore) Delete(pluginId string, key string) *model.AppError
- func (s *TimerLayerPluginStore) DeleteAllExpired() *model.AppError
- func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
- func (s *TimerLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
- func (s *TimerLayerPluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)
- func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
- type TimerLayerPostStore
- func (s *TimerLayerPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
- func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
- func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (s *TimerLayerPostStore) ClearCaches()
- func (s *TimerLayerPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError
- func (s *TimerLayerPostStore) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
- func (s *TimerLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetMaxPostSize() int
- func (s *TimerLayerPostStore) GetOldest() (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)
- func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)
- func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
- func (s *TimerLayerPostStore) GetSingle(id string) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)
- func (s *TimerLayerPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
- func (s *TimerLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerPostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
- func (s *TimerLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
- type TimerLayerPreferenceStore
- func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s *TimerLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type TimerLayerReactionStore
- func (s *TimerLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
- func (s *TimerLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerReactionStore) Save(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- type TimerLayerRoleStore
- func (s *TimerLayerRoleStore) Delete(roldId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
- func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- type TimerLayerSchemeStore
- func (s *TimerLayerSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) PermanentDeleteAll() *model.AppError
- func (s *TimerLayerSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, *model.AppError)
- type TimerLayerSessionStore
- func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
- func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
- func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
- func (s *TimerLayerSessionStore) RemoveAllSessions() *model.AppError
- func (s *TimerLayerSessionStore) Save(session *model.Session) (*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
- func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
- func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
- func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)
- type TimerLayerStatusStore
- func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerStatusStore) ResetAll() *model.AppError
- func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- type TimerLayerSystemStore
- func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
- func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) Update(system *model.System) *model.AppError
- type TimerLayerTeamStore
- func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) AnalyticsTeamCount() (int64, *model.AppError)
- func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerTeamStore) ClearCaches()
- func (s *TimerLayerTeamStore) Get(id string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetByName(name string) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s *TimerLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerTeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
- func (s *TimerLayerTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerTeamStore) PermanentDelete(teamId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s *TimerLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
- func (s *TimerLayerTeamStore) ResetAllTeamSchemes() *model.AppError
- func (s *TimerLayerTeamStore) Save(team *model.Team) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) Update(team *model.Team) (*model.Team, *model.AppError)
- func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
- func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
- func (s *TimerLayerTeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
- type TimerLayerTermsOfServiceStore
- func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
- type TimerLayerTokenStore
- func (s *TimerLayerTokenStore) Cleanup()
- func (s *TimerLayerTokenStore) Delete(token string) *model.AppError
- func (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)
- func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
- func (s *TimerLayerTokenStore) Save(recovery *model.Token) *model.AppError
- type TimerLayerUserAccessTokenStore
- func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type TimerLayerUserStore
- func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerUserStore) ClearCaches()
- func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
- func (s *TimerLayerUserStore) Get(id string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
- func (s *TimerLayerUserStore) GetEtagForProfiles(teamId string) string
- func (s *TimerLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string
- func (s *TimerLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (s *TimerLayerUserStore) InvalidatProfileCacheForUser(userId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
- func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
- func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
- func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (s *TimerLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- type TimerLayerUserTermsOfServiceStore
- func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
- func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
- func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
- type TimerLayerWebhookStore
- func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) ClearCaches()
- func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type TokenStore
- type UserAccessTokenStore
- type UserGetByIdsOpts
- type UserStore
- type UserTermsOfServiceStore
- type WebhookStore
Constants ¶
View Source
const ( MISSING_CHANNEL_ERROR = "store.sql_channel.get_by_name.missing.app_error" MISSING_CHANNEL_MEMBER_ERROR = "store.sql_channel.get_member.missing.app_error" CHANNEL_EXISTS_ERROR = "store.sql_channel.save_channel.exists.app_error" MISSING_ACCOUNT_ERROR = "store.sql_user.missing_account.const" MISSING_AUTH_ACCOUNT_ERROR = "store.sql_user.get_by_auth.missing_account.app_error" USER_SEARCH_OPTION_NAMES_ONLY = "names_only" USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME = "names_only_no_full_name" USER_SEARCH_OPTION_ALL_NO_FULL_NAME = "all_no_full_name" USER_SEARCH_OPTION_ALLOW_INACTIVE = "allow_inactive" FEATURE_TOGGLE_PREFIX = "feature_enabled_" )
View Source
const (
MentionAllPosts = -1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditStore ¶
type BotStore ¶
type BotStore interface { Get(userId string, includeDeleted bool) (*model.Bot, *model.AppError) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError) Save(bot *model.Bot) (*model.Bot, *model.AppError) Update(bot *model.Bot) (*model.Bot, *model.AppError) PermanentDelete(userId string) *model.AppError }
type ChannelMemberHistoryStore ¶
type ChannelMemberHistoryStore interface { LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) }
type ChannelSearchOpts ¶
type ChannelSearchOpts struct { NotAssociatedToGroup string IncludeDeleted bool ExcludeChannelNames []string Page *int PerPage *int }
ChannelSearchOpts contains options for searching channels.
NotAssociatedToGroup will exclude channels that have associated, active GroupChannels records. IncludeDeleted will include channel records where DeleteAt != 0. ExcludeChannelNames will exclude channels from the results by name. Paginate whether to paginate the results. Page page requested, if results are paginated. PerPage number of results per page, if paginated.
func (*ChannelSearchOpts) IsPaginated ¶
func (c *ChannelSearchOpts) IsPaginated() bool
type ChannelStore ¶
type ChannelStore interface { Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, *model.AppError) Update(channel *model.Channel) (*model.Channel, *model.AppError) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError) InvalidateChannel(id string) InvalidateChannelByName(teamId, name string) GetFromMaster(id string) (*model.Channel, *model.AppError) Delete(channelId string, time int64) *model.AppError Restore(channelId string, time int64) *model.AppError SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError PermanentDelete(channelId string) *model.AppError PermanentDeleteByTeam(teamId string) *model.AppError GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) GetAllChannels(page, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError) GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError) GetAll(teamId string) ([]*model.Channel, *model.AppError) GetChannelsByIds(channelIds []string) ([]*model.Channel, *model.AppError) GetForPost(postId string) (*model.Channel, *model.AppError) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError) GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError) InvalidateAllChannelMembersForUser(userId string) IsUserInChannelUseCache(userId string, channelId string) bool GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError) InvalidateCacheForChannelMembersNotifyProps(channelId string) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError) InvalidateMemberCount(channelId string) GetMemberCountFromCache(channelId string) int64 GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError) InvalidatePinnedPostCount(channelId string) GetPinnedPostCountFromCache(channelId string) int64 GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError) InvalidateGuestCount(channelId string) GetGuestCountFromCache(channelId string) int64 GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError) RemoveMember(channelId string, userId string) *model.AppError PermanentDeleteMembersByUser(userId string) *model.AppError PermanentDeleteMembersByChannel(channelId string) *model.AppError UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError) IncrementMentionCount(channelId string, userId string) *model.AppError AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError) GetMembersForUserWithPagination(teamId, userId string, page, perPage int) (*model.ChannelMembers, *model.AppError) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError) SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError) ClearCaches() GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError) ResetAllChannelSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError MigratePublicChannels() error GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError) RemoveAllDeactivatedMembers(channelId string) *model.AppError GetChannelsBatchForIndexing(startTime, endTime int64, limit int) ([]*model.Channel, *model.AppError) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError) }
type ClusterDiscoveryStore ¶
type ClusterDiscoveryStore interface { Save(discovery *model.ClusterDiscovery) *model.AppError Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError) GetAll(discoveryType, clusterName string) ([]*model.ClusterDiscovery, *model.AppError) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError Cleanup() *model.AppError }
type CommandStore ¶
type CommandStore interface { Save(webhook *model.Command) (*model.Command, *model.AppError) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError) Get(id string) (*model.Command, *model.AppError) GetByTeam(teamId string) ([]*model.Command, *model.AppError) Delete(commandId string, time int64) *model.AppError PermanentDeleteByTeam(teamId string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError Update(hook *model.Command) (*model.Command, *model.AppError) AnalyticsCommandCount(teamId string) (int64, *model.AppError) }
type CommandWebhookStore ¶
type CommandWebhookStore interface { Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError) Get(id string) (*model.CommandWebhook, *model.AppError) TryUse(id string, limit int) *model.AppError Cleanup() }
type ComplianceStore ¶
type ComplianceStore interface { Save(compliance *model.Compliance) (*model.Compliance, *model.AppError) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError) Get(id string) (*model.Compliance, *model.AppError) GetAll(offset, limit int) (model.Compliances, *model.AppError) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError) }
type EmojiStore ¶
type EmojiStore interface { Save(emoji *model.Emoji) (*model.Emoji, *model.AppError) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError) GetList(offset, limit int, sort string) ([]*model.Emoji, *model.AppError) Delete(emoji *model.Emoji, time int64) *model.AppError Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError) }
type FileInfoStore ¶
type FileInfoStore interface { Save(info *model.FileInfo) (*model.FileInfo, *model.AppError) Get(id string) (*model.FileInfo, *model.AppError) GetByPath(path string) (*model.FileInfo, *model.AppError) GetForPost(postId string, readFromMaster, includeDeleted, allowFromCache bool) ([]*model.FileInfo, *model.AppError) GetForUser(userId string) ([]*model.FileInfo, *model.AppError) InvalidateFileInfosForPostCache(postId string) AttachToPost(fileId string, postId string, creatorId string) *model.AppError DeleteForPost(postId string) (string, *model.AppError) PermanentDelete(fileId string) *model.AppError PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) PermanentDeleteByUser(userId string) (int64, *model.AppError) ClearCaches() }
type GroupStore ¶
type GroupStore interface { Create(group *model.Group) (*model.Group, *model.AppError) Get(groupID string) (*model.Group, *model.AppError) GetByName(name string) (*model.Group, *model.AppError) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError) GetByUser(userId string) ([]*model.Group, *model.AppError) Update(group *model.Group) (*model.Group, *model.AppError) Delete(groupID string) (*model.Group, *model.AppError) GetMemberUsers(groupID string) ([]*model.User, *model.AppError) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError) GetMemberCount(groupID string) (int64, *model.AppError) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError) PermanentDeleteMembersByUser(userId string) *model.AppError CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError) GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError) }
type IntegrityCheckResult ¶
type IntegrityCheckResult struct { Data interface{} Err error }
type JobStore ¶
type JobStore interface { Save(job *model.Job) (*model.Job, *model.AppError) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError) UpdateStatus(id string, status string) (*model.Job, *model.AppError) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError) Get(id string) (*model.Job, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError) GetAllByType(jobType string) ([]*model.Job, *model.AppError) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError) GetAllByStatus(status string) ([]*model.Job, *model.AppError) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError) Delete(id string) (string, *model.AppError) }
type LicenseStore ¶
type LicenseStore interface { Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError) Get(id string) (*model.LicenseRecord, *model.AppError) }
type LinkMetadataStore ¶
type LinkMetadataStore interface { Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError) }
type OAuthStore ¶
type OAuthStore interface { SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) GetApp(id string) (*model.OAuthApp, *model.AppError) GetAppByUser(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError) GetApps(offset, limit int) ([]*model.OAuthApp, *model.AppError) GetAuthorizedApps(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError) DeleteApp(id string) *model.AppError SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError) GetAuthData(code string) (*model.AuthData, *model.AppError) RemoveAuthData(code string) *model.AppError PermanentDeleteAuthDataByUser(userId string) *model.AppError SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError) GetAccessData(token string) (*model.AccessData, *model.AppError) GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, *model.AppError) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError) GetPreviousAccessData(userId, clientId string) (*model.AccessData, *model.AppError) RemoveAccessData(token string) *model.AppError RemoveAllAccessData() *model.AppError }
type OrphanedRecord ¶
type PluginStore ¶
type PluginStore interface { SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError) SetWithOptions(pluginId string, key string, value interface{}, options model.PluginKVSetOptions) (bool, *model.AppError) Get(pluginId, key string) (*model.PluginKeyValue, *model.AppError) Delete(pluginId, key string) *model.AppError DeleteAllForPlugin(PluginId string) *model.AppError DeleteAllExpired() *model.AppError List(pluginId string, page, perPage int) ([]string, *model.AppError) }
type PostStore ¶
type PostStore interface { Save(post *model.Post) (*model.Post, *model.AppError) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError) GetSingle(id string) (*model.Post, *model.AppError) Delete(postId string, time int64, deleteByID string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError PermanentDeleteByChannel(channelId string) *model.AppError GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError) GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError) GetFlaggedPostsForChannel(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError) GetEtag(channelId string, allowFromCache bool) string Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError) ClearCaches() InvalidateLastPostTimeCache(channelId string) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError) Overwrite(post *model.Post) (*model.Post, *model.AppError) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) GetOldest() (*model.Post, *model.AppError) GetMaxPostSize() int GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError) }
type PreferenceStore ¶
type PreferenceStore interface { Save(preferences *model.Preferences) *model.AppError GetCategory(userId string, category string) (model.Preferences, *model.AppError) Get(userId string, category string, name string) (*model.Preference, *model.AppError) GetAll(userId string) (model.Preferences, *model.AppError) Delete(userId, category, name string) *model.AppError DeleteCategory(userId string, category string) *model.AppError DeleteCategoryAndName(category string, name string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError CleanupFlagsBatch(limit int64) (int64, *model.AppError) }
type ReactionStore ¶
type ReactionStore interface { Save(reaction *model.Reaction) (*model.Reaction, *model.AppError) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError) DeleteAllWithEmojiName(emojiName string) *model.AppError PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError) }
type RelationalIntegrityCheckData ¶
type RelationalIntegrityCheckData struct { ParentName string ChildName string ParentIdAttr string ChildIdAttr string Records []OrphanedRecord }
type RoleStore ¶
type RoleStore interface { Save(role *model.Role) (*model.Role, *model.AppError) Get(roleId string) (*model.Role, *model.AppError) GetAll() ([]*model.Role, *model.AppError) GetByName(name string) (*model.Role, *model.AppError) GetByNames(names []string) ([]*model.Role, *model.AppError) Delete(roldId string) (*model.Role, *model.AppError) PermanentDeleteAll() *model.AppError }
type SchemeStore ¶
type SchemeStore interface { Save(scheme *model.Scheme) (*model.Scheme, *model.AppError) Get(schemeId string) (*model.Scheme, *model.AppError) GetByName(schemeName string) (*model.Scheme, *model.AppError) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError) Delete(schemeId string) (*model.Scheme, *model.AppError) PermanentDeleteAll() *model.AppError }
type SessionStore ¶
type SessionStore interface { Get(sessionIdOrToken string) (*model.Session, *model.AppError) Save(session *model.Session) (*model.Session, *model.AppError) GetSessions(userId string) ([]*model.Session, *model.AppError) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError) Remove(sessionIdOrToken string) *model.AppError RemoveAllSessions() *model.AppError PermanentDeleteSessionsByUser(teamId string) *model.AppError UpdateLastActivityAt(sessionId string, time int64) *model.AppError UpdateRoles(userId string, roles string) (string, *model.AppError) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError) UpdateProps(session *model.Session) *model.AppError AnalyticsSessionCount() (int64, *model.AppError) Cleanup(expiryTime int64, batchSize int64) }
type StatusStore ¶
type StatusStore interface { SaveOrUpdate(status *model.Status) *model.AppError Get(userId string) (*model.Status, *model.AppError) GetByIds(userIds []string) ([]*model.Status, *model.AppError) ResetAll() *model.AppError GetTotalActiveUsersCount() (int64, *model.AppError) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError }
type Store ¶
type Store interface { Team() TeamStore Channel() ChannelStore Post() PostStore User() UserStore Bot() BotStore Audit() AuditStore ClusterDiscovery() ClusterDiscoveryStore Compliance() ComplianceStore Session() SessionStore OAuth() OAuthStore System() SystemStore Webhook() WebhookStore Command() CommandStore CommandWebhook() CommandWebhookStore Preference() PreferenceStore License() LicenseStore Token() TokenStore Emoji() EmojiStore Status() StatusStore FileInfo() FileInfoStore Reaction() ReactionStore Role() RoleStore Scheme() SchemeStore Job() JobStore UserAccessToken() UserAccessTokenStore ChannelMemberHistory() ChannelMemberHistoryStore Plugin() PluginStore TermsOfService() TermsOfServiceStore Group() GroupStore UserTermsOfService() UserTermsOfServiceStore LinkMetadata() LinkMetadataStore MarkSystemRanUnitTests() Close() LockToMaster() UnlockFromMaster() DropAllTables() GetCurrentSchemaVersion() string TotalMasterDbConnections() int TotalReadDbConnections() int TotalSearchDbConnections() int CheckIntegrity() <-chan IntegrityCheckResult }
type StoreResult ¶
type SystemStore ¶
type SystemStore interface { Save(system *model.System) *model.AppError SaveOrUpdate(system *model.System) *model.AppError Update(system *model.System) *model.AppError Get() (model.StringMap, *model.AppError) GetByName(name string) (*model.System, *model.AppError) PermanentDeleteByName(name string) (*model.System, *model.AppError) }
type TeamStore ¶
type TeamStore interface { Save(team *model.Team) (*model.Team, *model.AppError) Update(team *model.Team) (*model.Team, *model.AppError) Get(id string) (*model.Team, *model.AppError) GetByName(name string) (*model.Team, *model.AppError) SearchAll(term string) ([]*model.Team, *model.AppError) SearchOpen(term string) ([]*model.Team, *model.AppError) SearchPrivate(term string) ([]*model.Team, *model.AppError) GetAll() ([]*model.Team, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetAllTeamListing() ([]*model.Team, *model.AppError) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError) GetByInviteId(inviteId string) (*model.Team, *model.AppError) PermanentDelete(teamId string) *model.AppError AnalyticsTeamCount() (int64, *model.AppError) AnalyticsPublicTeamCount() (int64, *model.AppError) AnalyticsPrivateTeamCount() (int64, *model.AppError) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError) GetMembers(teamId string, offset int, limit int, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError) GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError) GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError) GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError) RemoveMember(teamId string, userId string) *model.AppError RemoveAllMembersByTeam(teamId string) *model.AppError RemoveAllMembersByUser(userId string) *model.AppError UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError) ResetAllTeamSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError) InvalidateAllTeamIdsForUser(userId string) ClearCaches() }
type TermsOfServiceStore ¶
type TermsOfServiceStore interface { Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError) }
type TimerLayer ¶
type TimerLayer struct { Store Metrics einterfaces.MetricsInterface AuditStore AuditStore BotStore BotStore ChannelStore ChannelStore ChannelMemberHistoryStore ChannelMemberHistoryStore ClusterDiscoveryStore ClusterDiscoveryStore CommandStore CommandStore CommandWebhookStore CommandWebhookStore ComplianceStore ComplianceStore EmojiStore EmojiStore FileInfoStore FileInfoStore GroupStore GroupStore JobStore JobStore LicenseStore LicenseStore LinkMetadataStore LinkMetadataStore OAuthStore OAuthStore PluginStore PluginStore PostStore PostStore PreferenceStore PreferenceStore ReactionStore ReactionStore RoleStore RoleStore SchemeStore SchemeStore SessionStore SessionStore StatusStore StatusStore SystemStore SystemStore TeamStore TeamStore TermsOfServiceStore TermsOfServiceStore TokenStore TokenStore UserStore UserStore UserAccessTokenStore UserAccessTokenStore UserTermsOfServiceStore UserTermsOfServiceStore WebhookStore WebhookStore }
func NewTimerLayer ¶
func NewTimerLayer(childStore Store, metrics einterfaces.MetricsInterface) *TimerLayer
func (*TimerLayer) Audit ¶
func (s *TimerLayer) Audit() AuditStore
func (*TimerLayer) Bot ¶
func (s *TimerLayer) Bot() BotStore
func (*TimerLayer) Channel ¶
func (s *TimerLayer) Channel() ChannelStore
func (*TimerLayer) ChannelMemberHistory ¶
func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore
func (*TimerLayer) Close ¶
func (s *TimerLayer) Close()
func (*TimerLayer) ClusterDiscovery ¶
func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
func (*TimerLayer) Command ¶
func (s *TimerLayer) Command() CommandStore
func (*TimerLayer) CommandWebhook ¶
func (s *TimerLayer) CommandWebhook() CommandWebhookStore
func (*TimerLayer) Compliance ¶
func (s *TimerLayer) Compliance() ComplianceStore
func (*TimerLayer) DropAllTables ¶
func (s *TimerLayer) DropAllTables()
func (*TimerLayer) Emoji ¶
func (s *TimerLayer) Emoji() EmojiStore
func (*TimerLayer) FileInfo ¶
func (s *TimerLayer) FileInfo() FileInfoStore
func (*TimerLayer) GetCurrentSchemaVersion ¶
func (s *TimerLayer) GetCurrentSchemaVersion() string
func (*TimerLayer) Group ¶
func (s *TimerLayer) Group() GroupStore
func (*TimerLayer) Job ¶
func (s *TimerLayer) Job() JobStore
func (*TimerLayer) License ¶
func (s *TimerLayer) License() LicenseStore
func (*TimerLayer) LinkMetadata ¶
func (s *TimerLayer) LinkMetadata() LinkMetadataStore
func (*TimerLayer) LockToMaster ¶
func (s *TimerLayer) LockToMaster()
func (*TimerLayer) MarkSystemRanUnitTests ¶
func (s *TimerLayer) MarkSystemRanUnitTests()
func (*TimerLayer) OAuth ¶
func (s *TimerLayer) OAuth() OAuthStore
func (*TimerLayer) Plugin ¶
func (s *TimerLayer) Plugin() PluginStore
func (*TimerLayer) Post ¶
func (s *TimerLayer) Post() PostStore
func (*TimerLayer) Preference ¶
func (s *TimerLayer) Preference() PreferenceStore
func (*TimerLayer) Reaction ¶
func (s *TimerLayer) Reaction() ReactionStore
func (*TimerLayer) Role ¶
func (s *TimerLayer) Role() RoleStore
func (*TimerLayer) Scheme ¶
func (s *TimerLayer) Scheme() SchemeStore
func (*TimerLayer) Session ¶
func (s *TimerLayer) Session() SessionStore
func (*TimerLayer) Status ¶
func (s *TimerLayer) Status() StatusStore
func (*TimerLayer) System ¶
func (s *TimerLayer) System() SystemStore
func (*TimerLayer) Team ¶
func (s *TimerLayer) Team() TeamStore
func (*TimerLayer) TermsOfService ¶
func (s *TimerLayer) TermsOfService() TermsOfServiceStore
func (*TimerLayer) Token ¶
func (s *TimerLayer) Token() TokenStore
func (*TimerLayer) TotalMasterDbConnections ¶
func (s *TimerLayer) TotalMasterDbConnections() int
func (*TimerLayer) TotalReadDbConnections ¶
func (s *TimerLayer) TotalReadDbConnections() int
func (*TimerLayer) TotalSearchDbConnections ¶
func (s *TimerLayer) TotalSearchDbConnections() int
func (*TimerLayer) UnlockFromMaster ¶
func (s *TimerLayer) UnlockFromMaster()
func (*TimerLayer) User ¶
func (s *TimerLayer) User() UserStore
func (*TimerLayer) UserAccessToken ¶
func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
func (*TimerLayer) UserTermsOfService ¶
func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
func (*TimerLayer) Webhook ¶
func (s *TimerLayer) Webhook() WebhookStore
type TimerLayerAuditStore ¶
type TimerLayerAuditStore struct { AuditStore Root *TimerLayer }
func (*TimerLayerAuditStore) PermanentDeleteBatch ¶
func (*TimerLayerAuditStore) PermanentDeleteByUser ¶
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError
type TimerLayerBotStore ¶
type TimerLayerBotStore struct { BotStore Root *TimerLayer }
func (*TimerLayerBotStore) GetAll ¶
func (s *TimerLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
func (*TimerLayerBotStore) PermanentDelete ¶
func (s *TimerLayerBotStore) PermanentDelete(userId string) *model.AppError
type TimerLayerChannelMemberHistoryStore ¶
type TimerLayerChannelMemberHistoryStore struct { ChannelMemberHistoryStore Root *TimerLayer }
func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring ¶
func (s *TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent ¶
func (*TimerLayerChannelMemberHistoryStore) LogLeaveEvent ¶
func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch ¶
type TimerLayerChannelStore ¶
type TimerLayerChannelStore struct { ChannelStore Root *TimerLayer }
func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount ¶
func (*TimerLayerChannelStore) AnalyticsTypeCount ¶
func (*TimerLayerChannelStore) AutocompleteInTeam ¶
func (s *TimerLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) AutocompleteInTeamForSearch ¶
func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerChannelStore) ClearCaches ¶
func (s *TimerLayerChannelStore) ClearCaches()
func (*TimerLayerChannelStore) CreateDirectChannel ¶
func (*TimerLayerChannelStore) Delete ¶
func (s *TimerLayerChannelStore) Delete(channelId string, time int64) *model.AppError
func (*TimerLayerChannelStore) GetAllChannelMembersForUser ¶
func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶
func (*TimerLayerChannelStore) GetAllChannels ¶
func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
func (*TimerLayerChannelStore) GetAllChannelsCount ¶
func (s *TimerLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)
func (*TimerLayerChannelStore) GetAllChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter ¶
func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
func (*TimerLayerChannelStore) GetByNameIncludeDeleted ¶
func (*TimerLayerChannelStore) GetByNames ¶
func (*TimerLayerChannelStore) GetChannelCounts ¶
func (s *TimerLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
func (*TimerLayerChannelStore) GetChannelMembersForExport ¶
func (s *TimerLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
func (*TimerLayerChannelStore) GetChannelMembersTimezones ¶
func (*TimerLayerChannelStore) GetChannelUnread ¶
func (s *TimerLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)
func (*TimerLayerChannelStore) GetChannels ¶
func (s *TimerLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetChannelsBatchForIndexing ¶
func (*TimerLayerChannelStore) GetChannelsByIds ¶
func (*TimerLayerChannelStore) GetChannelsByScheme ¶
func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetDeleted ¶
func (s *TimerLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetDeletedByName ¶
func (*TimerLayerChannelStore) GetForPost ¶
func (*TimerLayerChannelStore) GetFromMaster ¶
func (*TimerLayerChannelStore) GetGuestCount ¶
func (*TimerLayerChannelStore) GetGuestCountFromCache ¶
func (s *TimerLayerChannelStore) GetGuestCountFromCache(channelId string) int64
func (*TimerLayerChannelStore) GetMember ¶
func (s *TimerLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) GetMemberCount ¶
func (*TimerLayerChannelStore) GetMemberCountFromCache ¶
func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelId string) int64
func (*TimerLayerChannelStore) GetMemberForPost ¶
func (s *TimerLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) GetMembers ¶
func (s *TimerLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersByIds ¶
func (s *TimerLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersForUser ¶
func (s *TimerLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMembersForUserWithPagination ¶
func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)
func (*TimerLayerChannelStore) GetMoreChannels ¶
func (s *TimerLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetPinnedPostCount ¶
func (*TimerLayerChannelStore) GetPinnedPostCountFromCache ¶
func (s *TimerLayerChannelStore) GetPinnedPostCountFromCache(channelId string) int64
func (*TimerLayerChannelStore) GetPinnedPosts ¶
func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetPublicChannelsForTeam ¶
func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) GetTeamChannels ¶
func (s *TimerLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) IncrementMentionCount ¶
func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
func (*TimerLayerChannelStore) InvalidateAllChannelMembersForUser ¶
func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)
func (*TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps ¶
func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
func (*TimerLayerChannelStore) InvalidateChannel ¶
func (s *TimerLayerChannelStore) InvalidateChannel(id string)
func (*TimerLayerChannelStore) InvalidateChannelByName ¶
func (s *TimerLayerChannelStore) InvalidateChannelByName(teamId string, name string)
func (*TimerLayerChannelStore) InvalidateGuestCount ¶
func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)
func (*TimerLayerChannelStore) InvalidateMemberCount ¶
func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)
func (*TimerLayerChannelStore) InvalidatePinnedPostCount ¶
func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)
func (*TimerLayerChannelStore) IsUserInChannelUseCache ¶
func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
func (*TimerLayerChannelStore) MigrateChannelMembers ¶
func (*TimerLayerChannelStore) MigratePublicChannels ¶
func (s *TimerLayerChannelStore) MigratePublicChannels() error
func (*TimerLayerChannelStore) PermanentDelete ¶
func (s *TimerLayerChannelStore) PermanentDelete(channelId string) *model.AppError
func (*TimerLayerChannelStore) PermanentDeleteByTeam ¶
func (s *TimerLayerChannelStore) PermanentDeleteByTeam(teamId string) *model.AppError
func (*TimerLayerChannelStore) PermanentDeleteMembersByChannel ¶
func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
func (*TimerLayerChannelStore) PermanentDeleteMembersByUser ¶
func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers ¶
func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
func (*TimerLayerChannelStore) RemoveMember ¶
func (s *TimerLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError
func (*TimerLayerChannelStore) ResetAllChannelSchemes ¶
func (s *TimerLayerChannelStore) ResetAllChannelSchemes() *model.AppError
func (*TimerLayerChannelStore) Restore ¶
func (s *TimerLayerChannelStore) Restore(channelId string, time int64) *model.AppError
func (*TimerLayerChannelStore) SaveDirectChannel ¶
func (s *TimerLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, *model.AppError)
func (*TimerLayerChannelStore) SaveMember ¶
func (s *TimerLayerChannelStore) SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) SearchAllChannels ¶
func (s *TimerLayerChannelStore) SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
func (*TimerLayerChannelStore) SearchForUserInTeam ¶
func (s *TimerLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchGroupChannels ¶
func (s *TimerLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchInTeam ¶
func (s *TimerLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SearchMore ¶
func (s *TimerLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
func (*TimerLayerChannelStore) SetDeleteAt ¶
func (*TimerLayerChannelStore) UpdateLastViewedAt ¶
func (*TimerLayerChannelStore) UpdateMember ¶
func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (*TimerLayerChannelStore) UserBelongsToChannels ¶
type TimerLayerClusterDiscoveryStore ¶
type TimerLayerClusterDiscoveryStore struct { ClusterDiscoveryStore Root *TimerLayer }
func (*TimerLayerClusterDiscoveryStore) Cleanup ¶
func (s *TimerLayerClusterDiscoveryStore) Cleanup() *model.AppError
func (*TimerLayerClusterDiscoveryStore) Delete ¶
func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) Exists ¶
func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) GetAll ¶
func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) Save ¶
func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
func (*TimerLayerClusterDiscoveryStore) SetLastPingAt ¶
func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
type TimerLayerCommandStore ¶
type TimerLayerCommandStore struct { CommandStore Root *TimerLayer }
func (*TimerLayerCommandStore) AnalyticsCommandCount ¶
func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
func (*TimerLayerCommandStore) Delete ¶
func (s *TimerLayerCommandStore) Delete(commandId string, time int64) *model.AppError
func (*TimerLayerCommandStore) GetByTrigger ¶
func (*TimerLayerCommandStore) PermanentDeleteByTeam ¶
func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
func (*TimerLayerCommandStore) PermanentDeleteByUser ¶
func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
type TimerLayerCommandWebhookStore ¶
type TimerLayerCommandWebhookStore struct { CommandWebhookStore Root *TimerLayer }
func (*TimerLayerCommandWebhookStore) Cleanup ¶
func (s *TimerLayerCommandWebhookStore) Cleanup()
func (*TimerLayerCommandWebhookStore) Get ¶
func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
func (*TimerLayerCommandWebhookStore) Save ¶
func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
type TimerLayerComplianceStore ¶
type TimerLayerComplianceStore struct { ComplianceStore Root *TimerLayer }
func (*TimerLayerComplianceStore) ComplianceExport ¶
func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (*TimerLayerComplianceStore) Get ¶
func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) GetAll ¶
func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
func (*TimerLayerComplianceStore) MessageExport ¶
func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (*TimerLayerComplianceStore) Save ¶
func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) Update ¶
func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type TimerLayerEmojiStore ¶
type TimerLayerEmojiStore struct { EmojiStore Root *TimerLayer }
func (*TimerLayerEmojiStore) GetMultipleByName ¶
type TimerLayerFileInfoStore ¶
type TimerLayerFileInfoStore struct { FileInfoStore Root *TimerLayer }
func (*TimerLayerFileInfoStore) AttachToPost ¶
func (*TimerLayerFileInfoStore) ClearCaches ¶
func (s *TimerLayerFileInfoStore) ClearCaches()
func (*TimerLayerFileInfoStore) DeleteForPost ¶
func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (*TimerLayerFileInfoStore) GetForPost ¶
func (*TimerLayerFileInfoStore) GetForUser ¶
func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache ¶
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string)
func (*TimerLayerFileInfoStore) PermanentDelete ¶
func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (*TimerLayerFileInfoStore) PermanentDeleteBatch ¶
func (*TimerLayerFileInfoStore) PermanentDeleteByUser ¶
func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type TimerLayerGroupStore ¶
type TimerLayerGroupStore struct { GroupStore Root *TimerLayer }
func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*TimerLayerGroupStore) ChannelMembersToAdd ¶
func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError)
func (*TimerLayerGroupStore) ChannelMembersToRemove ¶
func (s *TimerLayerGroupStore) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError)
func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers ¶
func (*TimerLayerGroupStore) CountGroupsByChannel ¶
func (s *TimerLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*TimerLayerGroupStore) CountGroupsByTeam ¶
func (s *TimerLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers ¶
func (*TimerLayerGroupStore) CreateGroupSyncable ¶
func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) DeleteGroupSyncable ¶
func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) DeleteMember ¶
func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
func (*TimerLayerGroupStore) GetAllBySource ¶
func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId ¶
func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) GetByRemoteID ¶
func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetGroupSyncable ¶
func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) GetGroups ¶
func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetGroupsByChannel ¶
func (s *TimerLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetGroupsByTeam ¶
func (s *TimerLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*TimerLayerGroupStore) GetMemberCount ¶
func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)
func (*TimerLayerGroupStore) GetMemberUsers ¶
func (*TimerLayerGroupStore) GetMemberUsersPage ¶
func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers ¶
func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)
func (*TimerLayerGroupStore) TeamMembersToAdd ¶
func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError)
func (*TimerLayerGroupStore) TeamMembersToRemove ¶
func (s *TimerLayerGroupStore) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError)
func (*TimerLayerGroupStore) UpdateGroupSyncable ¶
func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*TimerLayerGroupStore) UpsertMember ¶
func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
type TimerLayerJobStore ¶
type TimerLayerJobStore struct { JobStore Root *TimerLayer }
func (*TimerLayerJobStore) Delete ¶
func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
func (*TimerLayerJobStore) GetAllByStatus ¶
func (*TimerLayerJobStore) GetAllByType ¶
func (*TimerLayerJobStore) GetAllByTypePage ¶
func (*TimerLayerJobStore) GetAllPage ¶
func (*TimerLayerJobStore) GetCountByStatusAndType ¶
func (*TimerLayerJobStore) GetNewestJobByStatusAndType ¶
func (*TimerLayerJobStore) UpdateOptimistically ¶
func (*TimerLayerJobStore) UpdateStatus ¶
func (*TimerLayerJobStore) UpdateStatusOptimistically ¶
type TimerLayerLicenseStore ¶
type TimerLayerLicenseStore struct { LicenseStore Root *TimerLayer }
func (*TimerLayerLicenseStore) Get ¶
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, *model.AppError)
func (*TimerLayerLicenseStore) Save ¶
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
type TimerLayerLinkMetadataStore ¶
type TimerLayerLinkMetadataStore struct { LinkMetadataStore Root *TimerLayer }
func (*TimerLayerLinkMetadataStore) Get ¶
func (s *TimerLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError)
func (*TimerLayerLinkMetadataStore) Save ¶
func (s *TimerLayerLinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
type TimerLayerOAuthStore ¶
type TimerLayerOAuthStore struct { OAuthStore Root *TimerLayer }
func (*TimerLayerOAuthStore) DeleteApp ¶
func (s *TimerLayerOAuthStore) DeleteApp(id string) *model.AppError
func (*TimerLayerOAuthStore) GetAccessData ¶
func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAccessDataByRefreshToken ¶
func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAccessDataByUserForApp ¶
func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAppByUser ¶
func (*TimerLayerOAuthStore) GetAuthData ¶
func (*TimerLayerOAuthStore) GetAuthorizedApps ¶
func (*TimerLayerOAuthStore) GetPreviousAccessData ¶
func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) PermanentDeleteAuthDataByUser ¶
func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
func (*TimerLayerOAuthStore) RemoveAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAccessData(token string) *model.AppError
func (*TimerLayerOAuthStore) RemoveAllAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAllAccessData() *model.AppError
func (*TimerLayerOAuthStore) RemoveAuthData ¶
func (s *TimerLayerOAuthStore) RemoveAuthData(code string) *model.AppError
func (*TimerLayerOAuthStore) SaveAccessData ¶
func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) SaveAuthData ¶
func (*TimerLayerOAuthStore) UpdateAccessData ¶
func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
type TimerLayerPluginStore ¶
type TimerLayerPluginStore struct { PluginStore Root *TimerLayer }
func (*TimerLayerPluginStore) CompareAndDelete ¶ added in v5.22.0
func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*TimerLayerPluginStore) CompareAndSet ¶
func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (*TimerLayerPluginStore) Delete ¶
func (s *TimerLayerPluginStore) Delete(pluginId string, key string) *model.AppError
func (*TimerLayerPluginStore) DeleteAllExpired ¶
func (s *TimerLayerPluginStore) DeleteAllExpired() *model.AppError
func (*TimerLayerPluginStore) DeleteAllForPlugin ¶
func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError
func (*TimerLayerPluginStore) Get ¶
func (s *TimerLayerPluginStore) Get(pluginId string, key string) (*model.PluginKeyValue, *model.AppError)
func (*TimerLayerPluginStore) SaveOrUpdate ¶
func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
type TimerLayerPostStore ¶
type TimerLayerPostStore struct { PostStore Root *TimerLayer }
func (*TimerLayerPostStore) AnalyticsPostCount ¶
func (*TimerLayerPostStore) AnalyticsPostCountsByDay ¶
func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay ¶
func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
func (*TimerLayerPostStore) ClearCaches ¶
func (s *TimerLayerPostStore) ClearCaches()
func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
func (*TimerLayerPostStore) GetEtag ¶
func (s *TimerLayerPostStore) GetEtag(channelId string, allowFromCache bool) string
func (*TimerLayerPostStore) GetFlaggedPosts ¶
func (*TimerLayerPostStore) GetFlaggedPostsForChannel ¶
func (*TimerLayerPostStore) GetFlaggedPostsForTeam ¶
func (*TimerLayerPostStore) GetMaxPostSize ¶
func (s *TimerLayerPostStore) GetMaxPostSize() int
func (*TimerLayerPostStore) GetOldest ¶
func (s *TimerLayerPostStore) GetOldest() (*model.Post, *model.AppError)
func (*TimerLayerPostStore) GetParentsForExportAfter ¶
func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
func (*TimerLayerPostStore) GetPostAfterTime ¶
func (*TimerLayerPostStore) GetPostIdAfterTime ¶
func (*TimerLayerPostStore) GetPostIdBeforeTime ¶
func (*TimerLayerPostStore) GetPosts ¶
func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsAfter ¶
func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsBatchForIndexing ¶
func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
func (*TimerLayerPostStore) GetPostsBefore ¶
func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetPostsByIds ¶
func (*TimerLayerPostStore) GetPostsCreatedAt ¶
func (*TimerLayerPostStore) GetPostsSince ¶
func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
func (*TimerLayerPostStore) GetRepliesForExport ¶
func (s *TimerLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
func (*TimerLayerPostStore) InvalidateLastPostTimeCache ¶
func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)
func (*TimerLayerPostStore) PermanentDeleteBatch ¶
func (*TimerLayerPostStore) PermanentDeleteByChannel ¶
func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
func (*TimerLayerPostStore) PermanentDeleteByUser ¶
func (s *TimerLayerPostStore) PermanentDeleteByUser(userId string) *model.AppError
type TimerLayerPreferenceStore ¶
type TimerLayerPreferenceStore struct { PreferenceStore Root *TimerLayer }
func (*TimerLayerPreferenceStore) CleanupFlagsBatch ¶
func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (*TimerLayerPreferenceStore) DeleteCategory ¶
func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (*TimerLayerPreferenceStore) DeleteCategoryAndName ¶
func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (*TimerLayerPreferenceStore) Get ¶
func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (*TimerLayerPreferenceStore) GetAll ¶
func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) GetCategory ¶
func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) PermanentDeleteByUser ¶
func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (*TimerLayerPreferenceStore) Save ¶
func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type TimerLayerReactionStore ¶
type TimerLayerReactionStore struct { ReactionStore Root *TimerLayer }
func (*TimerLayerReactionStore) BulkGetForPosts ¶
func (*TimerLayerReactionStore) DeleteAllWithEmojiName ¶
func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
func (*TimerLayerReactionStore) GetForPost ¶
func (*TimerLayerReactionStore) PermanentDeleteBatch ¶
type TimerLayerRoleStore ¶
type TimerLayerRoleStore struct { RoleStore Root *TimerLayer }
func (*TimerLayerRoleStore) GetAll ¶
func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
func (*TimerLayerRoleStore) GetByNames ¶
func (*TimerLayerRoleStore) PermanentDeleteAll ¶
func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
type TimerLayerSchemeStore ¶
type TimerLayerSchemeStore struct { SchemeStore Root *TimerLayer }
func (*TimerLayerSchemeStore) GetAllPage ¶
func (*TimerLayerSchemeStore) PermanentDeleteAll ¶
func (s *TimerLayerSchemeStore) PermanentDeleteAll() *model.AppError
type TimerLayerSessionStore ¶
type TimerLayerSessionStore struct { SessionStore Root *TimerLayer }
func (*TimerLayerSessionStore) AnalyticsSessionCount ¶
func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
func (*TimerLayerSessionStore) Cleanup ¶
func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (*TimerLayerSessionStore) GetSessions ¶
func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds ¶
func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser ¶
func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
func (*TimerLayerSessionStore) Remove ¶
func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
func (*TimerLayerSessionStore) RemoveAllSessions ¶
func (s *TimerLayerSessionStore) RemoveAllSessions() *model.AppError
func (*TimerLayerSessionStore) UpdateDeviceId ¶
func (*TimerLayerSessionStore) UpdateLastActivityAt ¶
func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
func (*TimerLayerSessionStore) UpdateProps ¶
func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
func (*TimerLayerSessionStore) UpdateRoles ¶
type TimerLayerStatusStore ¶
type TimerLayerStatusStore struct { StatusStore Root *TimerLayer }
func (*TimerLayerStatusStore) GetTotalActiveUsersCount ¶
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (*TimerLayerStatusStore) ResetAll ¶
func (s *TimerLayerStatusStore) ResetAll() *model.AppError
func (*TimerLayerStatusStore) SaveOrUpdate ¶
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (*TimerLayerStatusStore) UpdateLastActivityAt ¶
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
type TimerLayerSystemStore ¶
type TimerLayerSystemStore struct { SystemStore Root *TimerLayer }
func (*TimerLayerSystemStore) Get ¶
func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
func (*TimerLayerSystemStore) PermanentDeleteByName ¶
func (*TimerLayerSystemStore) Save ¶
func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
func (*TimerLayerSystemStore) SaveOrUpdate ¶
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type TimerLayerTeamStore ¶
type TimerLayerTeamStore struct { TeamStore Root *TimerLayer }
func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme ¶
func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsPrivateTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsPublicTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) AnalyticsTeamCount ¶
func (s *TimerLayerTeamStore) AnalyticsTeamCount() (int64, *model.AppError)
func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerTeamStore) ClearCaches ¶
func (s *TimerLayerTeamStore) ClearCaches()
func (*TimerLayerTeamStore) GetActiveMemberCount ¶
func (s *TimerLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerTeamStore) GetAll ¶
func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllForExportAfter ¶
func (s *TimerLayerTeamStore) GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
func (*TimerLayerTeamStore) GetAllPage ¶
func (*TimerLayerTeamStore) GetAllPrivateTeamListing ¶
func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllPrivateTeamPageListing ¶
func (*TimerLayerTeamStore) GetAllPublicTeamPageListing ¶
func (*TimerLayerTeamStore) GetAllTeamListing ¶
func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)
func (*TimerLayerTeamStore) GetAllTeamPageListing ¶
func (*TimerLayerTeamStore) GetByInviteId ¶
func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*TimerLayerTeamStore) GetChannelUnreadsForTeam ¶
func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)
func (*TimerLayerTeamStore) GetMember ¶
func (s *TimerLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetMembers ¶
func (s *TimerLayerTeamStore) GetMembers(teamId string, offset int, limit int, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetMembersByIds ¶
func (s *TimerLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTeamMembersForExport ¶
func (s *TimerLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
func (*TimerLayerTeamStore) GetTeamsByScheme ¶
func (*TimerLayerTeamStore) GetTeamsByUserId ¶
func (*TimerLayerTeamStore) GetTeamsForUser ¶
func (s *TimerLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTeamsForUserWithPagination ¶
func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) GetTotalMemberCount ¶
func (s *TimerLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerTeamStore) GetUserTeamIds ¶
func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser ¶
func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)
func (*TimerLayerTeamStore) MigrateTeamMembers ¶
func (*TimerLayerTeamStore) PermanentDelete ¶
func (s *TimerLayerTeamStore) PermanentDelete(teamId string) *model.AppError
func (*TimerLayerTeamStore) RemoveAllMembersByTeam ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError
func (*TimerLayerTeamStore) RemoveAllMembersByUser ¶
func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError
func (*TimerLayerTeamStore) RemoveMember ¶
func (s *TimerLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError
func (*TimerLayerTeamStore) ResetAllTeamSchemes ¶
func (s *TimerLayerTeamStore) ResetAllTeamSchemes() *model.AppError
func (*TimerLayerTeamStore) SaveMember ¶
func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) SearchOpen ¶
func (*TimerLayerTeamStore) SearchPrivate ¶
func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate ¶
func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
func (*TimerLayerTeamStore) UpdateMember ¶
func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
func (*TimerLayerTeamStore) UserBelongsToTeams ¶
type TimerLayerTermsOfServiceStore ¶
type TimerLayerTermsOfServiceStore struct { TermsOfServiceStore Root *TimerLayer }
func (*TimerLayerTermsOfServiceStore) Get ¶
func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*TimerLayerTermsOfServiceStore) GetLatest ¶
func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*TimerLayerTermsOfServiceStore) Save ¶
func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
type TimerLayerTokenStore ¶
type TimerLayerTokenStore struct { TokenStore Root *TimerLayer }
func (*TimerLayerTokenStore) Cleanup ¶
func (s *TimerLayerTokenStore) Cleanup()
func (*TimerLayerTokenStore) Delete ¶
func (s *TimerLayerTokenStore) Delete(token string) *model.AppError
func (*TimerLayerTokenStore) GetByToken ¶
func (*TimerLayerTokenStore) RemoveAllTokensByType ¶
func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
type TimerLayerUserAccessTokenStore ¶
type TimerLayerUserAccessTokenStore struct { UserAccessTokenStore Root *TimerLayer }
func (*TimerLayerUserAccessTokenStore) Delete ¶
func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) DeleteAllForUser ¶
func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) Get ¶
func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetAll ¶
func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByToken ¶
func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByUser ¶
func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Save ¶
func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Search ¶
func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type TimerLayerUserStore ¶
type TimerLayerUserStore struct { UserStore Root *TimerLayer }
func (*TimerLayerUserStore) AnalyticsActiveCount ¶
func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount ¶
func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount ¶
func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
func (*TimerLayerUserStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerUserStore) ClearCaches ¶
func (s *TimerLayerUserStore) ClearCaches()
func (*TimerLayerUserStore) Count ¶
func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) DemoteUserToGuest ¶
func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) *model.AppError
func (*TimerLayerUserStore) GetAll ¶
func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllAfter ¶
func (*TimerLayerUserStore) GetAllProfiles ¶
func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllProfilesInChannel ¶
func (*TimerLayerUserStore) GetAllUsingAuthService ¶
func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel ¶
func (*TimerLayerUserStore) GetByEmail ¶
func (*TimerLayerUserStore) GetByUsername ¶
func (*TimerLayerUserStore) GetChannelGroupUsers ¶
func (*TimerLayerUserStore) GetEtagForAllProfiles ¶
func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
func (*TimerLayerUserStore) GetEtagForProfiles ¶
func (s *TimerLayerUserStore) GetEtagForProfiles(teamId string) string
func (*TimerLayerUserStore) GetEtagForProfilesNotInTeam ¶
func (s *TimerLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string
func (*TimerLayerUserStore) GetForLogin ¶
func (*TimerLayerUserStore) GetNewUsersForTeam ¶
func (s *TimerLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser ¶
func (*TimerLayerUserStore) GetProfileByIds ¶
func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfiles ¶
func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesByUsernames ¶
func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesInChannel ¶
func (*TimerLayerUserStore) GetProfilesInChannelByStatus ¶
func (*TimerLayerUserStore) GetProfilesNotInChannel ¶
func (*TimerLayerUserStore) GetProfilesNotInTeam ¶
func (*TimerLayerUserStore) GetProfilesWithoutTeam ¶
func (s *TimerLayerUserStore) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam ¶
func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetSystemAdminProfiles ¶
func (*TimerLayerUserStore) GetTeamGroupUsers ¶
func (*TimerLayerUserStore) GetUnreadCount ¶
func (s *TimerLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)
func (*TimerLayerUserStore) GetUnreadCountForChannel ¶
func (*TimerLayerUserStore) GetUsersBatchForIndexing ¶
func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (*TimerLayerUserStore) InferSystemInstallDate ¶
func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
func (*TimerLayerUserStore) InvalidatProfileCacheForUser ¶
func (s *TimerLayerUserStore) InvalidatProfileCacheForUser(userId string)
func (*TimerLayerUserStore) InvalidateProfilesInChannelCache ¶
func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)
func (*TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser ¶
func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
func (*TimerLayerUserStore) PermanentDelete ¶
func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
func (*TimerLayerUserStore) PromoteGuestToUser ¶
func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) *model.AppError
func (*TimerLayerUserStore) ResetLastPictureUpdate ¶
func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) Search ¶
func (s *TimerLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchInChannel ¶
func (s *TimerLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchNotInChannel ¶
func (s *TimerLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchNotInTeam ¶
func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) SearchWithoutTeam ¶
func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) Update ¶
func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
func (*TimerLayerUserStore) UpdateAuthData ¶
func (*TimerLayerUserStore) UpdateFailedPasswordAttempts ¶
func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
func (*TimerLayerUserStore) UpdateLastPictureUpdate ¶
func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) UpdateMfaActive ¶
func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
func (*TimerLayerUserStore) UpdateMfaSecret ¶
func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
func (*TimerLayerUserStore) UpdatePassword ¶
func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
func (*TimerLayerUserStore) UpdateUpdateAt ¶
func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
func (*TimerLayerUserStore) VerifyEmail ¶
type TimerLayerUserTermsOfServiceStore ¶
type TimerLayerUserTermsOfServiceStore struct { UserTermsOfServiceStore Root *TimerLayer }
func (*TimerLayerUserTermsOfServiceStore) Delete ¶
func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
func (*TimerLayerUserTermsOfServiceStore) GetByUser ¶
func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
func (*TimerLayerUserTermsOfServiceStore) Save ¶
func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
type TimerLayerWebhookStore ¶
type TimerLayerWebhookStore struct { WebhookStore Root *TimerLayer }
func (*TimerLayerWebhookStore) AnalyticsIncomingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) AnalyticsOutgoingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) ClearCaches ¶
func (s *TimerLayerWebhookStore) ClearCaches()
func (*TimerLayerWebhookStore) DeleteIncoming ¶
func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) DeleteOutgoing ¶
func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) GetIncoming ¶
func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByChannel ¶
func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeam ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingList ¶
func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingListByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoing ¶
func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeam ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingList ¶
func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingListByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) InvalidateWebhookCache ¶
func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) SaveIncoming ¶
func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) SaveOutgoing ¶
func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateIncoming ¶
func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateOutgoing ¶
func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type TokenStore ¶
type UserAccessTokenStore ¶
type UserAccessTokenStore interface { Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError) DeleteAllForUser(userId string) *model.AppError Delete(tokenId string) *model.AppError Get(tokenId string) (*model.UserAccessToken, *model.AppError) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError) GetByUser(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError) Search(term string) ([]*model.UserAccessToken, *model.AppError) UpdateTokenEnable(tokenId string) *model.AppError UpdateTokenDisable(tokenId string) *model.AppError }
type UserGetByIdsOpts ¶
type UserGetByIdsOpts struct { // IsAdmin tracks whether or not the request is being made by an administrator. Does nothing when provided by a client. IsAdmin bool // Restrict to search in a list of teams and channels. Does nothing when provided by a client. ViewRestrictions *model.ViewUsersRestrictions // Since filters the users based on their UpdateAt timestamp. Since int64 }
type UserStore ¶
type UserStore interface { Save(user *model.User) (*model.User, *model.AppError) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError) UpdateLastPictureUpdate(userId string) *model.AppError ResetLastPictureUpdate(userId string) *model.AppError UpdatePassword(userId, newPassword string) *model.AppError UpdateUpdateAt(userId string) (int64, *model.AppError) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError) UpdateMfaSecret(userId, secret string) *model.AppError UpdateMfaActive(userId string, active bool) *model.AppError Get(id string) (*model.User, *model.AppError) GetAll() ([]*model.User, *model.AppError) ClearCaches() InvalidateProfilesInChannelCacheByUser(userId string) InvalidateProfilesInChannelCache(channelId string) GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError) GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError) GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError) InvalidatProfileCacheForUser(userId string) GetByEmail(email string) (*model.User, *model.AppError) GetByAuth(authData *string, authService string) (*model.User, *model.AppError) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError) GetByUsername(username string) (*model.User, *model.AppError) GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError) VerifyEmail(userId, email string) (string, *model.AppError) GetEtagForAllProfiles() string GetEtagForProfiles(teamId string) string UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError GetSystemAdminProfiles() (map[string]*model.User, *model.AppError) PermanentDelete(userId string) *model.AppError AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError) GetUnreadCount(userId string) (int64, *model.AppError) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError) GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError) AnalyticsGetInactiveUsersCount() (int64, *model.AppError) AnalyticsGetSystemAdminCount() (int64, *model.AppError) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetEtagForProfilesNotInTeam(teamId string) string ClearAllCustomRoleAssignments() *model.AppError InferSystemInstallDate() (int64, *model.AppError) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError) GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError) Count(options model.UserCountOptions) (int64, *model.AppError) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError) PromoteGuestToUser(userID string) *model.AppError DemoteUserToGuest(userID string) *model.AppError DeactivateGuests() ([]string, *model.AppError) }
type UserTermsOfServiceStore ¶
type UserTermsOfServiceStore interface { GetByUser(userId string) (*model.UserTermsOfService, *model.AppError) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError) Delete(userId, termsOfServiceId string) *model.AppError }
type WebhookStore ¶
type WebhookStore interface { SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError) GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingListByUser(userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError) DeleteIncoming(webhookId string, time int64) *model.AppError PermanentDeleteIncomingByChannel(channelId string) *model.AppError PermanentDeleteIncomingByUser(userId string) *model.AppError SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannelByUser(channelId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingListByUser(userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) DeleteOutgoing(webhookId string, time int64) *model.AppError PermanentDeleteOutgoingByChannel(channelId string) *model.AppError PermanentDeleteOutgoingByUser(userId string) *model.AppError UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) AnalyticsIncomingCount(teamId string) (int64, *model.AppError) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError) InvalidateWebhookCache(webhook string) ClearCaches() }
Click to show internal directories.
Click to hide internal directories.