Documentation
¶
Index ¶
- Constants
- Variables
- func IsUniqueConstraintError(err error, indexName []string) bool
- func MapStringsToQueryParams(list []string, paramPrefix string) (string, map[string]interface{})
- func NewChannelMemberFromModel(cm *model.ChannelMember) *channelMember
- func NewSqlAuditStore(sqlStore SqlStore) store.AuditStore
- func NewSqlBotStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.BotStore
- func NewSqlChannelMemberHistoryStore(sqlStore SqlStore) store.ChannelMemberHistoryStore
- func NewSqlChannelStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.ChannelStore
- func NewSqlClusterDiscoveryStore(sqlStore SqlStore) store.ClusterDiscoveryStore
- func NewSqlCommandStore(sqlStore SqlStore) store.CommandStore
- func NewSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore
- func NewSqlComplianceStore(sqlStore SqlStore) store.ComplianceStore
- func NewSqlEmojiStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.EmojiStore
- func NewSqlFileInfoStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.FileInfoStore
- func NewSqlGroupStore(sqlStore SqlStore) store.GroupStore
- func NewSqlJobStore(sqlStore SqlStore) store.JobStore
- func NewSqlLicenseStore(sqlStore SqlStore) store.LicenseStore
- func NewSqlLinkMetadataStore(sqlStore SqlStore) store.LinkMetadataStore
- func NewSqlOAuthStore(sqlStore SqlStore) store.OAuthStore
- func NewSqlPluginStore(sqlStore SqlStore) store.PluginStore
- func NewSqlPostStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.PostStore
- func NewSqlPreferenceStore(sqlStore SqlStore) store.PreferenceStore
- func NewSqlSessionStore(sqlStore SqlStore) store.SessionStore
- func NewSqlStatusStore(sqlStore SqlStore) store.StatusStore
- func NewSqlSystemStore(sqlStore SqlStore) store.SystemStore
- func NewSqlTaskStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TaskStore
- func NewSqlTeamStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TeamStore
- func NewSqlTermsOfServiceStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TermsOfServiceStore
- func NewSqlTokenStore(sqlStore SqlStore) store.TokenStore
- func NewSqlUserAccessTokenStore(sqlStore SqlStore) store.UserAccessTokenStore
- func NewSqlUserStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.UserStore
- func NewSqlUserTermsOfServiceStore(sqlStore SqlStore) store.UserTermsOfServiceStore
- func NewSqlWebhookStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.WebhookStore
- func NewTeamMemberFromModel(tm *model.TeamMember) *teamMember
- func UpgradeDatabase(sqlStore SqlStore, currentModelVersionString string) error
- func UpgradeDatabaseToVersion31(sqlStore SqlStore)
- func UpgradeDatabaseToVersion310(sqlStore SqlStore)
- func UpgradeDatabaseToVersion32(sqlStore SqlStore)
- func UpgradeDatabaseToVersion33(sqlStore SqlStore)
- func UpgradeDatabaseToVersion34(sqlStore SqlStore)
- func UpgradeDatabaseToVersion35(sqlStore SqlStore)
- func UpgradeDatabaseToVersion36(sqlStore SqlStore)
- func UpgradeDatabaseToVersion37(sqlStore SqlStore)
- func UpgradeDatabaseToVersion38(sqlStore SqlStore)
- func UpgradeDatabaseToVersion39(sqlStore SqlStore)
- func UpgradeDatabaseToVersion40(sqlStore SqlStore)
- func UpgradeDatabaseToVersion41(sqlStore SqlStore)
- func UpgradeDatabaseToVersion410(sqlStore SqlStore)
- func UpgradeDatabaseToVersion42(sqlStore SqlStore)
- func UpgradeDatabaseToVersion43(sqlStore SqlStore)
- func UpgradeDatabaseToVersion44(sqlStore SqlStore)
- func UpgradeDatabaseToVersion45(sqlStore SqlStore)
- func UpgradeDatabaseToVersion46(sqlStore SqlStore)
- func UpgradeDatabaseToVersion47(sqlStore SqlStore)
- func UpgradeDatabaseToVersion471(sqlStore SqlStore)
- func UpgradeDatabaseToVersion472(sqlStore SqlStore)
- func UpgradeDatabaseToVersion48(sqlStore SqlStore)
- func UpgradeDatabaseToVersion481(sqlStore SqlStore)
- func UpgradeDatabaseToVersion49(sqlStore SqlStore)
- func UpgradeDatabaseToVersion50(sqlStore SqlStore)
- func UpgradeDatabaseToVersion51(sqlStore SqlStore)
- func UpgradeDatabaseToVersion510(sqlStore SqlStore)
- func UpgradeDatabaseToVersion511(sqlStore SqlStore)
- func UpgradeDatabaseToVersion512(sqlStore SqlStore)
- func UpgradeDatabaseToVersion513(sqlStore SqlStore)
- func UpgradeDatabaseToVersion514(sqlStore SqlStore)
- func UpgradeDatabaseToVersion52(sqlStore SqlStore)
- func UpgradeDatabaseToVersion53(sqlStore SqlStore)
- func UpgradeDatabaseToVersion54(sqlStore SqlStore)
- func UpgradeDatabaseToVersion55(sqlStore SqlStore)
- func UpgradeDatabaseToVersion56(sqlStore SqlStore)
- func UpgradeDatabaseToVersion57(sqlStore SqlStore)
- func UpgradeDatabaseToVersion58(sqlStore SqlStore)
- func UpgradeDatabaseToVersion59(sqlStore SqlStore)
- type JSONSerializable
- type Role
- type SqlAuditStore
- func (s SqlAuditStore) CreateIndexesIfNotExists()
- func (s SqlAuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)
- func (s SqlAuditStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s SqlAuditStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s SqlAuditStore) Save(audit *model.Audit) *model.AppError
- type SqlBotStore
- func (us SqlBotStore) CreateIndexesIfNotExists()
- func (us SqlBotStore) Get(botUserId string, includeDeleted bool) (*model.Bot, *model.AppError)
- func (us SqlBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
- func (us SqlBotStore) PermanentDelete(botUserId string) *model.AppError
- func (us SqlBotStore) Save(bot *model.Bot) (*model.Bot, *model.AppError)
- func (us SqlBotStore) Update(bot *model.Bot) (*model.Bot, *model.AppError)
- type SqlChannelMemberHistoryStore
- func (s SqlChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
- func (s SqlChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError
- func (s SqlChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError
- func (s SqlChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- type SqlChannelStore
- func (s SqlChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s SqlChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
- func (s SqlChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s SqlChannelStore) ClearCaches()
- func (s SqlChannelStore) CreateDirectChannel(userId string, otherUserId string) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) CreateIndexesIfNotExists()
- func (s SqlChannelStore) Delete(channelId string, time int64) *model.AppError
- func (s SqlChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetAll(teamId string) ([]*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s SqlChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s SqlChannelStore) GetAllChannels(offset, limit int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
- func (s SqlChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, *model.AppError)
- func (s SqlChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
- func (s SqlChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
- func (s SqlChannelStore) GetByDisplayName(teamId string, displayName string) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetByName(teamId string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetByNameIncludeDeleted(teamId string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetByNames(teamId string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
- func (s SqlChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
- func (s SqlChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
- func (s SqlChannelStore) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError)
- func (s SqlChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) GetChannelsBatchForIndexing(startTime, endTime int64, limit int) ([]*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetChannelsByIds(channelIds []string) ([]*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel
- func (s SqlChannelStore) GetDeleted(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) GetDeletedByName(teamId string, name string) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetFromMaster(id string) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s SqlChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
- func (s SqlChannelStore) GetMemberCountFromCache(channelId string) int64
- func (s SqlChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
- func (s SqlChannelStore) GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError)
- func (s SqlChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
- func (s SqlChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
- func (s SqlChannelStore) GetMembersForUserWithPagination(teamId, userId string, page, perPage int) (*model.ChannelMembers, *model.AppError)
- func (s SqlChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
- func (s SqlChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
- func (s SqlChannelStore) InvalidateAllChannelMembersForUser(userId string)
- func (s SqlChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
- func (s SqlChannelStore) InvalidateChannel(id string)
- func (s SqlChannelStore) InvalidateChannelByName(teamId, name string)
- func (s SqlChannelStore) InvalidateMemberCount(channelId string)
- func (s SqlChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
- func (s SqlChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)
- func (s SqlChannelStore) MigratePublicChannels() error
- func (s SqlChannelStore) PermanentDelete(channelId string) store.StoreChannel
- func (s SqlChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel
- func (s SqlChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
- func (s SqlChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s SqlChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
- func (s SqlChannelStore) RemoveMember(channelId string, userId string) *model.AppError
- func (s SqlChannelStore) ResetAllChannelSchemes() *model.AppError
- func (s SqlChannelStore) Restore(channelId string, time int64) *model.AppError
- func (s SqlChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) SaveDirectChannel(directchannel *model.Channel, member1 *model.ChannelMember, ...) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel
- func (s SqlChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
- func (s SqlChannelStore) SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
- func (s SqlChannelStore) SetDeleteAt(channelId string, deleteAt, updateAt int64) *model.AppError
- func (s SqlChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError)
- func (s SqlChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
- func (s SqlChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
- func (s SqlChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)
- type SqlCommandStore
- func (s SqlCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
- func (s SqlCommandStore) CreateIndexesIfNotExists()
- func (s SqlCommandStore) Delete(commandId string, time int64) *model.AppError
- func (s SqlCommandStore) Get(id string) (*model.Command, *model.AppError)
- func (s SqlCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)
- func (s SqlCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
- func (s SqlCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (s SqlCommandStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s SqlCommandStore) Save(command *model.Command) (*model.Command, *model.AppError)
- func (s SqlCommandStore) Update(cmd *model.Command) (*model.Command, *model.AppError)
- type SqlCommandWebhookStore
- func (s SqlCommandWebhookStore) Cleanup()
- func (s SqlCommandWebhookStore) CreateIndexesIfNotExists()
- func (s SqlCommandWebhookStore) Get(id string) store.StoreChannel
- func (s SqlCommandWebhookStore) Save(webhook *model.CommandWebhook) store.StoreChannel
- func (s SqlCommandWebhookStore) TryUse(id string, limit int) store.StoreChannel
- type SqlComplianceStore
- func (s SqlComplianceStore) ComplianceExport(job *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s SqlComplianceStore) CreateIndexesIfNotExists()
- func (us SqlComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s SqlComplianceStore) GetAll(offset, limit int) (model.Compliances, *model.AppError)
- func (s SqlComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s SqlComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (us SqlComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type SqlEmojiStore
- func (es SqlEmojiStore) CreateIndexesIfNotExists()
- func (es SqlEmojiStore) Delete(id string, time int64) *model.AppError
- func (es SqlEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (es SqlEmojiStore) GetByName(name string) (*model.Emoji, *model.AppError)
- func (es SqlEmojiStore) GetList(offset, limit int, sort string) ([]*model.Emoji, *model.AppError)
- func (es SqlEmojiStore) GetMultipleByName(names []string) store.StoreChannel
- func (es SqlEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
- func (es SqlEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
- type SqlFileInfoStore
- func (fs SqlFileInfoStore) AttachToPost(fileId, postId, creatorId string) *model.AppError
- func (fs SqlFileInfoStore) ClearCaches()
- func (fs SqlFileInfoStore) CreateIndexesIfNotExists()
- func (fs SqlFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (fs SqlFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (fs SqlFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (fs SqlFileInfoStore) GetForPost(postId string, readFromMaster bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (fs SqlFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (fs SqlFileInfoStore) InvalidateFileInfosForPostCache(postId string)
- func (fs SqlFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s SqlFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s SqlFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (fs SqlFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type SqlGroupStore
- func (s *SqlGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *SqlGroupStore) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError)
- func (s *SqlGroupStore) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError)
- func (s *SqlGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
- func (s *SqlGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *SqlGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
- func (s *SqlGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
- func (s *SqlGroupStore) Create(group *model.Group) store.StoreChannel
- func (s *SqlGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *SqlGroupStore) CreateIndexesIfNotExists()
- func (s *SqlGroupStore) Delete(groupID string) store.StoreChannel
- func (s *SqlGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *SqlGroupStore) DeleteMember(groupID string, userID string) store.StoreChannel
- func (s *SqlGroupStore) Get(groupId string) store.StoreChannel
- func (s *SqlGroupStore) GetAllBySource(groupSource model.GroupSource) store.StoreChannel
- func (s *SqlGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
- func (s *SqlGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
- func (s *SqlGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) store.StoreChannel
- func (s *SqlGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
- func (s *SqlGroupStore) GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *SqlGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *SqlGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
- func (s *SqlGroupStore) GetMemberCount(groupID string) store.StoreChannel
- func (s *SqlGroupStore) GetMemberUsers(groupID string) store.StoreChannel
- func (s *SqlGroupStore) GetMemberUsersPage(groupID string, offset int, limit int) store.StoreChannel
- func (s *SqlGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
- func (s *SqlGroupStore) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError)
- func (s *SqlGroupStore) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError)
- func (s *SqlGroupStore) Update(group *model.Group) store.StoreChannel
- func (s *SqlGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
- func (s *SqlGroupStore) UpsertMember(groupID string, userID string) store.StoreChannel
- type SqlJobStore
- func (jss SqlJobStore) CreateIndexesIfNotExists()
- func (jss SqlJobStore) Delete(id string) (string, *model.AppError)
- func (jss SqlJobStore) Get(id string) (*model.Job, *model.AppError)
- func (jss SqlJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (jss SqlJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (jss SqlJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (jss SqlJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (jss SqlJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (jss SqlJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (jss SqlJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (jss SqlJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (jss SqlJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (jss SqlJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type SqlLicenseStore
- type SqlLinkMetadataStore
- type SqlOAuthStore
- func (as SqlOAuthStore) CreateIndexesIfNotExists()
- func (as SqlOAuthStore) DeleteApp(id string) *model.AppError
- func (as SqlOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) GetApp(id string) (*model.OAuthApp, *model.AppError)
- func (as SqlOAuthStore) GetAppByUser(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError)
- func (as SqlOAuthStore) GetApps(offset, limit int) ([]*model.OAuthApp, *model.AppError)
- func (as SqlOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)
- func (as SqlOAuthStore) GetAuthorizedApps(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError)
- func (as SqlOAuthStore) GetPreviousAccessData(userId, clientId string) (*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
- func (as SqlOAuthStore) RemoveAccessData(token string) *model.AppError
- func (as SqlOAuthStore) RemoveAllAccessData() *model.AppError
- func (as SqlOAuthStore) RemoveAuthData(code string) *model.AppError
- func (as SqlOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- func (as SqlOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
- func (as SqlOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (as SqlOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- type SqlPluginStore
- func (ps SqlPluginStore) CompareAndSet(kv *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
- func (ps SqlPluginStore) CreateIndexesIfNotExists()
- func (ps SqlPluginStore) Delete(pluginId, key string) store.StoreChannel
- func (ps SqlPluginStore) DeleteAllExpired() store.StoreChannel
- func (ps SqlPluginStore) DeleteAllForPlugin(pluginId string) store.StoreChannel
- func (ps SqlPluginStore) Get(pluginId, key string) store.StoreChannel
- func (ps SqlPluginStore) List(pluginId string, offset int, limit int) store.StoreChannel
- func (ps SqlPluginStore) SaveOrUpdate(kv *model.PluginKeyValue) store.StoreChannel
- type SqlPostStore
- func (s *SqlPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
- func (s *SqlPostStore) AnalyticsPostCountsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (s *SqlPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
- func (s *SqlPostStore) ClearCaches()
- func (s *SqlPostStore) CreateIndexesIfNotExists()
- func (s *SqlPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError
- func (s *SqlPostStore) Get(id string) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
- func (s *SqlPostStore) GetEtag(channelId string, allowFromCache bool) string
- func (s *SqlPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetFlaggedPostsForChannel(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetMaxPostSize() int
- func (s *SqlPostStore) GetOldest() (*model.Post, *model.AppError)
- func (s *SqlPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
- func (s *SqlPostStore) GetPosts(channelId string, offset int, limit int, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetPostsAfter(channelId string, postId string, limit int, offset int) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
- func (s *SqlPostStore) GetPostsBefore(channelId string, postId string, limit int, offset int) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
- func (s *SqlPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
- func (s *SqlPostStore) GetPostsSince(channelId string, time int64, allowFromCache bool) (*model.PostList, *model.AppError)
- func (s *SqlPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
- func (s *SqlPostStore) GetSingle(id string) (*model.Post, *model.AppError)
- func (s *SqlPostStore) InvalidateLastPostTimeCache(channelId string)
- func (s *SqlPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)
- func (s *SqlPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *SqlPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
- func (s *SqlPostStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *SqlPostStore) Save(post *model.Post) (*model.Post, *model.AppError)
- func (s *SqlPostStore) Search(teamId string, userId string, params *model.SearchParams) store.StoreChannel
- func (s *SqlPostStore) SelectByMessage(message string) (*model.Post, *model.AppError)
- func (s *SqlPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
- type SqlPreferenceStore
- func (s SqlPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s SqlPreferenceStore) CreateIndexesIfNotExists()
- func (s SqlPreferenceStore) Delete(userId, category, name string) *model.AppError
- func (s SqlPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s SqlPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s SqlPreferenceStore) DeleteUnusedFeatures()
- func (s SqlPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s SqlPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s SqlPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s SqlPreferenceStore) IsFeatureEnabled(feature, userId string) (bool, *model.AppError)
- func (s SqlPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s SqlPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type SqlSessionStore
- func (me SqlSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
- func (me SqlSessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (me SqlSessionStore) CreateIndexesIfNotExists()
- func (me SqlSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)
- func (me SqlSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)
- func (me SqlSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
- func (me SqlSessionStore) PermanentDeleteSessionsByUser(userId string) *model.AppError
- func (me SqlSessionStore) Remove(sessionIdOrToken string) *model.AppError
- func (me SqlSessionStore) RemoveAllSessions() *model.AppError
- func (me SqlSessionStore) Save(session *model.Session) (*model.Session, *model.AppError)
- func (me SqlSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
- func (me SqlSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
- func (me SqlSessionStore) UpdateRoles(userId, roles string) (string, *model.AppError)
- type SqlStatusStore
- func (s SqlStatusStore) CreateIndexesIfNotExists()
- func (s SqlStatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (s SqlStatusStore) GetAllFromTeam(teamId string) ([]*model.Status, *model.AppError)
- func (s SqlStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s SqlStatusStore) GetOnline() ([]*model.Status, *model.AppError)
- func (s SqlStatusStore) GetOnlineAway() ([]*model.Status, *model.AppError)
- func (s SqlStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s SqlStatusStore) ResetAll() *model.AppError
- func (s SqlStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s SqlStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) store.StoreChannel
- type SqlStore
- type SqlSupplier
- func (ss *SqlSupplier) AlterColumnDefaultIfExists(tableName string, columnName string, mySqlColDefault *string, ...) bool
- func (ss *SqlSupplier) AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, ...) bool
- func (ss *SqlSupplier) Audit() store.AuditStore
- func (ss *SqlSupplier) Bot() store.BotStore
- func (ss *SqlSupplier) Channel() store.ChannelStore
- func (ss *SqlSupplier) ChannelMemberHistory() store.ChannelMemberHistoryStore
- func (ss *SqlSupplier) Close()
- func (ss *SqlSupplier) ClusterDiscovery() store.ClusterDiscoveryStore
- func (ss *SqlSupplier) Command() store.CommandStore
- func (ss *SqlSupplier) CommandWebhook() store.CommandWebhookStore
- func (ss *SqlSupplier) Compliance() store.ComplianceStore
- func (ss *SqlSupplier) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, ...) bool
- func (ss *SqlSupplier) CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, ...) bool
- func (ss *SqlSupplier) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool
- func (ss *SqlSupplier) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SqlSupplier) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SqlSupplier) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
- func (ss *SqlSupplier) DoesColumnExist(tableName string, columnName string) bool
- func (ss *SqlSupplier) DoesTableExist(tableName string) bool
- func (ss *SqlSupplier) DoesTriggerExist(triggerName string) bool
- func (ss *SqlSupplier) DriverName() string
- func (ss *SqlSupplier) DropAllTables()
- func (ss *SqlSupplier) Emoji() store.EmojiStore
- func (ss *SqlSupplier) FileInfo() store.FileInfoStore
- func (ss *SqlSupplier) GetAllConns() []*gorp.DbMap
- func (ss *SqlSupplier) GetCurrentSchemaVersion() string
- func (ss *SqlSupplier) GetMaster() *gorp.DbMap
- func (ss *SqlSupplier) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string
- func (ss *SqlSupplier) GetReplica() *gorp.DbMap
- func (ss *SqlSupplier) GetSearchReplica() *gorp.DbMap
- func (ss *SqlSupplier) Group() store.GroupStore
- func (ss *SqlSupplier) Job() store.JobStore
- func (ss *SqlSupplier) License() store.LicenseStore
- func (ss *SqlSupplier) LinkMetadata() store.LinkMetadataStore
- func (ss *SqlSupplier) LockToMaster()
- func (ss *SqlSupplier) MarkSystemRanUnitTests()
- func (s *SqlSupplier) Next() store.LayeredStoreSupplier
- func (ss *SqlSupplier) OAuth() store.OAuthStore
- func (ss *SqlSupplier) Plugin() store.PluginStore
- func (ss *SqlSupplier) Post() store.PostStore
- func (ss *SqlSupplier) Preference() store.PreferenceStore
- func (ss *SqlSupplier) Reaction() store.ReactionStore
- func (s *SqlSupplier) ReactionDelete(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) (*model.Reaction, *model.AppError)
- func (s *SqlSupplier) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *model.AppError
- func (s *SqlSupplier) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) ([]*model.Reaction, *model.AppError)
- func (s *SqlSupplier) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, ...) (int64, *model.AppError)
- func (s *SqlSupplier) ReactionSave(ctx context.Context, reaction *model.Reaction, hints ...store.LayeredStoreHint) (*model.Reaction, *model.AppError)
- func (s *SqlSupplier) ReactionsBulkGetForPosts(ctx context.Context, postIds []string, hints ...store.LayeredStoreHint) ([]*model.Reaction, *model.AppError)
- func (ss *SqlSupplier) RemoveColumnIfExists(tableName string, columnName string) bool
- func (ss *SqlSupplier) RemoveIndexIfExists(indexName string, tableName string) bool
- func (ss *SqlSupplier) RemoveTableIfExists(tableName string) bool
- func (ss *SqlSupplier) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool
- func (ss *SqlSupplier) Role() store.RoleStore
- func (s *SqlSupplier) RoleDelete(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
- func (s *SqlSupplier) RoleGet(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
- func (s *SqlSupplier) RoleGetAll(ctx context.Context, hints ...store.LayeredStoreHint) ([]*model.Role, *model.AppError)
- func (s *SqlSupplier) RoleGetByName(ctx context.Context, name string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
- func (s *SqlSupplier) RoleGetByNames(ctx context.Context, names []string, hints ...store.LayeredStoreHint) ([]*model.Role, *model.AppError)
- func (s *SqlSupplier) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *model.AppError
- func (s *SqlSupplier) RoleSave(ctx context.Context, role *model.Role, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
- func (ss *SqlSupplier) Scheme() store.SchemeStore
- func (s *SqlSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
- func (s *SqlSupplier) SchemeGet(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
- func (s *SqlSupplier) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, ...) *store.LayeredStoreSupplierResult
- func (s *SqlSupplier) SchemeGetByName(ctx context.Context, schemeName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
- func (s *SqlSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
- func (s *SqlSupplier) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
- func (ss *SqlSupplier) Session() store.SessionStore
- func (s *SqlSupplier) SetChainNext(next store.LayeredStoreSupplier)
- func (ss *SqlSupplier) Status() store.StatusStore
- func (ss *SqlSupplier) System() store.SystemStore
- func (ss *SqlSupplier) Task() store.TaskStore
- func (ss *SqlSupplier) Team() store.TeamStore
- func (ss *SqlSupplier) TermsOfService() store.TermsOfServiceStore
- func (ss *SqlSupplier) Token() store.TokenStore
- func (ss *SqlSupplier) TotalMasterDbConnections() int
- func (ss *SqlSupplier) TotalReadDbConnections() int
- func (ss *SqlSupplier) TotalSearchDbConnections() int
- func (ss *SqlSupplier) UnlockFromMaster()
- func (ss *SqlSupplier) User() store.UserStore
- func (ss *SqlSupplier) UserAccessToken() store.UserAccessTokenStore
- func (ss *SqlSupplier) UserTermsOfService() store.UserTermsOfServiceStore
- func (ss *SqlSupplier) Webhook() store.WebhookStore
- type SqlSupplierOldStores
- type SqlSystemStore
- func (s SqlSystemStore) CreateIndexesIfNotExists()
- func (s SqlSystemStore) Get() (model.StringMap, *model.AppError)
- func (s SqlSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s SqlSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s SqlSystemStore) Save(system *model.System) *model.AppError
- func (s SqlSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s SqlSystemStore) Update(system *model.System) *model.AppError
- type SqlTaskStore
- func (us SqlTaskStore) Get(taskId string) (*model.Task, *model.AppError)
- func (us SqlTaskStore) GetAll() ([]*model.Task, *model.AppError)
- func (us SqlTaskStore) GetAllWithTeamId(teamId string) ([]*model.Task, *model.AppError)
- func (us SqlTaskStore) Insert(task *model.Task) (*model.Task, *model.AppError)
- func (us SqlTaskStore) Update(task *model.Task) (*model.Task, *model.AppError)
- type SqlTeamStore
- func (s SqlTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) store.StoreChannel
- func (s SqlTeamStore) AnalyticsTeamCount() (int64, *model.AppError)
- func (s SqlTeamStore) ClearAllCustomRoleAssignments() store.StoreChannel
- func (s SqlTeamStore) ClearCaches()
- func (s SqlTeamStore) CreateIndexesIfNotExists()
- func (s SqlTeamStore) Get(id string) (*model.Team, *model.AppError)
- func (s SqlTeamStore) GetActiveMemberCount(teamId string) (int64, *model.AppError)
- func (s SqlTeamStore) GetAll() ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) GetAllForExportAfter(limit int, afterId string) store.StoreChannel
- func (s SqlTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) GetAllPrivateTeamListing() store.StoreChannel
- func (s SqlTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) GetAllTeamListing() store.StoreChannel
- func (s SqlTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)
- func (s SqlTeamStore) GetByName(name string) (*model.Team, *model.AppError)
- func (s SqlTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s SqlTeamStore) GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError)
- func (s SqlTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) GetMembers(teamId string, offset int, limit int, ...) ([]*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) GetTeamMembersForExport(userId string) store.StoreChannel
- func (s SqlTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) store.StoreChannel
- func (s SqlTeamStore) GetTeamsByUserId(userId string) store.StoreChannel
- func (s SqlTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) GetTotalMemberCount(teamId string) (int64, *model.AppError)
- func (s SqlTeamStore) GetUserTeamIds(userId string, allowFromCache bool) store.StoreChannel
- func (s SqlTeamStore) InvalidateAllTeamIdsForUser(userId string)
- func (s SqlTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) store.StoreChannel
- func (s SqlTeamStore) PermanentDelete(teamId string) *model.AppError
- func (s SqlTeamStore) RemoveAllMembersByTeam(teamId string) store.StoreChannel
- func (s SqlTeamStore) RemoveAllMembersByUser(userId string) store.StoreChannel
- func (s SqlTeamStore) RemoveMember(teamId string, userId string) store.StoreChannel
- func (s SqlTeamStore) ResetAllTeamSchemes() store.StoreChannel
- func (s SqlTeamStore) Save(team *model.Team) (*model.Team, *model.AppError)
- func (s SqlTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) store.StoreChannel
- func (s SqlTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) SearchByName(name string) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)
- func (s SqlTeamStore) Update(team *model.Team) (*model.Team, *model.AppError)
- func (s SqlTeamStore) UpdateDisplayName(name string, teamId string) *model.AppError
- func (us SqlTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) store.StoreChannel
- func (s SqlTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
- func (s SqlTeamStore) UserBelongsToTeams(userId string, teamIds []string) store.StoreChannel
- type SqlTermsOfServiceStore
- func (s SqlTermsOfServiceStore) CreateIndexesIfNotExists()
- func (s SqlTermsOfServiceStore) Get(id string, allowFromCache bool) store.StoreChannel
- func (s SqlTermsOfServiceStore) GetLatest(allowFromCache bool) store.StoreChannel
- func (s SqlTermsOfServiceStore) Save(termsOfService *model.TermsOfService) store.StoreChannel
- type SqlTokenStore
- func (s SqlTokenStore) Cleanup()
- func (s SqlTokenStore) CreateIndexesIfNotExists()
- func (s SqlTokenStore) Delete(token string) *model.AppError
- func (s SqlTokenStore) GetByToken(tokenString string) (*model.Token, *model.AppError)
- func (s SqlTokenStore) RemoveAllTokensByType(tokenType string) store.StoreChannel
- func (s SqlTokenStore) Save(token *model.Token) *model.AppError
- type SqlUserAccessTokenStore
- func (s SqlUserAccessTokenStore) CreateIndexesIfNotExists()
- func (s SqlUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s SqlUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s SqlUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) GetAll(offset, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) GetByUser(userId string, offset, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s SqlUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s SqlUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type SqlUserStore
- func (us SqlUserStore) AnalyticsActiveCount(timePeriod int64) store.StoreChannel
- func (us SqlUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (us SqlUserStore) AnalyticsGetSystemAdminCount() store.StoreChannel
- func (us SqlUserStore) ClearAllCustomRoleAssignments() store.StoreChannel
- func (us SqlUserStore) ClearCaches()
- func (us SqlUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (us SqlUserStore) CreateIndexesIfNotExists()
- func (us SqlUserStore) Get(id string) (*model.User, *model.AppError)
- func (us SqlUserStore) GetAll() store.StoreChannel
- func (us SqlUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (us SqlUserStore) GetAllProfiles(options *model.UserGetOptions) store.StoreChannel
- func (us SqlUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel
- func (us SqlUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (us SqlUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
- func (us SqlUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (us SqlUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (us SqlUserStore) GetByUsername(username string) store.StoreChannel
- func (us SqlUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
- func (s SqlUserStore) GetEtagForAllProfiles() store.StoreChannel
- func (s SqlUserStore) GetEtagForProfiles(teamId string) store.StoreChannel
- func (us SqlUserStore) GetEtagForProfilesNotInTeam(teamId string) store.StoreChannel
- func (us SqlUserStore) GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) store.StoreChannel
- func (us SqlUserStore) GetNewUsersForTeam(teamId string, offset, limit int, ...) ([]*model.User, *model.AppError)
- func (us SqlUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
- func (us SqlUserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) store.StoreChannel
- func (us SqlUserStore) GetProfiles(options *model.UserGetOptions) store.StoreChannel
- func (us SqlUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
- func (us SqlUserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel
- func (us SqlUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) store.StoreChannel
- func (us SqlUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, ...) store.StoreChannel
- func (us SqlUserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, ...) store.StoreChannel
- func (us SqlUserStore) GetProfilesWithoutTeam(offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
- func (us SqlUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, ...) ([]*model.User, *model.AppError)
- func (us SqlUserStore) GetSystemAdminProfiles() store.StoreChannel
- func (us SqlUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
- func (us SqlUserStore) GetUnreadCount(userId string) (int64, error)
- func (us SqlUserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel
- func (us SqlUserStore) GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (us SqlUserStore) InferSystemInstallDate() store.StoreChannel
- func (us SqlUserStore) InvalidatProfileCacheForUser(userId string)
- func (us SqlUserStore) InvalidateProfilesInChannelCache(channelId string)
- func (us SqlUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
- func (us SqlUserStore) PermanentDelete(userId string) *model.AppError
- func (us SqlUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (us SqlUserStore) Save(user *model.User) store.StoreChannel
- func (us SqlUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (us SqlUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (us SqlUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) store.StoreChannel
- func (us SqlUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (us SqlUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
- func (us SqlUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, *model.AppError)
- func (us SqlUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (us SqlUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel
- func (us SqlUserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel
- func (us SqlUserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel
- func (us SqlUserStore) UpdateMfaSecret(userId, secret string) store.StoreChannel
- func (us SqlUserStore) UpdatePassword(userId, hashedPassword string) store.StoreChannel
- func (us SqlUserStore) UpdateUpdateAt(userId string) store.StoreChannel
- func (us SqlUserStore) VerifyEmail(userId, email string) (string, *model.AppError)
- type SqlUserTermsOfServiceStore
- func (s SqlUserTermsOfServiceStore) CreateIndexesIfNotExists()
- func (s SqlUserTermsOfServiceStore) Delete(userId, termsOfServiceId string) store.StoreChannel
- func (s SqlUserTermsOfServiceStore) GetByUser(userId string) store.StoreChannel
- func (s SqlUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) store.StoreChannel
- type SqlWebhookStore
- func (s SqlWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (s SqlWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s SqlWebhookStore) ClearCaches()
- func (s SqlWebhookStore) CreateIndexesIfNotExists()
- func (s SqlWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s SqlWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s SqlWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s SqlWebhookStore) GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s SqlWebhookStore) InvalidateWebhookCache(webhookId string)
- func (s SqlWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s SqlWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s SqlWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s SqlWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s SqlWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s SqlWebhookStore) UpdateIncoming(hook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s SqlWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type UserWithChannel
- type UserWithLastActivityAt
Constants ¶
const ( ALL_CHANNEL_MEMBERS_FOR_USER_CACHE_SIZE = model.SESSION_CACHE_SIZE ALL_CHANNEL_MEMBERS_FOR_USER_CACHE_SEC = 900 // 15 mins ALL_CHANNEL_MEMBERS_NOTIFY_PROPS_FOR_CHANNEL_CACHE_SIZE = model.SESSION_CACHE_SIZE ALL_CHANNEL_MEMBERS_NOTIFY_PROPS_FOR_CHANNEL_CACHE_SEC = 1800 // 30 mins CHANNEL_MEMBERS_COUNTS_CACHE_SIZE = model.CHANNEL_CACHE_SIZE CHANNEL_MEMBERS_COUNTS_CACHE_SEC = 1800 // 30 mins CHANNEL_CACHE_SEC = 900 // 15 mins )
const ( EMOJI_CACHE_SIZE = 5000 EMOJI_CACHE_SEC = 1800 // 30 mins )
const ( FILE_INFO_CACHE_SIZE = 25000 FILE_INFO_CACHE_SEC = 1800 // 30 minutes )
const ( LAST_POST_TIME_CACHE_SIZE = 25000 LAST_POST_TIME_CACHE_SEC = 900 // 15 minutes LAST_POSTS_CACHE_SIZE = 1000 LAST_POSTS_CACHE_SEC = 900 // 15 minutes )
const ( INDEX_TYPE_FULL_TEXT = "full_text" INDEX_TYPE_DEFAULT = "default" DB_PING_ATTEMPTS = 18 DB_PING_TIMEOUT_SECS = 10 )
const ( EXIT_GENERIC_FAILURE = 1 EXIT_CREATE_TABLE = 100 EXIT_DB_OPEN = 101 EXIT_PING = 102 EXIT_NO_DRIVER = 103 EXIT_TABLE_EXISTS = 104 EXIT_TABLE_EXISTS_MYSQL = 105 EXIT_COLUMN_EXISTS = 106 EXIT_DOES_COLUMN_EXISTS_POSTGRES = 107 EXIT_DOES_COLUMN_EXISTS_MYSQL = 108 EXIT_DOES_COLUMN_EXISTS_MISSING = 109 EXIT_CREATE_COLUMN_POSTGRES = 110 EXIT_CREATE_COLUMN_MYSQL = 111 EXIT_CREATE_COLUMN_MISSING = 112 EXIT_REMOVE_COLUMN = 113 EXIT_RENAME_COLUMN = 114 EXIT_MAX_COLUMN = 115 EXIT_ALTER_COLUMN = 116 EXIT_CREATE_INDEX_POSTGRES = 117 EXIT_CREATE_INDEX_MYSQL = 118 EXIT_CREATE_INDEX_FULL_MYSQL = 119 EXIT_CREATE_INDEX_MISSING = 120 EXIT_REMOVE_INDEX_POSTGRES = 121 EXIT_REMOVE_INDEX_MYSQL = 122 EXIT_REMOVE_INDEX_MISSING = 123 EXIT_REMOVE_TABLE = 134 EXIT_CREATE_INDEX_SQLITE = 135 EXIT_REMOVE_INDEX_SQLITE = 136 EXIT_TABLE_EXISTS_SQLITE = 137 EXIT_DOES_COLUMN_EXISTS_SQLITE = 138 )
const ( TEAM_MEMBER_EXISTS_ERROR = "store.sql_team.save_member.exists.app_error" ALL_TEAM_IDS_FOR_USER_CACHE_SIZE = model.SESSION_CACHE_SIZE ALL_TEAM_IDS_FOR_USER_CACHE_SEC = 1800 // 30 mins )
const ( VERSION_5_14_0 = "5.14.0" VERSION_5_13_0 = "5.13.0" VERSION_5_12_0 = "5.12.0" VERSION_5_11_0 = "5.11.0" VERSION_5_10_0 = "5.10.0" VERSION_5_9_0 = "5.9.0" VERSION_5_8_0 = "5.8.0" VERSION_5_7_0 = "5.7.0" VERSION_5_6_0 = "5.6.0" VERSION_5_5_0 = "5.5.0" VERSION_5_4_0 = "5.4.0" VERSION_5_3_0 = "5.3.0" VERSION_5_2_0 = "5.2.0" VERSION_5_1_0 = "5.1.0" VERSION_5_0_0 = "5.0.0" VERSION_4_10_0 = "4.10.0" VERSION_4_9_0 = "4.9.0" VERSION_4_8_1 = "4.8.1" VERSION_4_8_0 = "4.8.0" VERSION_4_7_2 = "4.7.2" VERSION_4_7_1 = "4.7.1" VERSION_4_7_0 = "4.7.0" VERSION_4_6_0 = "4.6.0" VERSION_4_5_0 = "4.5.0" VERSION_4_4_0 = "4.4.0" VERSION_4_3_0 = "4.3.0" VERSION_4_2_0 = "4.2.0" VERSION_4_1_0 = "4.1.0" VERSION_4_0_0 = "4.0.0" VERSION_3_10_0 = "3.10.0" VERSION_3_9_0 = "3.9.0" VERSION_3_8_0 = "3.8.0" VERSION_3_7_0 = "3.7.0" VERSION_3_6_0 = "3.6.0" VERSION_3_5_0 = "3.5.0" VERSION_3_4_0 = "3.4.0" VERSION_3_3_0 = "3.3.0" VERSION_3_2_0 = "3.2.0" VERSION_3_1_0 = "3.1.0" VERSION_3_0_0 = "3.0.0" OLDEST_SUPPORTED_VERSION = VERSION_3_0_0 )
const ( EXIT_VERSION_SAVE = 1003 EXIT_THEME_MIGRATION = 1004 EXIT_TEAM_INVITEID_MIGRATION_FAILED = 1006 )
const ( PROFILES_IN_CHANNEL_CACHE_SIZE = model.CHANNEL_CACHE_SIZE PROFILES_IN_CHANNEL_CACHE_SEC = 900 // 15 mins PROFILE_BY_IDS_CACHE_SIZE = model.SESSION_CACHE_SIZE PROFILE_BY_IDS_CACHE_SEC = 900 // 15 mins MAX_GROUP_CHANNELS_FOR_PROFILES = 50 )
const ( WEBHOOK_CACHE_SIZE = 25000 WEBHOOK_CACHE_SEC = 900 // 15 minutes )
const (
DEFAULT_PLUGIN_KEY_FETCH_LIMIT = 10
)
const (
MISSING_STATUS_ERROR = "store.sql_status.get.missing.app_error"
)
const (
SESSIONS_CLEANUP_DELAY_MILLISECONDS = 100
)
const (
UPDATE_POST_HAS_REACTIONS_ON_DELETE_QUERY = `` /* 148-byte string literal not displayed */
)
Variables ¶
var ( USER_SEARCH_TYPE_NAMES_NO_FULL_NAME = []string{"Username", "Nickname"} USER_SEARCH_TYPE_NAMES = []string{"Username", "FirstName", "LastName", "Nickname"} USER_SEARCH_TYPE_ALL_NO_FULL_NAME = []string{"Username", "Nickname", "Email"} USER_SEARCH_TYPE_ALL = []string{"Username", "FirstName", "LastName", "Nickname", "Email"} )
var CHANNEL_MEMBERS_WITH_SCHEME_SELECT_QUERY = `` /* 710-byte string literal not displayed */
Functions ¶
func IsUniqueConstraintError ¶
func MapStringsToQueryParams ¶
Converts a list of strings into a list of query parameters and a named parameter map that can be used as part of a SQL query.
func NewChannelMemberFromModel ¶
func NewChannelMemberFromModel(cm *model.ChannelMember) *channelMember
func NewSqlAuditStore ¶
func NewSqlAuditStore(sqlStore SqlStore) store.AuditStore
func NewSqlBotStore ¶
func NewSqlBotStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.BotStore
NewSqlBotStore creates an instance of SqlBotStore, registering the table schema in question.
func NewSqlChannelMemberHistoryStore ¶
func NewSqlChannelMemberHistoryStore(sqlStore SqlStore) store.ChannelMemberHistoryStore
func NewSqlChannelStore ¶
func NewSqlChannelStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.ChannelStore
func NewSqlClusterDiscoveryStore ¶
func NewSqlClusterDiscoveryStore(sqlStore SqlStore) store.ClusterDiscoveryStore
func NewSqlCommandStore ¶
func NewSqlCommandStore(sqlStore SqlStore) store.CommandStore
func NewSqlCommandWebhookStore ¶
func NewSqlCommandWebhookStore(sqlStore SqlStore) store.CommandWebhookStore
func NewSqlComplianceStore ¶
func NewSqlComplianceStore(sqlStore SqlStore) store.ComplianceStore
func NewSqlEmojiStore ¶
func NewSqlEmojiStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.EmojiStore
func NewSqlFileInfoStore ¶
func NewSqlFileInfoStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.FileInfoStore
func NewSqlGroupStore ¶
func NewSqlGroupStore(sqlStore SqlStore) store.GroupStore
func NewSqlJobStore ¶
func NewSqlLicenseStore ¶
func NewSqlLicenseStore(sqlStore SqlStore) store.LicenseStore
func NewSqlLinkMetadataStore ¶
func NewSqlLinkMetadataStore(sqlStore SqlStore) store.LinkMetadataStore
func NewSqlOAuthStore ¶
func NewSqlOAuthStore(sqlStore SqlStore) store.OAuthStore
func NewSqlPluginStore ¶
func NewSqlPluginStore(sqlStore SqlStore) store.PluginStore
func NewSqlPostStore ¶
func NewSqlPostStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.PostStore
func NewSqlPreferenceStore ¶
func NewSqlPreferenceStore(sqlStore SqlStore) store.PreferenceStore
func NewSqlSessionStore ¶
func NewSqlSessionStore(sqlStore SqlStore) store.SessionStore
func NewSqlStatusStore ¶
func NewSqlStatusStore(sqlStore SqlStore) store.StatusStore
func NewSqlSystemStore ¶
func NewSqlSystemStore(sqlStore SqlStore) store.SystemStore
func NewSqlTaskStore ¶
func NewSqlTaskStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TaskStore
NewSqlTaskStore creates an instance of SqlTaskStore, registering the table schema in question.
func NewSqlTeamStore ¶
func NewSqlTeamStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TeamStore
func NewSqlTermsOfServiceStore ¶
func NewSqlTermsOfServiceStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.TermsOfServiceStore
func NewSqlTokenStore ¶
func NewSqlTokenStore(sqlStore SqlStore) store.TokenStore
func NewSqlUserAccessTokenStore ¶
func NewSqlUserAccessTokenStore(sqlStore SqlStore) store.UserAccessTokenStore
func NewSqlUserStore ¶
func NewSqlUserStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.UserStore
func NewSqlUserTermsOfServiceStore ¶
func NewSqlUserTermsOfServiceStore(sqlStore SqlStore) store.UserTermsOfServiceStore
func NewSqlWebhookStore ¶
func NewSqlWebhookStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.WebhookStore
func NewTeamMemberFromModel ¶
func NewTeamMemberFromModel(tm *model.TeamMember) *teamMember
func UpgradeDatabase ¶
UpgradeDatabase attempts to migrate the schema to the latest supported version. The value of model.CurrentVersion is accepted as a parameter for unit testing, but it is not used to stop migrations at that version.
func UpgradeDatabaseToVersion31 ¶
func UpgradeDatabaseToVersion31(sqlStore SqlStore)
func UpgradeDatabaseToVersion310 ¶
func UpgradeDatabaseToVersion310(sqlStore SqlStore)
func UpgradeDatabaseToVersion32 ¶
func UpgradeDatabaseToVersion32(sqlStore SqlStore)
func UpgradeDatabaseToVersion33 ¶
func UpgradeDatabaseToVersion33(sqlStore SqlStore)
func UpgradeDatabaseToVersion34 ¶
func UpgradeDatabaseToVersion34(sqlStore SqlStore)
func UpgradeDatabaseToVersion35 ¶
func UpgradeDatabaseToVersion35(sqlStore SqlStore)
func UpgradeDatabaseToVersion36 ¶
func UpgradeDatabaseToVersion36(sqlStore SqlStore)
func UpgradeDatabaseToVersion37 ¶
func UpgradeDatabaseToVersion37(sqlStore SqlStore)
func UpgradeDatabaseToVersion38 ¶
func UpgradeDatabaseToVersion38(sqlStore SqlStore)
func UpgradeDatabaseToVersion39 ¶
func UpgradeDatabaseToVersion39(sqlStore SqlStore)
func UpgradeDatabaseToVersion40 ¶
func UpgradeDatabaseToVersion40(sqlStore SqlStore)
func UpgradeDatabaseToVersion41 ¶
func UpgradeDatabaseToVersion41(sqlStore SqlStore)
func UpgradeDatabaseToVersion410 ¶
func UpgradeDatabaseToVersion410(sqlStore SqlStore)
func UpgradeDatabaseToVersion42 ¶
func UpgradeDatabaseToVersion42(sqlStore SqlStore)
func UpgradeDatabaseToVersion43 ¶
func UpgradeDatabaseToVersion43(sqlStore SqlStore)
func UpgradeDatabaseToVersion44 ¶
func UpgradeDatabaseToVersion44(sqlStore SqlStore)
func UpgradeDatabaseToVersion45 ¶
func UpgradeDatabaseToVersion45(sqlStore SqlStore)
func UpgradeDatabaseToVersion46 ¶
func UpgradeDatabaseToVersion46(sqlStore SqlStore)
func UpgradeDatabaseToVersion47 ¶
func UpgradeDatabaseToVersion47(sqlStore SqlStore)
func UpgradeDatabaseToVersion471 ¶
func UpgradeDatabaseToVersion471(sqlStore SqlStore)
If any new instances started with 4.7, they would have the bad Email column on the ChannelMemberHistory table. So for those cases we need to do an upgrade between 4.7.0 and 4.7.1
func UpgradeDatabaseToVersion472 ¶
func UpgradeDatabaseToVersion472(sqlStore SqlStore)
func UpgradeDatabaseToVersion48 ¶
func UpgradeDatabaseToVersion48(sqlStore SqlStore)
func UpgradeDatabaseToVersion481 ¶
func UpgradeDatabaseToVersion481(sqlStore SqlStore)
func UpgradeDatabaseToVersion49 ¶
func UpgradeDatabaseToVersion49(sqlStore SqlStore)
func UpgradeDatabaseToVersion50 ¶
func UpgradeDatabaseToVersion50(sqlStore SqlStore)
func UpgradeDatabaseToVersion51 ¶
func UpgradeDatabaseToVersion51(sqlStore SqlStore)
func UpgradeDatabaseToVersion510 ¶
func UpgradeDatabaseToVersion510(sqlStore SqlStore)
func UpgradeDatabaseToVersion511 ¶
func UpgradeDatabaseToVersion511(sqlStore SqlStore)
func UpgradeDatabaseToVersion512 ¶
func UpgradeDatabaseToVersion512(sqlStore SqlStore)
func UpgradeDatabaseToVersion513 ¶
func UpgradeDatabaseToVersion513(sqlStore SqlStore)
func UpgradeDatabaseToVersion514 ¶
func UpgradeDatabaseToVersion514(sqlStore SqlStore)
func UpgradeDatabaseToVersion52 ¶
func UpgradeDatabaseToVersion52(sqlStore SqlStore)
func UpgradeDatabaseToVersion53 ¶
func UpgradeDatabaseToVersion53(sqlStore SqlStore)
func UpgradeDatabaseToVersion54 ¶
func UpgradeDatabaseToVersion54(sqlStore SqlStore)
func UpgradeDatabaseToVersion55 ¶
func UpgradeDatabaseToVersion55(sqlStore SqlStore)
func UpgradeDatabaseToVersion56 ¶
func UpgradeDatabaseToVersion56(sqlStore SqlStore)
func UpgradeDatabaseToVersion57 ¶
func UpgradeDatabaseToVersion57(sqlStore SqlStore)
func UpgradeDatabaseToVersion58 ¶
func UpgradeDatabaseToVersion58(sqlStore SqlStore)
func UpgradeDatabaseToVersion59 ¶
func UpgradeDatabaseToVersion59(sqlStore SqlStore)
Types ¶
type JSONSerializable ¶
type JSONSerializable interface {
ToJson() string
}
type Role ¶
type Role struct { Id string Name string DisplayName string Description string CreateAt int64 UpdateAt int64 DeleteAt int64 Permissions string SchemeManaged bool BuiltIn bool }
func NewRoleFromModel ¶
type SqlAuditStore ¶
type SqlAuditStore struct {
SqlStore
}
func (SqlAuditStore) CreateIndexesIfNotExists ¶
func (s SqlAuditStore) CreateIndexesIfNotExists()
func (SqlAuditStore) PermanentDeleteBatch ¶
func (SqlAuditStore) PermanentDeleteByUser ¶
func (s SqlAuditStore) PermanentDeleteByUser(userId string) *model.AppError
type SqlBotStore ¶
type SqlBotStore struct { SqlStore // contains filtered or unexported fields }
SqlBotStore is a store for managing bots in the database. Bots are otherwise normal users with extra metadata record in the Bots table. The primary key for a bot matches the primary key value for corresponding User record.
func (SqlBotStore) CreateIndexesIfNotExists ¶
func (us SqlBotStore) CreateIndexesIfNotExists()
func (SqlBotStore) GetAll ¶
func (us SqlBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
GetAll fetches from all bots in the database.
func (SqlBotStore) PermanentDelete ¶
func (us SqlBotStore) PermanentDelete(botUserId string) *model.AppError
PermanentDelete removes the bot from the database altogether. If the corresponding user is to be deleted, it must be done via the user store.
type SqlChannelMemberHistoryStore ¶
type SqlChannelMemberHistoryStore struct {
SqlStore
}
func (SqlChannelMemberHistoryStore) GetUsersInChannelDuring ¶
func (s SqlChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
func (SqlChannelMemberHistoryStore) LogJoinEvent ¶
func (SqlChannelMemberHistoryStore) LogLeaveEvent ¶
func (SqlChannelMemberHistoryStore) PermanentDeleteBatch ¶
type SqlChannelStore ¶
type SqlChannelStore struct { SqlStore // contains filtered or unexported fields }
func (SqlChannelStore) AnalyticsDeletedTypeCount ¶
func (SqlChannelStore) AnalyticsTypeCount ¶
func (SqlChannelStore) AutocompleteInTeam ¶
func (s SqlChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) AutocompleteInTeamForSearch ¶
func (s SqlChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) ClearAllCustomRoleAssignments ¶
func (s SqlChannelStore) ClearAllCustomRoleAssignments() *model.AppError
func (SqlChannelStore) ClearCaches ¶
func (s SqlChannelStore) ClearCaches()
func (SqlChannelStore) CreateDirectChannel ¶
func (SqlChannelStore) CreateIndexesIfNotExists ¶
func (s SqlChannelStore) CreateIndexesIfNotExists()
func (SqlChannelStore) Delete ¶
func (s SqlChannelStore) Delete(channelId string, time int64) *model.AppError
Delete records the given deleted timestamp to the channel in question.
func (SqlChannelStore) GetAllChannelMembersForUser ¶
func (SqlChannelStore) GetAllChannelMembersNotifyPropsForChannel ¶
func (SqlChannelStore) GetAllChannels ¶
func (s SqlChannelStore) GetAllChannels(offset, limit int, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
func (SqlChannelStore) GetAllChannelsCount ¶
func (s SqlChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, *model.AppError)
func (SqlChannelStore) GetAllChannelsForExportAfter ¶
func (s SqlChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
func (SqlChannelStore) GetAllDirectChannelsForExportAfter ¶
func (s SqlChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
func (SqlChannelStore) GetByDisplayName ¶
func (SqlChannelStore) GetByNameIncludeDeleted ¶
func (SqlChannelStore) GetByNames ¶
func (SqlChannelStore) GetChannelCounts ¶
func (s SqlChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
func (SqlChannelStore) GetChannelMembersForExport ¶
func (s SqlChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
func (SqlChannelStore) GetChannelMembersTimezones ¶
func (SqlChannelStore) GetChannelUnread ¶
func (s SqlChannelStore) GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError)
func (SqlChannelStore) GetChannels ¶
func (s SqlChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) GetChannelsBatchForIndexing ¶
func (SqlChannelStore) GetChannelsByIds ¶
func (SqlChannelStore) GetChannelsByScheme ¶
func (s SqlChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) store.StoreChannel
func (SqlChannelStore) GetDeleted ¶
func (s SqlChannelStore) GetDeleted(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) GetDeletedByName ¶
func (SqlChannelStore) GetForPost ¶
func (SqlChannelStore) GetFromMaster ¶
func (SqlChannelStore) GetMember ¶
func (s SqlChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
func (SqlChannelStore) GetMemberCount ¶
func (SqlChannelStore) GetMemberCountFromCache ¶
func (s SqlChannelStore) GetMemberCountFromCache(channelId string) int64
func (SqlChannelStore) GetMemberForPost ¶
func (s SqlChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
func (SqlChannelStore) GetMembers ¶
func (s SqlChannelStore) GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError)
func (SqlChannelStore) GetMembersByIds ¶
func (s SqlChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
func (SqlChannelStore) GetMembersForUser ¶
func (s SqlChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
func (SqlChannelStore) GetMembersForUserWithPagination ¶
func (s SqlChannelStore) GetMembersForUserWithPagination(teamId, userId string, page, perPage int) (*model.ChannelMembers, *model.AppError)
func (SqlChannelStore) GetMoreChannels ¶
func (s SqlChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) GetPinnedPosts ¶
func (SqlChannelStore) GetPublicChannelsByIdsForTeam ¶
func (s SqlChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) GetPublicChannelsForTeam ¶
func (s SqlChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) GetTeamChannels ¶
func (s SqlChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) IncrementMentionCount ¶
func (s SqlChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError
func (SqlChannelStore) InvalidateAllChannelMembersForUser ¶
func (s SqlChannelStore) InvalidateAllChannelMembersForUser(userId string)
func (SqlChannelStore) InvalidateCacheForChannelMembersNotifyProps ¶
func (s SqlChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)
func (SqlChannelStore) InvalidateChannel ¶
func (s SqlChannelStore) InvalidateChannel(id string)
func (SqlChannelStore) InvalidateChannelByName ¶
func (s SqlChannelStore) InvalidateChannelByName(teamId, name string)
func (SqlChannelStore) InvalidateMemberCount ¶
func (s SqlChannelStore) InvalidateMemberCount(channelId string)
func (SqlChannelStore) IsUserInChannelUseCache ¶
func (s SqlChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool
func (SqlChannelStore) MigrateChannelMembers ¶
func (s SqlChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)
This function does the Advanced Permissions Phase 2 migration for ChannelMember objects. It performs the migration in batches as a single transaction per batch to ensure consistency but to also minimise execution time to avoid causing unnecessary table locks. **THIS FUNCTION SHOULD NOT BE USED FOR ANY OTHER PURPOSE.** Executing this function *after* the new Schemes functionality has been used on an installation will have unintended consequences.
func (SqlChannelStore) MigratePublicChannels ¶
func (s SqlChannelStore) MigratePublicChannels() error
MigratePublicChannels initializes the PublicChannels table with data created before this version of the Xenia server kept it up-to-date.
func (SqlChannelStore) PermanentDelete ¶
func (s SqlChannelStore) PermanentDelete(channelId string) store.StoreChannel
PermanentDelete removes the given channel from the database.
func (SqlChannelStore) PermanentDeleteByTeam ¶
func (s SqlChannelStore) PermanentDeleteByTeam(teamId string) store.StoreChannel
PermanentDeleteByTeam removes all channels for the given team from the database.
func (SqlChannelStore) PermanentDeleteMembersByChannel ¶
func (s SqlChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError
func (SqlChannelStore) PermanentDeleteMembersByUser ¶
func (s SqlChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (SqlChannelStore) RemoveAllDeactivatedMembers ¶
func (s SqlChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError
func (SqlChannelStore) RemoveMember ¶
func (s SqlChannelStore) RemoveMember(channelId string, userId string) *model.AppError
func (SqlChannelStore) ResetAllChannelSchemes ¶
func (s SqlChannelStore) ResetAllChannelSchemes() *model.AppError
func (SqlChannelStore) Restore ¶
func (s SqlChannelStore) Restore(channelId string, time int64) *model.AppError
Restore reverts a previous deleted timestamp from the channel in question.
func (SqlChannelStore) Save ¶
func (s SqlChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
Save writes the (non-direct) channel channel to the database.
func (SqlChannelStore) SaveDirectChannel ¶
func (s SqlChannelStore) SaveDirectChannel(directchannel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, *model.AppError)
func (SqlChannelStore) SaveMember ¶
func (s SqlChannelStore) SaveMember(member *model.ChannelMember) store.StoreChannel
func (SqlChannelStore) SearchAllChannels ¶
func (s SqlChannelStore) SearchAllChannels(term string, opts store.ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
func (SqlChannelStore) SearchGroupChannels ¶
func (s SqlChannelStore) SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) SearchInTeam ¶
func (s SqlChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) SearchMore ¶
func (s SqlChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
func (SqlChannelStore) SetDeleteAt ¶
func (s SqlChannelStore) SetDeleteAt(channelId string, deleteAt, updateAt int64) *model.AppError
SetDeleteAt records the given deleted and updated timestamp to the channel in question.
func (SqlChannelStore) UpdateLastViewedAt ¶
func (SqlChannelStore) UpdateMember ¶
func (s SqlChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
func (SqlChannelStore) UserBelongsToChannels ¶
type SqlCommandStore ¶
type SqlCommandStore struct {
SqlStore
}
func (SqlCommandStore) AnalyticsCommandCount ¶
func (s SqlCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
func (SqlCommandStore) CreateIndexesIfNotExists ¶
func (s SqlCommandStore) CreateIndexesIfNotExists()
func (SqlCommandStore) Delete ¶
func (s SqlCommandStore) Delete(commandId string, time int64) *model.AppError
func (SqlCommandStore) GetByTrigger ¶
func (SqlCommandStore) PermanentDeleteByTeam ¶
func (s SqlCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
func (SqlCommandStore) PermanentDeleteByUser ¶
func (s SqlCommandStore) PermanentDeleteByUser(userId string) *model.AppError
type SqlCommandWebhookStore ¶
type SqlCommandWebhookStore struct {
SqlStore
}
func (SqlCommandWebhookStore) Cleanup ¶
func (s SqlCommandWebhookStore) Cleanup()
func (SqlCommandWebhookStore) CreateIndexesIfNotExists ¶
func (s SqlCommandWebhookStore) CreateIndexesIfNotExists()
func (SqlCommandWebhookStore) Get ¶
func (s SqlCommandWebhookStore) Get(id string) store.StoreChannel
func (SqlCommandWebhookStore) Save ¶
func (s SqlCommandWebhookStore) Save(webhook *model.CommandWebhook) store.StoreChannel
func (SqlCommandWebhookStore) TryUse ¶
func (s SqlCommandWebhookStore) TryUse(id string, limit int) store.StoreChannel
type SqlComplianceStore ¶
type SqlComplianceStore struct {
SqlStore
}
func (SqlComplianceStore) ComplianceExport ¶
func (s SqlComplianceStore) ComplianceExport(job *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (SqlComplianceStore) CreateIndexesIfNotExists ¶
func (s SqlComplianceStore) CreateIndexesIfNotExists()
func (SqlComplianceStore) Get ¶
func (us SqlComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (SqlComplianceStore) GetAll ¶
func (s SqlComplianceStore) GetAll(offset, limit int) (model.Compliances, *model.AppError)
func (SqlComplianceStore) MessageExport ¶
func (s SqlComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (SqlComplianceStore) Save ¶
func (s SqlComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (SqlComplianceStore) Update ¶
func (us SqlComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type SqlEmojiStore ¶
type SqlEmojiStore struct { SqlStore // contains filtered or unexported fields }
func (SqlEmojiStore) CreateIndexesIfNotExists ¶
func (es SqlEmojiStore) CreateIndexesIfNotExists()
func (SqlEmojiStore) GetMultipleByName ¶
func (es SqlEmojiStore) GetMultipleByName(names []string) store.StoreChannel
type SqlFileInfoStore ¶
type SqlFileInfoStore struct { SqlStore // contains filtered or unexported fields }
func (SqlFileInfoStore) AttachToPost ¶
func (fs SqlFileInfoStore) AttachToPost(fileId, postId, creatorId string) *model.AppError
func (SqlFileInfoStore) ClearCaches ¶
func (fs SqlFileInfoStore) ClearCaches()
func (SqlFileInfoStore) CreateIndexesIfNotExists ¶
func (fs SqlFileInfoStore) CreateIndexesIfNotExists()
func (SqlFileInfoStore) DeleteForPost ¶
func (fs SqlFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (SqlFileInfoStore) GetForPost ¶
func (SqlFileInfoStore) GetForUser ¶
func (SqlFileInfoStore) InvalidateFileInfosForPostCache ¶
func (fs SqlFileInfoStore) InvalidateFileInfosForPostCache(postId string)
func (SqlFileInfoStore) PermanentDelete ¶
func (fs SqlFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (SqlFileInfoStore) PermanentDeleteBatch ¶
func (SqlFileInfoStore) PermanentDeleteByUser ¶
func (s SqlFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type SqlGroupStore ¶
type SqlGroupStore struct {
SqlStore
}
func (*SqlGroupStore) ChannelMembersMinusGroupMembers ¶
func (s *SqlGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
ChannelMembersMinusGroupMembers returns the set of users in the given channel minus the set of users in the given groups.
func (*SqlGroupStore) ChannelMembersToAdd ¶
func (s *SqlGroupStore) ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError)
ChannelMembersToAdd returns a slice of UserChannelIDPair that need newly created memberships based on the groups configurations.
Typically since will be the last successful group sync time.
func (*SqlGroupStore) ChannelMembersToRemove ¶
func (s *SqlGroupStore) ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError)
ChannelMembersToRemove returns all channel members that should be removed based on group constraints.
func (*SqlGroupStore) CountChannelMembersMinusGroupMembers ¶
func (s *SqlGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)
CountChannelMembersMinusGroupMembers returns the count of the set of users in the given channel minus the set of users in the given groups.
func (*SqlGroupStore) CountGroupsByChannel ¶
func (s *SqlGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*SqlGroupStore) CountGroupsByTeam ¶
func (s *SqlGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)
func (*SqlGroupStore) CountTeamMembersMinusGroupMembers ¶
func (s *SqlGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
CountTeamMembersMinusGroupMembers returns the count of the set of users on the given team minus the set of users in the given groups.
func (*SqlGroupStore) Create ¶
func (s *SqlGroupStore) Create(group *model.Group) store.StoreChannel
func (*SqlGroupStore) CreateGroupSyncable ¶
func (s *SqlGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*SqlGroupStore) CreateIndexesIfNotExists ¶
func (s *SqlGroupStore) CreateIndexesIfNotExists()
func (*SqlGroupStore) Delete ¶
func (s *SqlGroupStore) Delete(groupID string) store.StoreChannel
func (*SqlGroupStore) DeleteGroupSyncable ¶
func (s *SqlGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*SqlGroupStore) DeleteMember ¶
func (s *SqlGroupStore) DeleteMember(groupID string, userID string) store.StoreChannel
func (*SqlGroupStore) Get ¶
func (s *SqlGroupStore) Get(groupId string) store.StoreChannel
func (*SqlGroupStore) GetAllBySource ¶
func (s *SqlGroupStore) GetAllBySource(groupSource model.GroupSource) store.StoreChannel
func (*SqlGroupStore) GetAllGroupSyncablesByGroupId ¶
func (s *SqlGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
func (*SqlGroupStore) GetByRemoteID ¶
func (s *SqlGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) store.StoreChannel
func (*SqlGroupStore) GetGroupSyncable ¶
func (s *SqlGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
func (*SqlGroupStore) GetGroups ¶
func (s *SqlGroupStore) GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*SqlGroupStore) GetGroupsByChannel ¶
func (s *SqlGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*SqlGroupStore) GetGroupsByTeam ¶
func (s *SqlGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)
func (*SqlGroupStore) GetMemberCount ¶
func (s *SqlGroupStore) GetMemberCount(groupID string) store.StoreChannel
func (*SqlGroupStore) GetMemberUsers ¶
func (s *SqlGroupStore) GetMemberUsers(groupID string) store.StoreChannel
func (*SqlGroupStore) GetMemberUsersPage ¶
func (s *SqlGroupStore) GetMemberUsersPage(groupID string, offset int, limit int) store.StoreChannel
func (*SqlGroupStore) TeamMembersMinusGroupMembers ¶
func (s *SqlGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
TeamMembersMinusGroupMembers returns the set of users on the given team minus the set of users in the given groups.
func (*SqlGroupStore) TeamMembersToAdd ¶
func (s *SqlGroupStore) TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError)
TeamMembersToAdd returns a slice of UserTeamIDPair that need newly created memberships based on the groups configurations.
Typically since will be the last successful group sync time.
func (*SqlGroupStore) TeamMembersToRemove ¶
func (s *SqlGroupStore) TeamMembersToRemove() ([]*model.TeamMember, *model.AppError)
TeamMembersToRemove returns all team members that should be removed based on group constraints.
func (*SqlGroupStore) Update ¶
func (s *SqlGroupStore) Update(group *model.Group) store.StoreChannel
func (*SqlGroupStore) UpdateGroupSyncable ¶
func (s *SqlGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
func (*SqlGroupStore) UpsertMember ¶
func (s *SqlGroupStore) UpsertMember(groupID string, userID string) store.StoreChannel
type SqlJobStore ¶
type SqlJobStore struct {
SqlStore
}
func (SqlJobStore) CreateIndexesIfNotExists ¶
func (jss SqlJobStore) CreateIndexesIfNotExists()
func (SqlJobStore) GetAllByStatus ¶
func (SqlJobStore) GetAllByType ¶
func (SqlJobStore) GetAllByTypePage ¶
func (SqlJobStore) GetAllPage ¶
func (SqlJobStore) GetCountByStatusAndType ¶
func (SqlJobStore) GetNewestJobByStatusAndType ¶
func (SqlJobStore) UpdateOptimistically ¶
func (SqlJobStore) UpdateStatus ¶
func (SqlJobStore) UpdateStatusOptimistically ¶
type SqlLicenseStore ¶
type SqlLicenseStore struct {
SqlStore
}
func (SqlLicenseStore) CreateIndexesIfNotExists ¶
func (ls SqlLicenseStore) CreateIndexesIfNotExists()
func (SqlLicenseStore) Get ¶
func (ls SqlLicenseStore) Get(id string) (*model.LicenseRecord, *model.AppError)
func (SqlLicenseStore) Save ¶
func (ls SqlLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
type SqlLinkMetadataStore ¶
type SqlLinkMetadataStore struct {
SqlStore
}
func (SqlLinkMetadataStore) CreateIndexesIfNotExists ¶
func (s SqlLinkMetadataStore) CreateIndexesIfNotExists()
func (SqlLinkMetadataStore) Get ¶
func (s SqlLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError)
func (SqlLinkMetadataStore) Save ¶
func (s SqlLinkMetadataStore) Save(metadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
type SqlOAuthStore ¶
type SqlOAuthStore struct {
SqlStore
}
func (SqlOAuthStore) CreateIndexesIfNotExists ¶
func (as SqlOAuthStore) CreateIndexesIfNotExists()
func (SqlOAuthStore) GetAccessData ¶
func (as SqlOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
func (SqlOAuthStore) GetAccessDataByRefreshToken ¶
func (as SqlOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
func (SqlOAuthStore) GetAccessDataByUserForApp ¶
func (as SqlOAuthStore) GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, *model.AppError)
func (SqlOAuthStore) GetAppByUser ¶
func (SqlOAuthStore) GetAuthData ¶
func (SqlOAuthStore) GetAuthorizedApps ¶
func (SqlOAuthStore) GetPreviousAccessData ¶
func (as SqlOAuthStore) GetPreviousAccessData(userId, clientId string) (*model.AccessData, *model.AppError)
func (SqlOAuthStore) PermanentDeleteAuthDataByUser ¶
func (as SqlOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
func (SqlOAuthStore) RemoveAccessData ¶
func (as SqlOAuthStore) RemoveAccessData(token string) *model.AppError
func (SqlOAuthStore) RemoveAllAccessData ¶
func (as SqlOAuthStore) RemoveAllAccessData() *model.AppError
func (SqlOAuthStore) RemoveAuthData ¶
func (as SqlOAuthStore) RemoveAuthData(code string) *model.AppError
func (SqlOAuthStore) SaveAccessData ¶
func (as SqlOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
func (SqlOAuthStore) SaveAuthData ¶
func (SqlOAuthStore) UpdateAccessData ¶
func (as SqlOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
type SqlPluginStore ¶
type SqlPluginStore struct {
SqlStore
}
func (SqlPluginStore) CompareAndSet ¶
func (ps SqlPluginStore) CompareAndSet(kv *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
func (SqlPluginStore) CreateIndexesIfNotExists ¶
func (ps SqlPluginStore) CreateIndexesIfNotExists()
func (SqlPluginStore) Delete ¶
func (ps SqlPluginStore) Delete(pluginId, key string) store.StoreChannel
func (SqlPluginStore) DeleteAllExpired ¶
func (ps SqlPluginStore) DeleteAllExpired() store.StoreChannel
func (SqlPluginStore) DeleteAllForPlugin ¶
func (ps SqlPluginStore) DeleteAllForPlugin(pluginId string) store.StoreChannel
func (SqlPluginStore) Get ¶
func (ps SqlPluginStore) Get(pluginId, key string) store.StoreChannel
func (SqlPluginStore) List ¶
func (ps SqlPluginStore) List(pluginId string, offset int, limit int) store.StoreChannel
func (SqlPluginStore) SaveOrUpdate ¶
func (ps SqlPluginStore) SaveOrUpdate(kv *model.PluginKeyValue) store.StoreChannel
type SqlPostStore ¶
type SqlPostStore struct { SqlStore // contains filtered or unexported fields }
func (*SqlPostStore) AnalyticsPostCount ¶
func (*SqlPostStore) AnalyticsPostCountsByDay ¶
func (s *SqlPostStore) AnalyticsPostCountsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
func (*SqlPostStore) AnalyticsUserCountsWithPostsByDay ¶
func (s *SqlPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
func (*SqlPostStore) ClearCaches ¶
func (s *SqlPostStore) ClearCaches()
func (*SqlPostStore) CreateIndexesIfNotExists ¶
func (s *SqlPostStore) CreateIndexesIfNotExists()
func (*SqlPostStore) GetDirectPostParentsForExportAfter ¶
func (s *SqlPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
func (*SqlPostStore) GetEtag ¶
func (s *SqlPostStore) GetEtag(channelId string, allowFromCache bool) string
func (*SqlPostStore) GetFlaggedPosts ¶
func (*SqlPostStore) GetFlaggedPostsForChannel ¶
func (*SqlPostStore) GetFlaggedPostsForTeam ¶
func (*SqlPostStore) GetMaxPostSize ¶
func (s *SqlPostStore) GetMaxPostSize() int
GetMaxPostSize returns the maximum number of runes that may be stored in a post.
func (*SqlPostStore) GetParentsForExportAfter ¶
func (s *SqlPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
func (*SqlPostStore) GetPostsAfter ¶
func (*SqlPostStore) GetPostsBatchForIndexing ¶
func (s *SqlPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
func (*SqlPostStore) GetPostsBefore ¶
func (*SqlPostStore) GetPostsByIds ¶
func (*SqlPostStore) GetPostsCreatedAt ¶
func (*SqlPostStore) GetPostsSince ¶
func (*SqlPostStore) GetRepliesForExport ¶
func (s *SqlPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
func (*SqlPostStore) InvalidateLastPostTimeCache ¶
func (s *SqlPostStore) InvalidateLastPostTimeCache(channelId string)
func (*SqlPostStore) PermanentDeleteBatch ¶
func (*SqlPostStore) PermanentDeleteByChannel ¶
func (s *SqlPostStore) PermanentDeleteByChannel(channelId string) *model.AppError
func (*SqlPostStore) PermanentDeleteByUser ¶
func (s *SqlPostStore) PermanentDeleteByUser(userId string) *model.AppError
func (*SqlPostStore) Search ¶
func (s *SqlPostStore) Search(teamId string, userId string, params *model.SearchParams) store.StoreChannel
func (*SqlPostStore) SelectByMessage ¶
type SqlPreferenceStore ¶
type SqlPreferenceStore struct {
SqlStore
}
func (SqlPreferenceStore) CleanupFlagsBatch ¶
func (s SqlPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (SqlPreferenceStore) CreateIndexesIfNotExists ¶
func (s SqlPreferenceStore) CreateIndexesIfNotExists()
func (SqlPreferenceStore) Delete ¶
func (s SqlPreferenceStore) Delete(userId, category, name string) *model.AppError
func (SqlPreferenceStore) DeleteCategory ¶
func (s SqlPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (SqlPreferenceStore) DeleteCategoryAndName ¶
func (s SqlPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (SqlPreferenceStore) DeleteUnusedFeatures ¶
func (s SqlPreferenceStore) DeleteUnusedFeatures()
func (SqlPreferenceStore) Get ¶
func (s SqlPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (SqlPreferenceStore) GetAll ¶
func (s SqlPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (SqlPreferenceStore) GetCategory ¶
func (s SqlPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (SqlPreferenceStore) IsFeatureEnabled ¶
func (s SqlPreferenceStore) IsFeatureEnabled(feature, userId string) (bool, *model.AppError)
func (SqlPreferenceStore) PermanentDeleteByUser ¶
func (s SqlPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (SqlPreferenceStore) Save ¶
func (s SqlPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type SqlSessionStore ¶
type SqlSessionStore struct {
SqlStore
}
func (SqlSessionStore) AnalyticsSessionCount ¶
func (me SqlSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
func (SqlSessionStore) Cleanup ¶
func (me SqlSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (SqlSessionStore) CreateIndexesIfNotExists ¶
func (me SqlSessionStore) CreateIndexesIfNotExists()
func (SqlSessionStore) GetSessions ¶
func (SqlSessionStore) GetSessionsWithActiveDeviceIds ¶
func (SqlSessionStore) PermanentDeleteSessionsByUser ¶
func (me SqlSessionStore) PermanentDeleteSessionsByUser(userId string) *model.AppError
func (SqlSessionStore) Remove ¶
func (me SqlSessionStore) Remove(sessionIdOrToken string) *model.AppError
func (SqlSessionStore) RemoveAllSessions ¶
func (me SqlSessionStore) RemoveAllSessions() *model.AppError
func (SqlSessionStore) UpdateDeviceId ¶
func (SqlSessionStore) UpdateLastActivityAt ¶
func (me SqlSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
func (SqlSessionStore) UpdateRoles ¶
func (me SqlSessionStore) UpdateRoles(userId, roles string) (string, *model.AppError)
type SqlStatusStore ¶
type SqlStatusStore struct {
SqlStore
}
func (SqlStatusStore) CreateIndexesIfNotExists ¶
func (s SqlStatusStore) CreateIndexesIfNotExists()
func (SqlStatusStore) GetAllFromTeam ¶
func (SqlStatusStore) GetOnline ¶
func (s SqlStatusStore) GetOnline() ([]*model.Status, *model.AppError)
func (SqlStatusStore) GetOnlineAway ¶
func (s SqlStatusStore) GetOnlineAway() ([]*model.Status, *model.AppError)
func (SqlStatusStore) GetTotalActiveUsersCount ¶
func (s SqlStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (SqlStatusStore) ResetAll ¶
func (s SqlStatusStore) ResetAll() *model.AppError
func (SqlStatusStore) SaveOrUpdate ¶
func (s SqlStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (SqlStatusStore) UpdateLastActivityAt ¶
func (s SqlStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) store.StoreChannel
type SqlStore ¶
type SqlStore interface { DriverName() string GetCurrentSchemaVersion() string GetMaster() *gorp.DbMap GetSearchReplica() *gorp.DbMap GetReplica() *gorp.DbMap TotalMasterDbConnections() int TotalReadDbConnections() int TotalSearchDbConnections() int MarkSystemRanUnitTests() DoesTableExist(tablename string) bool DoesColumnExist(tableName string, columName string) bool DoesTriggerExist(triggerName string) bool CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, postgresColType string, defaultValue string) bool CreateColumnIfNotExistsNoDefault(tableName string, columnName string, mySqlColType string, postgresColType string) bool RemoveColumnIfExists(tableName string, columnName string) bool RemoveTableIfExists(tableName string) bool RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool GetMaxLengthOfColumnIfExists(tableName string, columnName string) string AlterColumnTypeIfExists(tableName string, columnName string, mySqlColType string, postgresColType string) bool AlterColumnDefaultIfExists(tableName string, columnName string, mySqlColDefault *string, postgresColDefault *string) bool CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool RemoveIndexIfExists(indexName string, tableName string) bool GetAllConns() []*gorp.DbMap Close() LockToMaster() UnlockFromMaster() Team() store.TeamStore Channel() store.ChannelStore Post() store.PostStore User() store.UserStore Bot() store.BotStore Task() store.TaskStore Audit() store.AuditStore ClusterDiscovery() store.ClusterDiscoveryStore Compliance() store.ComplianceStore Session() store.SessionStore OAuth() store.OAuthStore System() store.SystemStore Webhook() store.WebhookStore Command() store.CommandStore CommandWebhook() store.CommandWebhookStore Preference() store.PreferenceStore License() store.LicenseStore Token() store.TokenStore Emoji() store.EmojiStore Status() store.StatusStore FileInfo() store.FileInfoStore Reaction() store.ReactionStore Job() store.JobStore Plugin() store.PluginStore UserAccessToken() store.UserAccessTokenStore Role() store.RoleStore Scheme() store.SchemeStore TermsOfService() store.TermsOfServiceStore UserTermsOfService() store.UserTermsOfServiceStore LinkMetadata() store.LinkMetadataStore // contains filtered or unexported methods }
type SqlSupplier ¶
type SqlSupplier struct {
// contains filtered or unexported fields
}
func NewSqlSupplier ¶
func NewSqlSupplier(settings model.SqlSettings, metrics einterfaces.MetricsInterface) *SqlSupplier
func (*SqlSupplier) AlterColumnDefaultIfExists ¶
func (*SqlSupplier) AlterColumnTypeIfExists ¶
func (*SqlSupplier) Audit ¶
func (ss *SqlSupplier) Audit() store.AuditStore
func (*SqlSupplier) Bot ¶
func (ss *SqlSupplier) Bot() store.BotStore
func (*SqlSupplier) Channel ¶
func (ss *SqlSupplier) Channel() store.ChannelStore
func (*SqlSupplier) ChannelMemberHistory ¶
func (ss *SqlSupplier) ChannelMemberHistory() store.ChannelMemberHistoryStore
func (*SqlSupplier) Close ¶
func (ss *SqlSupplier) Close()
func (*SqlSupplier) ClusterDiscovery ¶
func (ss *SqlSupplier) ClusterDiscovery() store.ClusterDiscoveryStore
func (*SqlSupplier) Command ¶
func (ss *SqlSupplier) Command() store.CommandStore
func (*SqlSupplier) CommandWebhook ¶
func (ss *SqlSupplier) CommandWebhook() store.CommandWebhookStore
func (*SqlSupplier) Compliance ¶
func (ss *SqlSupplier) Compliance() store.ComplianceStore
func (*SqlSupplier) CreateColumnIfNotExists ¶
func (*SqlSupplier) CreateColumnIfNotExistsNoDefault ¶
func (*SqlSupplier) CreateCompositeIndexIfNotExists ¶
func (ss *SqlSupplier) CreateCompositeIndexIfNotExists(indexName string, tableName string, columnNames []string) bool
func (*SqlSupplier) CreateFullTextIndexIfNotExists ¶
func (ss *SqlSupplier) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) bool
func (*SqlSupplier) CreateIndexIfNotExists ¶
func (ss *SqlSupplier) CreateIndexIfNotExists(indexName string, tableName string, columnName string) bool
func (*SqlSupplier) CreateUniqueIndexIfNotExists ¶
func (ss *SqlSupplier) CreateUniqueIndexIfNotExists(indexName string, tableName string, columnName string) bool
func (*SqlSupplier) DoesColumnExist ¶
func (ss *SqlSupplier) DoesColumnExist(tableName string, columnName string) bool
func (*SqlSupplier) DoesTableExist ¶
func (ss *SqlSupplier) DoesTableExist(tableName string) bool
func (*SqlSupplier) DoesTriggerExist ¶
func (ss *SqlSupplier) DoesTriggerExist(triggerName string) bool
func (*SqlSupplier) DriverName ¶
func (ss *SqlSupplier) DriverName() string
func (*SqlSupplier) DropAllTables ¶
func (ss *SqlSupplier) DropAllTables()
func (*SqlSupplier) Emoji ¶
func (ss *SqlSupplier) Emoji() store.EmojiStore
func (*SqlSupplier) FileInfo ¶
func (ss *SqlSupplier) FileInfo() store.FileInfoStore
func (*SqlSupplier) GetAllConns ¶
func (ss *SqlSupplier) GetAllConns() []*gorp.DbMap
func (*SqlSupplier) GetCurrentSchemaVersion ¶
func (ss *SqlSupplier) GetCurrentSchemaVersion() string
func (*SqlSupplier) GetMaster ¶
func (ss *SqlSupplier) GetMaster() *gorp.DbMap
func (*SqlSupplier) GetMaxLengthOfColumnIfExists ¶
func (ss *SqlSupplier) GetMaxLengthOfColumnIfExists(tableName string, columnName string) string
func (*SqlSupplier) GetReplica ¶
func (ss *SqlSupplier) GetReplica() *gorp.DbMap
func (*SqlSupplier) GetSearchReplica ¶
func (ss *SqlSupplier) GetSearchReplica() *gorp.DbMap
func (*SqlSupplier) Group ¶
func (ss *SqlSupplier) Group() store.GroupStore
func (*SqlSupplier) Job ¶
func (ss *SqlSupplier) Job() store.JobStore
func (*SqlSupplier) License ¶
func (ss *SqlSupplier) License() store.LicenseStore
func (*SqlSupplier) LinkMetadata ¶
func (ss *SqlSupplier) LinkMetadata() store.LinkMetadataStore
func (*SqlSupplier) LockToMaster ¶
func (ss *SqlSupplier) LockToMaster()
func (*SqlSupplier) MarkSystemRanUnitTests ¶
func (ss *SqlSupplier) MarkSystemRanUnitTests()
func (*SqlSupplier) Next ¶
func (s *SqlSupplier) Next() store.LayeredStoreSupplier
func (*SqlSupplier) OAuth ¶
func (ss *SqlSupplier) OAuth() store.OAuthStore
func (*SqlSupplier) Plugin ¶
func (ss *SqlSupplier) Plugin() store.PluginStore
func (*SqlSupplier) Post ¶
func (ss *SqlSupplier) Post() store.PostStore
func (*SqlSupplier) Preference ¶
func (ss *SqlSupplier) Preference() store.PreferenceStore
func (*SqlSupplier) Reaction ¶
func (ss *SqlSupplier) Reaction() store.ReactionStore
func (*SqlSupplier) ReactionDelete ¶
func (*SqlSupplier) ReactionDeleteAllWithEmojiName ¶
func (s *SqlSupplier) ReactionDeleteAllWithEmojiName(ctx context.Context, emojiName string, hints ...store.LayeredStoreHint) *model.AppError
func (*SqlSupplier) ReactionGetForPost ¶
func (s *SqlSupplier) ReactionGetForPost(ctx context.Context, postId string, hints ...store.LayeredStoreHint) ([]*model.Reaction, *model.AppError)
func (*SqlSupplier) ReactionPermanentDeleteBatch ¶
func (s *SqlSupplier) ReactionPermanentDeleteBatch(ctx context.Context, endTime int64, limit int64, hints ...store.LayeredStoreHint) (int64, *model.AppError)
func (*SqlSupplier) ReactionSave ¶
func (*SqlSupplier) ReactionsBulkGetForPosts ¶
func (s *SqlSupplier) ReactionsBulkGetForPosts(ctx context.Context, postIds []string, hints ...store.LayeredStoreHint) ([]*model.Reaction, *model.AppError)
func (*SqlSupplier) RemoveColumnIfExists ¶
func (ss *SqlSupplier) RemoveColumnIfExists(tableName string, columnName string) bool
func (*SqlSupplier) RemoveIndexIfExists ¶
func (ss *SqlSupplier) RemoveIndexIfExists(indexName string, tableName string) bool
func (*SqlSupplier) RemoveTableIfExists ¶
func (ss *SqlSupplier) RemoveTableIfExists(tableName string) bool
func (*SqlSupplier) RenameColumnIfExists ¶
func (*SqlSupplier) Role ¶
func (ss *SqlSupplier) Role() store.RoleStore
func (*SqlSupplier) RoleDelete ¶
func (s *SqlSupplier) RoleDelete(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
func (*SqlSupplier) RoleGet ¶
func (s *SqlSupplier) RoleGet(ctx context.Context, roleId string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
func (*SqlSupplier) RoleGetAll ¶
func (s *SqlSupplier) RoleGetAll(ctx context.Context, hints ...store.LayeredStoreHint) ([]*model.Role, *model.AppError)
func (*SqlSupplier) RoleGetByName ¶
func (s *SqlSupplier) RoleGetByName(ctx context.Context, name string, hints ...store.LayeredStoreHint) (*model.Role, *model.AppError)
func (*SqlSupplier) RoleGetByNames ¶
func (s *SqlSupplier) RoleGetByNames(ctx context.Context, names []string, hints ...store.LayeredStoreHint) ([]*model.Role, *model.AppError)
func (*SqlSupplier) RolePermanentDeleteAll ¶
func (s *SqlSupplier) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *model.AppError
func (*SqlSupplier) Scheme ¶
func (ss *SqlSupplier) Scheme() store.SchemeStore
func (*SqlSupplier) SchemeDelete ¶
func (s *SqlSupplier) SchemeDelete(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) SchemeGet ¶
func (s *SqlSupplier) SchemeGet(ctx context.Context, schemeId string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) SchemeGetAllPage ¶
func (s *SqlSupplier) SchemeGetAllPage(ctx context.Context, scope string, offset int, limit int, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) SchemeGetByName ¶
func (s *SqlSupplier) SchemeGetByName(ctx context.Context, schemeName string, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) SchemePermanentDeleteAll ¶
func (s *SqlSupplier) SchemePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) SchemeSave ¶
func (s *SqlSupplier) SchemeSave(ctx context.Context, scheme *model.Scheme, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult
func (*SqlSupplier) Session ¶
func (ss *SqlSupplier) Session() store.SessionStore
func (*SqlSupplier) SetChainNext ¶
func (s *SqlSupplier) SetChainNext(next store.LayeredStoreSupplier)
func (*SqlSupplier) Status ¶
func (ss *SqlSupplier) Status() store.StatusStore
func (*SqlSupplier) System ¶
func (ss *SqlSupplier) System() store.SystemStore
func (*SqlSupplier) Task ¶
func (ss *SqlSupplier) Task() store.TaskStore
func (*SqlSupplier) Team ¶
func (ss *SqlSupplier) Team() store.TeamStore
func (*SqlSupplier) TermsOfService ¶
func (ss *SqlSupplier) TermsOfService() store.TermsOfServiceStore
func (*SqlSupplier) Token ¶
func (ss *SqlSupplier) Token() store.TokenStore
func (*SqlSupplier) TotalMasterDbConnections ¶
func (ss *SqlSupplier) TotalMasterDbConnections() int
func (*SqlSupplier) TotalReadDbConnections ¶
func (ss *SqlSupplier) TotalReadDbConnections() int
func (*SqlSupplier) TotalSearchDbConnections ¶
func (ss *SqlSupplier) TotalSearchDbConnections() int
func (*SqlSupplier) UnlockFromMaster ¶
func (ss *SqlSupplier) UnlockFromMaster()
func (*SqlSupplier) User ¶
func (ss *SqlSupplier) User() store.UserStore
func (*SqlSupplier) UserAccessToken ¶
func (ss *SqlSupplier) UserAccessToken() store.UserAccessTokenStore
func (*SqlSupplier) UserTermsOfService ¶
func (ss *SqlSupplier) UserTermsOfService() store.UserTermsOfServiceStore
func (*SqlSupplier) Webhook ¶
func (ss *SqlSupplier) Webhook() store.WebhookStore
type SqlSupplierOldStores ¶
type SqlSupplierOldStores struct { TermsOfService store.TermsOfServiceStore UserTermsOfService store.UserTermsOfServiceStore // contains filtered or unexported fields }
type SqlSystemStore ¶
type SqlSystemStore struct {
SqlStore
}
func (SqlSystemStore) CreateIndexesIfNotExists ¶
func (s SqlSystemStore) CreateIndexesIfNotExists()
func (SqlSystemStore) PermanentDeleteByName ¶
func (SqlSystemStore) SaveOrUpdate ¶
func (s SqlSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type SqlTaskStore ¶
type SqlTaskStore struct { SqlStore // contains filtered or unexported fields }
SqlTaskStore is a store for managing tasks in the database. Tasks are otherwise normal users with extra metadata record in the Tasks table. The primary key for a task matches the primary key value for corresponding User record.
func (SqlTaskStore) GetAll ¶
func (us SqlTaskStore) GetAll() ([]*model.Task, *model.AppError)
GetAll fetches from all tasks in the database.
func (SqlTaskStore) GetAllWithTeamId ¶
For task center plugin
type SqlTeamStore ¶
type SqlTeamStore struct { SqlStore // contains filtered or unexported fields }
func (SqlTeamStore) AnalyticsGetTeamCountForScheme ¶
func (s SqlTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) store.StoreChannel
func (SqlTeamStore) AnalyticsTeamCount ¶
func (s SqlTeamStore) AnalyticsTeamCount() (int64, *model.AppError)
func (SqlTeamStore) ClearAllCustomRoleAssignments ¶
func (s SqlTeamStore) ClearAllCustomRoleAssignments() store.StoreChannel
func (SqlTeamStore) ClearCaches ¶
func (s SqlTeamStore) ClearCaches()
func (SqlTeamStore) CreateIndexesIfNotExists ¶
func (s SqlTeamStore) CreateIndexesIfNotExists()
func (SqlTeamStore) GetActiveMemberCount ¶
func (s SqlTeamStore) GetActiveMemberCount(teamId string) (int64, *model.AppError)
func (SqlTeamStore) GetAllForExportAfter ¶
func (s SqlTeamStore) GetAllForExportAfter(limit int, afterId string) store.StoreChannel
func (SqlTeamStore) GetAllPage ¶
func (SqlTeamStore) GetAllPrivateTeamListing ¶
func (s SqlTeamStore) GetAllPrivateTeamListing() store.StoreChannel
func (SqlTeamStore) GetAllPrivateTeamPageListing ¶
func (SqlTeamStore) GetAllTeamListing ¶
func (s SqlTeamStore) GetAllTeamListing() store.StoreChannel
func (SqlTeamStore) GetAllTeamPageListing ¶
func (SqlTeamStore) GetByInviteId ¶
func (SqlTeamStore) GetChannelUnreadsForAllTeams ¶
func (s SqlTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError)
func (SqlTeamStore) GetChannelUnreadsForTeam ¶
func (s SqlTeamStore) GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError)
func (SqlTeamStore) GetMember ¶
func (s SqlTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
func (SqlTeamStore) GetMembers ¶
func (s SqlTeamStore) GetMembers(teamId string, offset int, limit int, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (SqlTeamStore) GetMembersByIds ¶
func (s SqlTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
func (SqlTeamStore) GetTeamMembersForExport ¶
func (s SqlTeamStore) GetTeamMembersForExport(userId string) store.StoreChannel
func (SqlTeamStore) GetTeamsByScheme ¶
func (s SqlTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) store.StoreChannel
func (SqlTeamStore) GetTeamsByUserId ¶
func (s SqlTeamStore) GetTeamsByUserId(userId string) store.StoreChannel
func (SqlTeamStore) GetTeamsForUser ¶
func (s SqlTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
func (SqlTeamStore) GetTeamsForUserWithPagination ¶
func (s SqlTeamStore) GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError)
func (SqlTeamStore) GetTotalMemberCount ¶
func (s SqlTeamStore) GetTotalMemberCount(teamId string) (int64, *model.AppError)
func (SqlTeamStore) GetUserTeamIds ¶
func (s SqlTeamStore) GetUserTeamIds(userId string, allowFromCache bool) store.StoreChannel
func (SqlTeamStore) InvalidateAllTeamIdsForUser ¶
func (s SqlTeamStore) InvalidateAllTeamIdsForUser(userId string)
func (SqlTeamStore) MigrateTeamMembers ¶
func (s SqlTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) store.StoreChannel
This function does the Advanced Permissions Phase 2 migration for TeamMember objects. It performs the migration in batches as a single transaction per batch to ensure consistency but to also minimise execution time to avoid causing unnecessary table locks. **THIS FUNCTION SHOULD NOT BE USED FOR ANY OTHER PURPOSE.** Executing this function *after* the new Schemes functionality has been used on an installation will have unintended consequences.
func (SqlTeamStore) PermanentDelete ¶
func (s SqlTeamStore) PermanentDelete(teamId string) *model.AppError
func (SqlTeamStore) RemoveAllMembersByTeam ¶
func (s SqlTeamStore) RemoveAllMembersByTeam(teamId string) store.StoreChannel
func (SqlTeamStore) RemoveAllMembersByUser ¶
func (s SqlTeamStore) RemoveAllMembersByUser(userId string) store.StoreChannel
func (SqlTeamStore) RemoveMember ¶
func (s SqlTeamStore) RemoveMember(teamId string, userId string) store.StoreChannel
func (SqlTeamStore) ResetAllTeamSchemes ¶
func (s SqlTeamStore) ResetAllTeamSchemes() store.StoreChannel
func (SqlTeamStore) SaveMember ¶
func (s SqlTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) store.StoreChannel
func (SqlTeamStore) SearchByName ¶
func (SqlTeamStore) SearchOpen ¶
func (SqlTeamStore) SearchPrivate ¶
func (SqlTeamStore) UpdateDisplayName ¶
func (s SqlTeamStore) UpdateDisplayName(name string, teamId string) *model.AppError
func (SqlTeamStore) UpdateLastTeamIconUpdate ¶
func (us SqlTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) store.StoreChannel
func (SqlTeamStore) UpdateMember ¶
func (s SqlTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
func (SqlTeamStore) UserBelongsToTeams ¶
func (s SqlTeamStore) UserBelongsToTeams(userId string, teamIds []string) store.StoreChannel
type SqlTermsOfServiceStore ¶
type SqlTermsOfServiceStore struct { SqlStore // contains filtered or unexported fields }
func (SqlTermsOfServiceStore) CreateIndexesIfNotExists ¶
func (s SqlTermsOfServiceStore) CreateIndexesIfNotExists()
func (SqlTermsOfServiceStore) Get ¶
func (s SqlTermsOfServiceStore) Get(id string, allowFromCache bool) store.StoreChannel
func (SqlTermsOfServiceStore) GetLatest ¶
func (s SqlTermsOfServiceStore) GetLatest(allowFromCache bool) store.StoreChannel
func (SqlTermsOfServiceStore) Save ¶
func (s SqlTermsOfServiceStore) Save(termsOfService *model.TermsOfService) store.StoreChannel
type SqlTokenStore ¶
type SqlTokenStore struct {
SqlStore
}
func (SqlTokenStore) Cleanup ¶
func (s SqlTokenStore) Cleanup()
func (SqlTokenStore) CreateIndexesIfNotExists ¶
func (s SqlTokenStore) CreateIndexesIfNotExists()
func (SqlTokenStore) GetByToken ¶
func (SqlTokenStore) RemoveAllTokensByType ¶
func (s SqlTokenStore) RemoveAllTokensByType(tokenType string) store.StoreChannel
type SqlUserAccessTokenStore ¶
type SqlUserAccessTokenStore struct {
SqlStore
}
func (SqlUserAccessTokenStore) CreateIndexesIfNotExists ¶
func (s SqlUserAccessTokenStore) CreateIndexesIfNotExists()
func (SqlUserAccessTokenStore) Delete ¶
func (s SqlUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (SqlUserAccessTokenStore) DeleteAllForUser ¶
func (s SqlUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (SqlUserAccessTokenStore) Get ¶
func (s SqlUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) GetAll ¶
func (s SqlUserAccessTokenStore) GetAll(offset, limit int) ([]*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) GetByToken ¶
func (s SqlUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) GetByUser ¶
func (s SqlUserAccessTokenStore) GetByUser(userId string, offset, limit int) ([]*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) Save ¶
func (s SqlUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) Search ¶
func (s SqlUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (SqlUserAccessTokenStore) UpdateTokenDisable ¶
func (s SqlUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (SqlUserAccessTokenStore) UpdateTokenEnable ¶
func (s SqlUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type SqlUserStore ¶
type SqlUserStore struct { SqlStore // contains filtered or unexported fields }
func (SqlUserStore) AnalyticsActiveCount ¶
func (us SqlUserStore) AnalyticsActiveCount(timePeriod int64) store.StoreChannel
func (SqlUserStore) AnalyticsGetInactiveUsersCount ¶
func (us SqlUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (SqlUserStore) AnalyticsGetSystemAdminCount ¶
func (us SqlUserStore) AnalyticsGetSystemAdminCount() store.StoreChannel
func (SqlUserStore) ClearAllCustomRoleAssignments ¶
func (us SqlUserStore) ClearAllCustomRoleAssignments() store.StoreChannel
func (SqlUserStore) ClearCaches ¶
func (us SqlUserStore) ClearCaches()
func (SqlUserStore) Count ¶
func (us SqlUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (SqlUserStore) CreateIndexesIfNotExists ¶
func (us SqlUserStore) CreateIndexesIfNotExists()
func (SqlUserStore) GetAll ¶
func (us SqlUserStore) GetAll() store.StoreChannel
func (SqlUserStore) GetAllAfter ¶
func (SqlUserStore) GetAllProfiles ¶
func (us SqlUserStore) GetAllProfiles(options *model.UserGetOptions) store.StoreChannel
func (SqlUserStore) GetAllProfilesInChannel ¶
func (us SqlUserStore) GetAllProfilesInChannel(channelId string, allowFromCache bool) store.StoreChannel
func (SqlUserStore) GetAllUsingAuthService ¶
func (SqlUserStore) GetAnyUnreadPostCountForChannel ¶
func (SqlUserStore) GetByEmail ¶
func (SqlUserStore) GetByUsername ¶
func (us SqlUserStore) GetByUsername(username string) store.StoreChannel
func (SqlUserStore) GetChannelGroupUsers ¶
func (SqlUserStore) GetEtagForAllProfiles ¶
func (s SqlUserStore) GetEtagForAllProfiles() store.StoreChannel
func (SqlUserStore) GetEtagForProfiles ¶
func (s SqlUserStore) GetEtagForProfiles(teamId string) store.StoreChannel
func (SqlUserStore) GetEtagForProfilesNotInTeam ¶
func (us SqlUserStore) GetEtagForProfilesNotInTeam(teamId string) store.StoreChannel
func (SqlUserStore) GetForLogin ¶
func (us SqlUserStore) GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) store.StoreChannel
func (SqlUserStore) GetNewUsersForTeam ¶
func (us SqlUserStore) GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (SqlUserStore) GetProfileByGroupChannelIdsForUser ¶
func (SqlUserStore) GetProfileByIds ¶
func (us SqlUserStore) GetProfileByIds(userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) store.StoreChannel
func (SqlUserStore) GetProfiles ¶
func (us SqlUserStore) GetProfiles(options *model.UserGetOptions) store.StoreChannel
func (SqlUserStore) GetProfilesByUsernames ¶
func (us SqlUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
func (SqlUserStore) GetProfilesInChannel ¶
func (us SqlUserStore) GetProfilesInChannel(channelId string, offset int, limit int) store.StoreChannel
func (SqlUserStore) GetProfilesInChannelByStatus ¶
func (us SqlUserStore) GetProfilesInChannelByStatus(channelId string, offset int, limit int) store.StoreChannel
func (SqlUserStore) GetProfilesNotInChannel ¶
func (us SqlUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
func (SqlUserStore) GetProfilesNotInTeam ¶
func (us SqlUserStore) GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
func (SqlUserStore) GetProfilesWithoutTeam ¶
func (us SqlUserStore) GetProfilesWithoutTeam(offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) store.StoreChannel
func (SqlUserStore) GetRecentlyActiveUsersForTeam ¶
func (us SqlUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (SqlUserStore) GetSystemAdminProfiles ¶
func (us SqlUserStore) GetSystemAdminProfiles() store.StoreChannel
func (SqlUserStore) GetTeamGroupUsers ¶
func (SqlUserStore) GetUnreadCount ¶
func (us SqlUserStore) GetUnreadCount(userId string) (int64, error)
func (SqlUserStore) GetUnreadCountForChannel ¶
func (us SqlUserStore) GetUnreadCountForChannel(userId string, channelId string) store.StoreChannel
func (SqlUserStore) GetUsersBatchForIndexing ¶
func (us SqlUserStore) GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (SqlUserStore) InferSystemInstallDate ¶
func (us SqlUserStore) InferSystemInstallDate() store.StoreChannel
func (SqlUserStore) InvalidatProfileCacheForUser ¶
func (us SqlUserStore) InvalidatProfileCacheForUser(userId string)
func (SqlUserStore) InvalidateProfilesInChannelCache ¶
func (us SqlUserStore) InvalidateProfilesInChannelCache(channelId string)
func (SqlUserStore) InvalidateProfilesInChannelCacheByUser ¶
func (us SqlUserStore) InvalidateProfilesInChannelCacheByUser(userId string)
func (SqlUserStore) PermanentDelete ¶
func (us SqlUserStore) PermanentDelete(userId string) *model.AppError
func (SqlUserStore) ResetLastPictureUpdate ¶
func (us SqlUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (SqlUserStore) Save ¶
func (us SqlUserStore) Save(user *model.User) store.StoreChannel
func (SqlUserStore) Search ¶
func (us SqlUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (SqlUserStore) SearchInChannel ¶
func (us SqlUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (SqlUserStore) SearchNotInChannel ¶
func (us SqlUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) store.StoreChannel
func (SqlUserStore) SearchNotInTeam ¶
func (us SqlUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (SqlUserStore) SearchWithoutTeam ¶
func (us SqlUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
func (SqlUserStore) Update ¶
func (us SqlUserStore) Update(user *model.User, trustedUpdateData bool) (*model.UserUpdate, *model.AppError)
func (SqlUserStore) UpdateAuthData ¶
func (SqlUserStore) UpdateFailedPasswordAttempts ¶
func (us SqlUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) store.StoreChannel
func (SqlUserStore) UpdateLastPictureUpdate ¶
func (us SqlUserStore) UpdateLastPictureUpdate(userId string) store.StoreChannel
func (SqlUserStore) UpdateMfaActive ¶
func (us SqlUserStore) UpdateMfaActive(userId string, active bool) store.StoreChannel
func (SqlUserStore) UpdateMfaSecret ¶
func (us SqlUserStore) UpdateMfaSecret(userId, secret string) store.StoreChannel
func (SqlUserStore) UpdatePassword ¶
func (us SqlUserStore) UpdatePassword(userId, hashedPassword string) store.StoreChannel
func (SqlUserStore) UpdateUpdateAt ¶
func (us SqlUserStore) UpdateUpdateAt(userId string) store.StoreChannel
func (SqlUserStore) VerifyEmail ¶
func (us SqlUserStore) VerifyEmail(userId, email string) (string, *model.AppError)
type SqlUserTermsOfServiceStore ¶
type SqlUserTermsOfServiceStore struct {
SqlStore
}
func (SqlUserTermsOfServiceStore) CreateIndexesIfNotExists ¶
func (s SqlUserTermsOfServiceStore) CreateIndexesIfNotExists()
func (SqlUserTermsOfServiceStore) Delete ¶
func (s SqlUserTermsOfServiceStore) Delete(userId, termsOfServiceId string) store.StoreChannel
func (SqlUserTermsOfServiceStore) GetByUser ¶
func (s SqlUserTermsOfServiceStore) GetByUser(userId string) store.StoreChannel
func (SqlUserTermsOfServiceStore) Save ¶
func (s SqlUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) store.StoreChannel
type SqlWebhookStore ¶
type SqlWebhookStore struct { SqlStore // contains filtered or unexported fields }
func (SqlWebhookStore) AnalyticsIncomingCount ¶
func (s SqlWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (SqlWebhookStore) AnalyticsOutgoingCount ¶
func (s SqlWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (SqlWebhookStore) ClearCaches ¶
func (s SqlWebhookStore) ClearCaches()
func (SqlWebhookStore) CreateIndexesIfNotExists ¶
func (s SqlWebhookStore) CreateIndexesIfNotExists()
func (SqlWebhookStore) DeleteIncoming ¶
func (s SqlWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (SqlWebhookStore) DeleteOutgoing ¶
func (s SqlWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (SqlWebhookStore) GetIncoming ¶
func (s SqlWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) GetIncomingByChannel ¶
func (s SqlWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) GetIncomingByTeam ¶
func (s SqlWebhookStore) GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) GetIncomingList ¶
func (s SqlWebhookStore) GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) GetOutgoing ¶
func (s SqlWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (SqlWebhookStore) GetOutgoingByChannel ¶
func (s SqlWebhookStore) GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (SqlWebhookStore) GetOutgoingByTeam ¶
func (s SqlWebhookStore) GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (SqlWebhookStore) GetOutgoingList ¶
func (s SqlWebhookStore) GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (SqlWebhookStore) InvalidateWebhookCache ¶
func (s SqlWebhookStore) InvalidateWebhookCache(webhookId string)
func (SqlWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s SqlWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (SqlWebhookStore) PermanentDeleteIncomingByUser ¶
func (s SqlWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (SqlWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s SqlWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (SqlWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s SqlWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (SqlWebhookStore) SaveIncoming ¶
func (s SqlWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) SaveOutgoing ¶
func (s SqlWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (SqlWebhookStore) UpdateIncoming ¶
func (s SqlWebhookStore) UpdateIncoming(hook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (SqlWebhookStore) UpdateOutgoing ¶
func (s SqlWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type UserWithChannel ¶
type UserWithLastActivityAt ¶
Source Files
¶
- audit_store.go
- bot_store.go
- channel_member_history_store.go
- channel_store.go
- cluster_discovery_store.go
- command_store.go
- command_webhook_store.go
- compliance_store.go
- emoji_store.go
- file_info_store.go
- group_store.go
- job_store.go
- license_store.go
- link_metadata_store.go
- oauth_store.go
- plugin_store.go
- post_store.go
- preference_store.go
- role_supplier.go
- scheme_supplier.go
- session_store.go
- status_store.go
- store.go
- supplier.go
- supplier_reactions.go
- system_store.go
- task_store.go
- team_store.go
- terms_of_service_store.go
- tokens_store.go
- upgrade.go
- user_access_token_store.go
- user_store.go
- user_terms_of_service.go
- utils.go
- webhook_store.go