Documentation ¶
Index ¶
- Constants
- type AuditStore
- type BranchStore
- type ClassSearchOpts
- type ClassStore
- type ClusterDiscoveryStore
- type CommandStore
- type CommandWebhookStore
- type ComplianceStore
- type EmojiStore
- type FileInfoStore
- type IntegrityCheckResult
- type JobStore
- type LicenseStore
- type LinkMetadataStore
- type OAuthStore
- type OpenTracingLayer
- func (s *OpenTracingLayer) Audit() AuditStore
- func (s *OpenTracingLayer) Branch() BranchStore
- func (s *OpenTracingLayer) Class() ClassStore
- func (s *OpenTracingLayer) Close()
- func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore
- func (s *OpenTracingLayer) Command() CommandStore
- func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore
- func (s *OpenTracingLayer) Compliance() ComplianceStore
- func (s *OpenTracingLayer) DropAllTables()
- func (s *OpenTracingLayer) Emoji() EmojiStore
- func (s *OpenTracingLayer) FileInfo() FileInfoStore
- func (s *OpenTracingLayer) GetCurrentSchemaVersion() string
- func (s *OpenTracingLayer) Job() JobStore
- func (s *OpenTracingLayer) License() LicenseStore
- func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore
- func (s *OpenTracingLayer) LockToMaster()
- func (s *OpenTracingLayer) MarkSystemRanUnitTests()
- func (s *OpenTracingLayer) OAuth() OAuthStore
- func (s *OpenTracingLayer) Preference() PreferenceStore
- func (s *OpenTracingLayer) Reaction() ReactionStore
- func (s *OpenTracingLayer) Role() RoleStore
- func (s *OpenTracingLayer) Scheme() SchemeStore
- func (s *OpenTracingLayer) Session() SessionStore
- func (s *OpenTracingLayer) SetContext(context context.Context)
- func (s *OpenTracingLayer) Status() StatusStore
- func (s *OpenTracingLayer) System() SystemStore
- func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore
- func (s *OpenTracingLayer) Token() TokenStore
- func (s *OpenTracingLayer) TotalMasterDbConnections() int
- func (s *OpenTracingLayer) TotalReadDbConnections() int
- func (s *OpenTracingLayer) TotalSearchDbConnections() int
- func (s *OpenTracingLayer) UnlockFromMaster()
- func (s *OpenTracingLayer) User() UserStore
- func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore
- func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore
- func (s *OpenTracingLayer) Webhook() WebhookStore
- type OpenTracingLayerAuditStore
- type OpenTracingLayerBranchStore
- func (s *OpenTracingLayerBranchStore) AnalyticsBranchCount(includeDeleted bool) (int64, *model.AppError)
- func (s *OpenTracingLayerBranchStore) AnalyticsGetBranchCountForScheme(schemeId string) (int64, *model.AppError)
- func (s *OpenTracingLayerBranchStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerBranchStore) ClearCaches()
- func (s *OpenTracingLayerBranchStore) Get(id string) (*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetAll() ([]*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetAllPage(offset int, limit int) ([]*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBranchesByScheme(schemeId string, offset int, limit int) ([]*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBranchesByUserId(userId string) ([]*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBranchesForUser(userId string) ([]*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBranchesForUserWithPagination(userId string, page int, perPage int) ([]*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetByName(name string) (*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetByNames(name []string) ([]*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetBySchoolId(schoolId string) (*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetMember(branchId string, userId string) (*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetMembers(branchId string, offset int, limit int, ...) ([]*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetMembersByIds(branchId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetTotalMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *OpenTracingLayerBranchStore) GetUserBranchIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (s *OpenTracingLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)
- func (s *OpenTracingLayerBranchStore) MigrateBranchMembers(fromBranchId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *OpenTracingLayerBranchStore) PermanentDelete(branchId string) *model.AppError
- func (s *OpenTracingLayerBranchStore) RemoveAllMembersByBranch(branchId string) *model.AppError
- func (s *OpenTracingLayerBranchStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s *OpenTracingLayerBranchStore) RemoveMember(branchId string, userId string) *model.AppError
- func (s *OpenTracingLayerBranchStore) ResetAllBranchSchemes() *model.AppError
- func (s *OpenTracingLayerBranchStore) Save(branch *model.Branch) (*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) Update(branch *model.Branch) (*model.Branch, *model.AppError)
- func (s *OpenTracingLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError
- func (s *OpenTracingLayerBranchStore) UpdateMember(member *model.BranchMember) (*model.BranchMember, *model.AppError)
- func (s *OpenTracingLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError
- func (s *OpenTracingLayerBranchStore) UserBelongsToBranches(userId string, branchIds []string) (bool, *model.AppError)
- type OpenTracingLayerClassStore
- func (s *OpenTracingLayerClassStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerClassStore) ClearCaches()
- func (s *OpenTracingLayerClassStore) CreateDirectClass(userId *model.User, otherUserId *model.User) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) Delete(classId string, time int64) *model.AppError
- func (s *OpenTracingLayerClassStore) Get(id string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAll(branchId string) ([]*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAllClassMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAllClassMembersNotifyPropsForClass(classId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAllClasses(page int, perPage int, opts ClassSearchOpts) (*model.ClassListWithBranchData, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAllClassesCount(opts ClassSearchOpts) (int64, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetAllClassesForExportAfter(limit int, afterId string) ([]*model.ClassForExport, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetBranchClasses(branchId string) (*model.ClassList, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetByName(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetByNameIncludeDeleted(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetByNames(branch_id string, names []string, allowFromCache bool) ([]*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClassMembersTimezones(classId string) ([]model.StringMap, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClasses(branchId string, userId string, includeDeleted bool) (*model.ClassList, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClassesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClassesByIds(classIds []string, includeDeleted bool) ([]*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetClassesByScheme(schemeId string, offset int, limit int) (model.ClassList, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetDeleted(branch_id string, offset int, limit int, userId string) (*model.ClassList, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetDeletedByName(branch_id string, name string) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetFromMaster(id string) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMemberCount(classId string, allowFromCache bool) (int64, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMemberCountFromCache(classId string) int64
- func (s *OpenTracingLayerClassStore) GetMembers(classId string, offset int, limit int) (*model.ClassMembers, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMembersByIds(classId string, userIds []string) (*model.ClassMembers, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMembersForUser(branchId string, userId string) (*model.ClassMembers, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMembersForUserWithPagination(branchId string, userId string, page int, perPage int) (*model.ClassMembers, *model.AppError)
- func (s *OpenTracingLayerClassStore) GetMoreClasses(branchId string, userId string, offset int, limit int) (*model.ClassList, *model.AppError)
- func (s *OpenTracingLayerClassStore) InvalidateAllClassMembersForUser(userId string)
- func (s *OpenTracingLayerClassStore) InvalidateCacheForClassMembersNotifyProps(classId string)
- func (s *OpenTracingLayerClassStore) InvalidateClass(id string)
- func (s *OpenTracingLayerClassStore) InvalidateClassByName(branchId string, name string)
- func (s *OpenTracingLayerClassStore) InvalidateMemberCount(classId string)
- func (s *OpenTracingLayerClassStore) IsUserInClassUseCache(userId string, classId string) bool
- func (s *OpenTracingLayerClassStore) MigrateClassMembers(fromClassId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *OpenTracingLayerClassStore) PermanentDelete(classId string) *model.AppError
- func (s *OpenTracingLayerClassStore) PermanentDeleteByBranch(branchId string) *model.AppError
- func (s *OpenTracingLayerClassStore) PermanentDeleteMembersByClass(classId string) *model.AppError
- func (s *OpenTracingLayerClassStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *OpenTracingLayerClassStore) RemoveAllDeactivatedMembers(classId string) *model.AppError
- func (s *OpenTracingLayerClassStore) RemoveMember(classId string, userId string) *model.AppError
- func (s *OpenTracingLayerClassStore) ResetAllClassSchemes() *model.AppError
- func (s *OpenTracingLayerClassStore) Restore(classId string, time int64) *model.AppError
- func (s *OpenTracingLayerClassStore) Save(class *model.Class, maxClassesPerBranch int64) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) SaveDirectClass(class *model.Class, member1 *model.ClassMember, member2 *model.ClassMember) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) SaveMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
- func (s *OpenTracingLayerClassStore) SetDeleteAt(classId string, deleteAt int64, updateAt int64) *model.AppError
- func (s *OpenTracingLayerClassStore) Update(class *model.Class) (*model.Class, *model.AppError)
- func (s *OpenTracingLayerClassStore) UpdateMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
- func (s *OpenTracingLayerClassStore) UpdateMembersRole(classID string, userIDs []string) *model.AppError
- func (s *OpenTracingLayerClassStore) UserBelongsToClasses(userId string, classIds []string) (bool, *model.AppError)
- type OpenTracingLayerClusterDiscoveryStore
- func (s *OpenTracingLayerClusterDiscoveryStore) Cleanup() *model.AppError
- func (s *OpenTracingLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *OpenTracingLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *OpenTracingLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
- func (s *OpenTracingLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
- func (s *OpenTracingLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
- type OpenTracingLayerCommandStore
- func (s *OpenTracingLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
- func (s *OpenTracingLayerCommandStore) Delete(commandId string, time int64) *model.AppError
- func (s *OpenTracingLayerCommandStore) Get(id string) (*model.Command, *model.AppError)
- func (s *OpenTracingLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)
- func (s *OpenTracingLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
- func (s *OpenTracingLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (s *OpenTracingLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *OpenTracingLayerCommandStore) Save(webhook *model.Command) (*model.Command, *model.AppError)
- func (s *OpenTracingLayerCommandStore) Update(hook *model.Command) (*model.Command, *model.AppError)
- type OpenTracingLayerCommandWebhookStore
- func (s *OpenTracingLayerCommandWebhookStore) Cleanup()
- func (s *OpenTracingLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
- func (s *OpenTracingLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (s *OpenTracingLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type OpenTracingLayerComplianceStore
- func (s *OpenTracingLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (s *OpenTracingLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type OpenTracingLayerEmojiStore
- func (s *OpenTracingLayerEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError
- func (s *OpenTracingLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *OpenTracingLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *OpenTracingLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)
- func (s *OpenTracingLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)
- func (s *OpenTracingLayerEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
- func (s *OpenTracingLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
- type OpenTracingLayerFileInfoStore
- func (s *OpenTracingLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError
- func (s *OpenTracingLayerFileInfoStore) ClearCaches()
- func (s *OpenTracingLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
- func (s *OpenTracingLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s *OpenTracingLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (s *OpenTracingLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type OpenTracingLayerJobStore
- func (s *OpenTracingLayerJobStore) Delete(id string) (string, *model.AppError)
- func (s *OpenTracingLayerJobStore) Get(id string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (s *OpenTracingLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (s *OpenTracingLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type OpenTracingLayerLicenseStore
- type OpenTracingLayerLinkMetadataStore
- type OpenTracingLayerOAuthStore
- func (s *OpenTracingLayerOAuthStore) DeleteApp(id string) *model.AppError
- func (s *OpenTracingLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetApp(id string) (*model.OAuthApp, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
- func (s *OpenTracingLayerOAuthStore) RemoveAccessData(token string) *model.AppError
- func (s *OpenTracingLayerOAuthStore) RemoveAllAccessData() *model.AppError
- func (s *OpenTracingLayerOAuthStore) RemoveAuthData(code string) *model.AppError
- func (s *OpenTracingLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *OpenTracingLayerOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- type OpenTracingLayerPreferenceStore
- func (s *OpenTracingLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s *OpenTracingLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *OpenTracingLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type OpenTracingLayerReactionStore
- func (s *OpenTracingLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)
- func (s *OpenTracingLayerReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- func (s *OpenTracingLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
- func (s *OpenTracingLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
- func (s *OpenTracingLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *OpenTracingLayerReactionStore) Save(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- type OpenTracingLayerRoleStore
- func (s *OpenTracingLayerRoleStore) AllClassSchemeRoles() ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) ClassHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
- func (s *OpenTracingLayerRoleStore) ClassRolesUnderBranchRole(roleName string) ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (s *OpenTracingLayerRoleStore) PermanentDeleteAll() *model.AppError
- func (s *OpenTracingLayerRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- type OpenTracingLayerSchemeStore
- func (s *OpenTracingLayerSchemeStore) CountByScope(scope string) (int64, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, ...) (int64, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)
- func (s *OpenTracingLayerSchemeStore) PermanentDeleteAll() *model.AppError
- func (s *OpenTracingLayerSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, *model.AppError)
- type OpenTracingLayerSessionStore
- func (s *OpenTracingLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
- func (s *OpenTracingLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (s *OpenTracingLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)
- func (s *OpenTracingLayerSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)
- func (s *OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
- func (s *OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
- func (s *OpenTracingLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
- func (s *OpenTracingLayerSessionStore) RemoveAllSessions() *model.AppError
- func (s *OpenTracingLayerSessionStore) Save(session *model.Session) (*model.Session, *model.AppError)
- func (s *OpenTracingLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
- func (s *OpenTracingLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
- func (s *OpenTracingLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
- func (s *OpenTracingLayerSessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)
- type OpenTracingLayerStatusStore
- func (s *OpenTracingLayerStatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (s *OpenTracingLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s *OpenTracingLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s *OpenTracingLayerStatusStore) ResetAll() *model.AppError
- func (s *OpenTracingLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s *OpenTracingLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- type OpenTracingLayerSystemStore
- func (s *OpenTracingLayerSystemStore) Get() (model.StringMap, *model.AppError)
- func (s *OpenTracingLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s *OpenTracingLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s *OpenTracingLayerSystemStore) Save(system *model.System) *model.AppError
- func (s *OpenTracingLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s *OpenTracingLayerSystemStore) Update(system *model.System) *model.AppError
- type OpenTracingLayerTermsOfServiceStore
- func (s *OpenTracingLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *OpenTracingLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *OpenTracingLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
- type OpenTracingLayerTokenStore
- func (s *OpenTracingLayerTokenStore) Cleanup()
- func (s *OpenTracingLayerTokenStore) Delete(token string) *model.AppError
- func (s *OpenTracingLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)
- func (s *OpenTracingLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
- func (s *OpenTracingLayerTokenStore) Save(recovery *model.Token) *model.AppError
- type OpenTracingLayerUserAccessTokenStore
- func (s *OpenTracingLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type OpenTracingLayerUserStore
- func (s *OpenTracingLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *OpenTracingLayerUserStore) ClearCaches()
- func (s *OpenTracingLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) Get(id string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAll() ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllProfilesInClass(classId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string
- func (s *OpenTracingLayerUserStore) GetEtagForProfiles(branchId string) string
- func (s *OpenTracingLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetNewUsersForBranch(branchId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesInClass(classId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesInClassByStatus(classId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesNotInClass(branchId string, classId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetProfilesWithoutBranch(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetRecentlyActiveUsersForBranch(branchId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (s *OpenTracingLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)
- func (s *OpenTracingLayerUserStore) InvalidateProfilesInClassCache(classId string)
- func (s *OpenTracingLayerUserStore) InvalidateProfilesInClassCacheByUser(userId string)
- func (s *OpenTracingLayerUserStore) PermanentDelete(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *OpenTracingLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (s *OpenTracingLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (s *OpenTracingLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (s *OpenTracingLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (s *OpenTracingLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- type OpenTracingLayerUserTermsOfServiceStore
- func (s *OpenTracingLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
- func (s *OpenTracingLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
- func (s *OpenTracingLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
- type OpenTracingLayerWebhookStore
- func (s *OpenTracingLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) ClearCaches()
- func (s *OpenTracingLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s *OpenTracingLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s *OpenTracingLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s *OpenTracingLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *OpenTracingLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type OrphanedRecord
- type PreferenceStore
- type ReactionStore
- type RelationalIntegrityCheckData
- type RoleStore
- type SchemeStore
- type SessionStore
- type StatusStore
- type Store
- type StoreResult
- type SystemStore
- type TermsOfServiceStore
- type TimerLayer
- func (s *TimerLayer) Audit() AuditStore
- func (s *TimerLayer) Branch() BranchStore
- func (s *TimerLayer) Class() ClassStore
- func (s *TimerLayer) Close()
- func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
- func (s *TimerLayer) Command() CommandStore
- func (s *TimerLayer) CommandWebhook() CommandWebhookStore
- func (s *TimerLayer) Compliance() ComplianceStore
- func (s *TimerLayer) DropAllTables()
- func (s *TimerLayer) Emoji() EmojiStore
- func (s *TimerLayer) FileInfo() FileInfoStore
- func (s *TimerLayer) GetCurrentSchemaVersion() string
- func (s *TimerLayer) Job() JobStore
- func (s *TimerLayer) License() LicenseStore
- func (s *TimerLayer) LinkMetadata() LinkMetadataStore
- func (s *TimerLayer) LockToMaster()
- func (s *TimerLayer) MarkSystemRanUnitTests()
- func (s *TimerLayer) OAuth() OAuthStore
- func (s *TimerLayer) Preference() PreferenceStore
- func (s *TimerLayer) Reaction() ReactionStore
- func (s *TimerLayer) Role() RoleStore
- func (s *TimerLayer) Scheme() SchemeStore
- func (s *TimerLayer) Session() SessionStore
- func (s *TimerLayer) SetContext(context context.Context)
- func (s *TimerLayer) Status() StatusStore
- func (s *TimerLayer) System() SystemStore
- func (s *TimerLayer) TermsOfService() TermsOfServiceStore
- func (s *TimerLayer) Token() TokenStore
- func (s *TimerLayer) TotalMasterDbConnections() int
- func (s *TimerLayer) TotalReadDbConnections() int
- func (s *TimerLayer) TotalSearchDbConnections() int
- func (s *TimerLayer) UnlockFromMaster()
- func (s *TimerLayer) User() UserStore
- func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
- func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
- func (s *TimerLayer) Webhook() WebhookStore
- type TimerLayerAuditStore
- type TimerLayerBranchStore
- func (s *TimerLayerBranchStore) AnalyticsBranchCount(includeDeleted bool) (int64, *model.AppError)
- func (s *TimerLayerBranchStore) AnalyticsGetBranchCountForScheme(schemeId string) (int64, *model.AppError)
- func (s *TimerLayerBranchStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerBranchStore) ClearCaches()
- func (s *TimerLayerBranchStore) Get(id string) (*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerBranchStore) GetAll() ([]*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError)
- func (s *TimerLayerBranchStore) GetAllPage(offset int, limit int) ([]*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)
- func (s *TimerLayerBranchStore) GetBranchesByScheme(schemeId string, offset int, limit int) ([]*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetBranchesByUserId(userId string) ([]*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetBranchesForUser(userId string) ([]*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) GetBranchesForUserWithPagination(userId string, page int, perPage int) ([]*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) GetByName(name string) (*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetByNames(name []string) ([]*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetBySchoolId(schoolId string) (*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) GetMember(branchId string, userId string) (*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) GetMembers(branchId string, offset int, limit int, ...) ([]*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) GetMembersByIds(branchId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) GetTotalMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
- func (s *TimerLayerBranchStore) GetUserBranchIds(userId string, allowFromCache bool) ([]string, *model.AppError)
- func (s *TimerLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)
- func (s *TimerLayerBranchStore) MigrateBranchMembers(fromBranchId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerBranchStore) PermanentDelete(branchId string) *model.AppError
- func (s *TimerLayerBranchStore) RemoveAllMembersByBranch(branchId string) *model.AppError
- func (s *TimerLayerBranchStore) RemoveAllMembersByUser(userId string) *model.AppError
- func (s *TimerLayerBranchStore) RemoveMember(branchId string, userId string) *model.AppError
- func (s *TimerLayerBranchStore) ResetAllBranchSchemes() *model.AppError
- func (s *TimerLayerBranchStore) Save(branch *model.Branch) (*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) Update(branch *model.Branch) (*model.Branch, *model.AppError)
- func (s *TimerLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError
- func (s *TimerLayerBranchStore) UpdateMember(member *model.BranchMember) (*model.BranchMember, *model.AppError)
- func (s *TimerLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError
- func (s *TimerLayerBranchStore) UserBelongsToBranches(userId string, branchIds []string) (bool, *model.AppError)
- type TimerLayerClassStore
- func (s *TimerLayerClassStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerClassStore) ClearCaches()
- func (s *TimerLayerClassStore) CreateDirectClass(userId *model.User, otherUserId *model.User) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) Delete(classId string, time int64) *model.AppError
- func (s *TimerLayerClassStore) Get(id string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetAll(branchId string) ([]*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetAllClassMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
- func (s *TimerLayerClassStore) GetAllClassMembersNotifyPropsForClass(classId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
- func (s *TimerLayerClassStore) GetAllClasses(page int, perPage int, opts ClassSearchOpts) (*model.ClassListWithBranchData, *model.AppError)
- func (s *TimerLayerClassStore) GetAllClassesCount(opts ClassSearchOpts) (int64, *model.AppError)
- func (s *TimerLayerClassStore) GetAllClassesForExportAfter(limit int, afterId string) ([]*model.ClassForExport, *model.AppError)
- func (s *TimerLayerClassStore) GetBranchClasses(branchId string) (*model.ClassList, *model.AppError)
- func (s *TimerLayerClassStore) GetByName(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetByNameIncludeDeleted(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetByNames(branch_id string, names []string, allowFromCache bool) ([]*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)
- func (s *TimerLayerClassStore) GetClassMembersTimezones(classId string) ([]model.StringMap, *model.AppError)
- func (s *TimerLayerClassStore) GetClasses(branchId string, userId string, includeDeleted bool) (*model.ClassList, *model.AppError)
- func (s *TimerLayerClassStore) GetClassesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetClassesByIds(classIds []string, includeDeleted bool) ([]*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetClassesByScheme(schemeId string, offset int, limit int) (model.ClassList, *model.AppError)
- func (s *TimerLayerClassStore) GetDeleted(branch_id string, offset int, limit int, userId string) (*model.ClassList, *model.AppError)
- func (s *TimerLayerClassStore) GetDeletedByName(branch_id string, name string) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetFromMaster(id string) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)
- func (s *TimerLayerClassStore) GetMemberCount(classId string, allowFromCache bool) (int64, *model.AppError)
- func (s *TimerLayerClassStore) GetMemberCountFromCache(classId string) int64
- func (s *TimerLayerClassStore) GetMembers(classId string, offset int, limit int) (*model.ClassMembers, *model.AppError)
- func (s *TimerLayerClassStore) GetMembersByIds(classId string, userIds []string) (*model.ClassMembers, *model.AppError)
- func (s *TimerLayerClassStore) GetMembersForUser(branchId string, userId string) (*model.ClassMembers, *model.AppError)
- func (s *TimerLayerClassStore) GetMembersForUserWithPagination(branchId string, userId string, page int, perPage int) (*model.ClassMembers, *model.AppError)
- func (s *TimerLayerClassStore) GetMoreClasses(branchId string, userId string, offset int, limit int) (*model.ClassList, *model.AppError)
- func (s *TimerLayerClassStore) InvalidateAllClassMembersForUser(userId string)
- func (s *TimerLayerClassStore) InvalidateCacheForClassMembersNotifyProps(classId string)
- func (s *TimerLayerClassStore) InvalidateClass(id string)
- func (s *TimerLayerClassStore) InvalidateClassByName(branchId string, name string)
- func (s *TimerLayerClassStore) InvalidateMemberCount(classId string)
- func (s *TimerLayerClassStore) IsUserInClassUseCache(userId string, classId string) bool
- func (s *TimerLayerClassStore) MigrateClassMembers(fromClassId string, fromUserId string) (map[string]string, *model.AppError)
- func (s *TimerLayerClassStore) PermanentDelete(classId string) *model.AppError
- func (s *TimerLayerClassStore) PermanentDeleteByBranch(branchId string) *model.AppError
- func (s *TimerLayerClassStore) PermanentDeleteMembersByClass(classId string) *model.AppError
- func (s *TimerLayerClassStore) PermanentDeleteMembersByUser(userId string) *model.AppError
- func (s *TimerLayerClassStore) RemoveAllDeactivatedMembers(classId string) *model.AppError
- func (s *TimerLayerClassStore) RemoveMember(classId string, userId string) *model.AppError
- func (s *TimerLayerClassStore) ResetAllClassSchemes() *model.AppError
- func (s *TimerLayerClassStore) Restore(classId string, time int64) *model.AppError
- func (s *TimerLayerClassStore) Save(class *model.Class, maxClassesPerBranch int64) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) SaveDirectClass(class *model.Class, member1 *model.ClassMember, member2 *model.ClassMember) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) SaveMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
- func (s *TimerLayerClassStore) SetDeleteAt(classId string, deleteAt int64, updateAt int64) *model.AppError
- func (s *TimerLayerClassStore) Update(class *model.Class) (*model.Class, *model.AppError)
- func (s *TimerLayerClassStore) UpdateMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
- func (s *TimerLayerClassStore) UpdateMembersRole(classID string, userIDs []string) *model.AppError
- func (s *TimerLayerClassStore) UserBelongsToClasses(userId string, classIds []string) (bool, *model.AppError)
- type TimerLayerClusterDiscoveryStore
- func (s *TimerLayerClusterDiscoveryStore) Cleanup() *model.AppError
- func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
- func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
- func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
- type TimerLayerCommandStore
- func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerCommandStore) Delete(commandId string, time int64) *model.AppError
- func (s *TimerLayerCommandStore) Get(id string) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
- func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerCommandStore) Save(webhook *model.Command) (*model.Command, *model.AppError)
- func (s *TimerLayerCommandStore) Update(hook *model.Command) (*model.Command, *model.AppError)
- type TimerLayerCommandWebhookStore
- func (s *TimerLayerCommandWebhookStore) Cleanup()
- func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
- func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError
- type TimerLayerComplianceStore
- func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
- func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
- func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
- func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
- type TimerLayerEmojiStore
- func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError
- func (s *TimerLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
- func (s *TimerLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
- type TimerLayerFileInfoStore
- func (s *TimerLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError
- func (s *TimerLayerFileInfoStore) ClearCaches()
- func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
- func (s *TimerLayerFileInfoStore) Get(id string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
- func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
- func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
- func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
- func (s *TimerLayerFileInfoStore) Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
- type TimerLayerJobStore
- func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
- func (s *TimerLayerJobStore) Get(id string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
- func (s *TimerLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)
- func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
- type TimerLayerLicenseStore
- type TimerLayerLinkMetadataStore
- type TimerLayerOAuthStore
- func (s *TimerLayerOAuthStore) DeleteApp(id string) *model.AppError
- func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetApp(id string) (*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)
- func (s *TimerLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAccessData(token string) *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAllAccessData() *model.AppError
- func (s *TimerLayerOAuthStore) RemoveAuthData(code string) *model.AppError
- func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- func (s *TimerLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
- func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
- func (s *TimerLayerOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
- type TimerLayerPreferenceStore
- func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
- func (s *TimerLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
- func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
- func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
- func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
- func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
- type TimerLayerReactionStore
- func (s *TimerLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
- func (s *TimerLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
- func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
- func (s *TimerLayerReactionStore) Save(reaction *model.Reaction) (*model.Reaction, *model.AppError)
- type TimerLayerRoleStore
- func (s *TimerLayerRoleStore) AllClassSchemeRoles() ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) ClassHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
- func (s *TimerLayerRoleStore) ClassRolesUnderBranchRole(roleName string) ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)
- func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
- func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, *model.AppError)
- type TimerLayerSchemeStore
- func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, *model.AppError)
- func (s *TimerLayerSchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, ...) (int64, *model.AppError)
- func (s *TimerLayerSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)
- func (s *TimerLayerSchemeStore) PermanentDeleteAll() *model.AppError
- func (s *TimerLayerSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, *model.AppError)
- type TimerLayerSessionStore
- func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
- func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
- func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
- func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
- func (s *TimerLayerSessionStore) RemoveAllSessions() *model.AppError
- func (s *TimerLayerSessionStore) Save(session *model.Session) (*model.Session, *model.AppError)
- func (s *TimerLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
- func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
- func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
- func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)
- type TimerLayerStatusStore
- func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)
- func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerStatusStore) ResetAll() *model.AppError
- func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
- func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
- type TimerLayerSystemStore
- func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
- func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)
- func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
- func (s *TimerLayerSystemStore) Update(system *model.System) *model.AppError
- type TimerLayerTermsOfServiceStore
- func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
- func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
- type TimerLayerTokenStore
- func (s *TimerLayerTokenStore) Cleanup()
- func (s *TimerLayerTokenStore) Delete(token string) *model.AppError
- func (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)
- func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
- func (s *TimerLayerTokenStore) Save(recovery *model.Token) *model.AppError
- type TimerLayerUserAccessTokenStore
- func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
- func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
- type TimerLayerUserStore
- func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
- func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
- func (s *TimerLayerUserStore) ClearCaches()
- func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
- func (s *TimerLayerUserStore) Get(id string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllProfilesInClass(classId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
- func (s *TimerLayerUserStore) GetEtagForProfiles(branchId string) string
- func (s *TimerLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetNewUsersForBranch(branchId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInClass(classId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesInClassByStatus(classId string, offset int, limit int) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesNotInClass(branchId string, classId string, groupConstrained bool, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetProfilesWithoutBranch(options *model.UserGetOptions) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetRecentlyActiveUsersForBranch(branchId string, offset int, limit int, ...) ([]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
- func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
- func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
- func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInClassCache(classId string)
- func (s *TimerLayerUserStore) InvalidateProfilesInClassCacheByUser(userId string)
- func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
- func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)
- func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
- func (s *TimerLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
- func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
- func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
- func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
- func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
- func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
- func (s *TimerLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)
- type TimerLayerUserTermsOfServiceStore
- func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
- func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
- func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
- type TimerLayerWebhookStore
- func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
- func (s *TimerLayerWebhookStore) ClearCaches()
- func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
- func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
- func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
- func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
- func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
- type TokenStore
- type UserAccessTokenStore
- type UserGetByIdsOpts
- type UserStore
- type UserTermsOfServiceStore
- type WebhookStore
Constants ¶
View Source
const ( MISSING_CLASS_ERROR = "store.sql_class.get_by_name.missing.app_error" MISSING_CLASS_MEMBER_ERROR = "store.sql_class.get_member.missing.app_error" CLASS_EXISTS_ERROR = "store.sql_class.save_channel.exists.app_error" MISSING_CHANNEL_ERROR = "store.sql_channel.get_by_name.missing.app_error" MISSING_CHANNEL_MEMBER_ERROR = "store.sql_channel.get_member.missing.app_error" CHANNEL_EXISTS_ERROR = "store.sql_channel.save_channel.exists.app_error" MISSING_ACCOUNT_ERROR = "store.sql_user.missing_account.const" MISSING_AUTH_ACCOUNT_ERROR = "store.sql_user.get_by_auth.missing_account.app_error" USER_SEARCH_OPTION_NAMES_ONLY = "names_only" USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME = "names_only_no_full_name" USER_SEARCH_OPTION_ALL_NO_FULL_NAME = "all_no_full_name" USER_SEARCH_OPTION_ALLOW_INACTIVE = "allow_inactive" FEATURE_TOGGLE_PREFIX = "feature_enabled_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditStore ¶
type BranchStore ¶
type BranchStore interface { Save(branch *model.Branch) (*model.Branch, *model.AppError) Update(branch *model.Branch) (*model.Branch, *model.AppError) Get(id string) (*model.Branch, *model.AppError) GetByName(name string) (*model.Branch, *model.AppError) GetByNames(name []string) ([]*model.Branch, *model.AppError) GetAll() ([]*model.Branch, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Branch, *model.AppError) GetBranchesByUserId(userId string) ([]*model.Branch, *model.AppError) GetBySchoolId(schoolId string) (*model.Branch, *model.AppError) PermanentDelete(branchId string) *model.AppError AnalyticsBranchCount(includeDeleted bool) (int64, *model.AppError) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError) UpdateMember(member *model.BranchMember) (*model.BranchMember, *model.AppError) GetMember(branchId string, userId string) (*model.BranchMember, *model.AppError) GetMembers(branchId string, offset int, limit int, branchMembersGetOptions *model.BranchMembersGetOptions) ([]*model.BranchMember, *model.AppError) GetMembersByIds(branchId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.BranchMember, *model.AppError) GetTotalMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError) GetBranchesForUser(userId string) ([]*model.BranchMember, *model.AppError) GetBranchesForUserWithPagination(userId string, page, perPage int) ([]*model.BranchMember, *model.AppError) RemoveMember(branchId string, userId string) *model.AppError RemoveAllMembersByBranch(branchId string) *model.AppError RemoveAllMembersByUser(userId string) *model.AppError UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError GetBranchesByScheme(schemeId string, offset int, limit int) ([]*model.Branch, *model.AppError) MigrateBranchMembers(fromBranchId string, fromUserId string) (map[string]string, *model.AppError) ResetAllBranchSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError AnalyticsGetBranchCountForScheme(schemeId string) (int64, *model.AppError) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError) UserBelongsToBranches(userId string, branchIds []string) (bool, *model.AppError) GetUserBranchIds(userId string, allowFromCache bool) ([]string, *model.AppError) InvalidateAllBranchIdsForUser(userId string) ClearCaches() // UpdateMembersRole sets all of the given branch members to admins and all of the other members of the branch to // non-admin members. UpdateMembersRole(branchID string, userIDs []string) *model.AppError }
type ClassSearchOpts ¶
type ClassSearchOpts struct { IncludeDeleted bool ExcludeClassNames []string Page *int PerPage *int }
ClassSearchOpts contains options for searching channels.
NotAssociatedToGroup will exclude channels that have associated, active GroupChannels records. IncludeDeleted will include channel records where DeleteAt != 0. ExcludeChannelNames will exclude channels from the results by name. Paginate whether to paginate the results. Page page requested, if results are paginated. PerPage number of results per page, if paginated.
func (*ClassSearchOpts) IsPaginated ¶
func (c *ClassSearchOpts) IsPaginated() bool
type ClassStore ¶
type ClassStore interface { Save(class *model.Class, maxClassesPerBranch int64) (*model.Class, *model.AppError) CreateDirectClass(userId *model.User, otherUserId *model.User) (*model.Class, *model.AppError) SaveDirectClass(class *model.Class, member1 *model.ClassMember, member2 *model.ClassMember) (*model.Class, *model.AppError) Update(class *model.Class) (*model.Class, *model.AppError) Get(id string, allowFromCache bool) (*model.Class, *model.AppError) InvalidateClass(id string) InvalidateClassByName(branchId, name string) GetFromMaster(id string) (*model.Class, *model.AppError) Delete(classId string, time int64) *model.AppError Restore(classId string, time int64) *model.AppError SetDeleteAt(classId string, deleteAt int64, updateAt int64) *model.AppError PermanentDelete(classId string) *model.AppError PermanentDeleteByBranch(branchId string) *model.AppError GetByName(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError) GetByNames(branch_id string, names []string, allowFromCache bool) ([]*model.Class, *model.AppError) GetByNameIncludeDeleted(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError) GetDeletedByName(branch_id string, name string) (*model.Class, *model.AppError) GetDeleted(branch_id string, offset int, limit int, userId string) (*model.ClassList, *model.AppError) GetClasses(branchId string, userId string, includeDeleted bool) (*model.ClassList, *model.AppError) GetAllClasses(page, perPage int, opts ClassSearchOpts) (*model.ClassListWithBranchData, *model.AppError) GetAllClassesCount(opts ClassSearchOpts) (int64, *model.AppError) GetMoreClasses(branchId string, userId string, offset int, limit int) (*model.ClassList, *model.AppError) GetBranchClasses(branchId string) (*model.ClassList, *model.AppError) GetAll(branchId string) ([]*model.Class, *model.AppError) GetClassesByIds(classIds []string, includeDeleted bool) ([]*model.Class, *model.AppError) SaveMember(member *model.ClassMember) (*model.ClassMember, *model.AppError) UpdateMember(member *model.ClassMember) (*model.ClassMember, *model.AppError) GetMembers(classId string, offset, limit int) (*model.ClassMembers, *model.AppError) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError) GetClassMembersTimezones(classId string) ([]model.StringMap, *model.AppError) GetAllClassMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError) InvalidateAllClassMembersForUser(userId string) IsUserInClassUseCache(userId string, classId string) bool GetAllClassMembersNotifyPropsForClass(classId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError) InvalidateCacheForClassMembersNotifyProps(classId string) InvalidateMemberCount(classId string) GetMemberCountFromCache(classId string) int64 GetMemberCount(classId string, allowFromCache bool) (int64, *model.AppError) RemoveMember(classId string, userId string) *model.AppError PermanentDeleteMembersByUser(userId string) *model.AppError PermanentDeleteMembersByClass(classId string) *model.AppError GetMembersForUser(branchId string, userId string) (*model.ClassMembers, *model.AppError) GetMembersForUserWithPagination(branchId, userId string, page, perPage int) (*model.ClassMembers, *model.AppError) GetMembersByIds(classId string, userIds []string) (*model.ClassMembers, *model.AppError) ClearCaches() GetClassesByScheme(schemeId string, offset int, limit int) (model.ClassList, *model.AppError) MigrateClassMembers(fromClassId string, fromUserId string) (map[string]string, *model.AppError) ResetAllClassSchemes() *model.AppError ClearAllCustomRoleAssignments() *model.AppError GetAllClassesForExportAfter(limit int, afterId string) ([]*model.ClassForExport, *model.AppError) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError) RemoveAllDeactivatedMembers(classId string) *model.AppError GetClassesBatchForIndexing(startTime, endTime int64, limit int) ([]*model.Class, *model.AppError) UserBelongsToClasses(userId string, classIds []string) (bool, *model.AppError) // UpdateMembersRole sets all of the given branch members to admins and all of the other members of the branch to // non-admin members. UpdateMembersRole(classID string, userIDs []string) *model.AppError }
type ClusterDiscoveryStore ¶
type ClusterDiscoveryStore interface { Save(discovery *model.ClusterDiscovery) *model.AppError Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError) GetAll(discoveryType, clusterName string) ([]*model.ClusterDiscovery, *model.AppError) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError Cleanup() *model.AppError }
type CommandStore ¶
type CommandStore interface { Save(webhook *model.Command) (*model.Command, *model.AppError) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError) Get(id string) (*model.Command, *model.AppError) GetByTeam(teamId string) ([]*model.Command, *model.AppError) Delete(commandId string, time int64) *model.AppError PermanentDeleteByTeam(teamId string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError Update(hook *model.Command) (*model.Command, *model.AppError) AnalyticsCommandCount(teamId string) (int64, *model.AppError) }
type CommandWebhookStore ¶
type CommandWebhookStore interface { Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError) Get(id string) (*model.CommandWebhook, *model.AppError) TryUse(id string, limit int) *model.AppError Cleanup() }
type ComplianceStore ¶
type ComplianceStore interface { Save(compliance *model.Compliance) (*model.Compliance, *model.AppError) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError) Get(id string) (*model.Compliance, *model.AppError) GetAll(offset, limit int) (model.Compliances, *model.AppError) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError) }
type EmojiStore ¶
type EmojiStore interface { Save(emoji *model.Emoji) (*model.Emoji, *model.AppError) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError) GetList(offset, limit int, sort string) ([]*model.Emoji, *model.AppError) Delete(emoji *model.Emoji, time int64) *model.AppError Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError) }
type FileInfoStore ¶
type FileInfoStore interface { Save(info *model.FileInfo) (*model.FileInfo, *model.AppError) Get(id string) (*model.FileInfo, *model.AppError) GetByPath(path string) (*model.FileInfo, *model.AppError) GetForPost(postId string, readFromMaster, includeDeleted, allowFromCache bool) ([]*model.FileInfo, *model.AppError) GetForUser(userId string) ([]*model.FileInfo, *model.AppError) GetWithOptions(page, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError) InvalidateFileInfosForPostCache(postId string, deleted bool) AttachToPost(fileId string, postId string, creatorId string) *model.AppError DeleteForPost(postId string) (string, *model.AppError) PermanentDelete(fileId string) *model.AppError PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) PermanentDeleteByUser(userId string) (int64, *model.AppError) ClearCaches() }
type IntegrityCheckResult ¶
type IntegrityCheckResult struct { Data interface{} Err error }
type JobStore ¶
type JobStore interface { Save(job *model.Job) (*model.Job, *model.AppError) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError) UpdateStatus(id string, status string) (*model.Job, *model.AppError) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError) Get(id string) (*model.Job, *model.AppError) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError) GetAllByType(jobType string) ([]*model.Job, *model.AppError) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError) GetAllByStatus(status string) ([]*model.Job, *model.AppError) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError) Delete(id string) (string, *model.AppError) }
type LicenseStore ¶
type LicenseStore interface { Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError) Get(id string) (*model.LicenseRecord, *model.AppError) }
type LinkMetadataStore ¶
type LinkMetadataStore interface { Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError) }
type OAuthStore ¶
type OAuthStore interface { SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError) GetApp(id string) (*model.OAuthApp, *model.AppError) GetAppByUser(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError) GetApps(offset, limit int) ([]*model.OAuthApp, *model.AppError) GetAuthorizedApps(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError) DeleteApp(id string) *model.AppError SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError) GetAuthData(code string) (*model.AuthData, *model.AppError) RemoveAuthData(code string) *model.AppError PermanentDeleteAuthDataByUser(userId string) *model.AppError SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError) GetAccessData(token string) (*model.AccessData, *model.AppError) GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, *model.AppError) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError) GetPreviousAccessData(userId, clientId string) (*model.AccessData, *model.AppError) RemoveAccessData(token string) *model.AppError RemoveAllAccessData() *model.AppError }
type OpenTracingLayer ¶
type OpenTracingLayer struct { Store AuditStore AuditStore BranchStore BranchStore ClassStore ClassStore ClusterDiscoveryStore ClusterDiscoveryStore CommandStore CommandStore CommandWebhookStore CommandWebhookStore ComplianceStore ComplianceStore EmojiStore EmojiStore FileInfoStore FileInfoStore JobStore JobStore LicenseStore LicenseStore LinkMetadataStore LinkMetadataStore OAuthStore OAuthStore PreferenceStore PreferenceStore ReactionStore ReactionStore RoleStore RoleStore SchemeStore SchemeStore SessionStore SessionStore StatusStore StatusStore SystemStore SystemStore TermsOfServiceStore TermsOfServiceStore TokenStore TokenStore UserStore UserStore UserAccessTokenStore UserAccessTokenStore UserTermsOfServiceStore UserTermsOfServiceStore WebhookStore WebhookStore }
func NewOpenTracingLayer ¶
func NewOpenTracingLayer(childStore Store, ctx context.Context) *OpenTracingLayer
func (*OpenTracingLayer) Audit ¶
func (s *OpenTracingLayer) Audit() AuditStore
func (*OpenTracingLayer) Branch ¶
func (s *OpenTracingLayer) Branch() BranchStore
func (*OpenTracingLayer) Class ¶
func (s *OpenTracingLayer) Class() ClassStore
func (*OpenTracingLayer) Close ¶
func (s *OpenTracingLayer) Close()
func (*OpenTracingLayer) ClusterDiscovery ¶
func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore
func (*OpenTracingLayer) Command ¶
func (s *OpenTracingLayer) Command() CommandStore
func (*OpenTracingLayer) CommandWebhook ¶
func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore
func (*OpenTracingLayer) Compliance ¶
func (s *OpenTracingLayer) Compliance() ComplianceStore
func (*OpenTracingLayer) DropAllTables ¶
func (s *OpenTracingLayer) DropAllTables()
func (*OpenTracingLayer) Emoji ¶
func (s *OpenTracingLayer) Emoji() EmojiStore
func (*OpenTracingLayer) FileInfo ¶
func (s *OpenTracingLayer) FileInfo() FileInfoStore
func (*OpenTracingLayer) GetCurrentSchemaVersion ¶
func (s *OpenTracingLayer) GetCurrentSchemaVersion() string
func (*OpenTracingLayer) Job ¶
func (s *OpenTracingLayer) Job() JobStore
func (*OpenTracingLayer) License ¶
func (s *OpenTracingLayer) License() LicenseStore
func (*OpenTracingLayer) LinkMetadata ¶
func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore
func (*OpenTracingLayer) LockToMaster ¶
func (s *OpenTracingLayer) LockToMaster()
func (*OpenTracingLayer) MarkSystemRanUnitTests ¶
func (s *OpenTracingLayer) MarkSystemRanUnitTests()
func (*OpenTracingLayer) OAuth ¶
func (s *OpenTracingLayer) OAuth() OAuthStore
func (*OpenTracingLayer) Preference ¶
func (s *OpenTracingLayer) Preference() PreferenceStore
func (*OpenTracingLayer) Reaction ¶
func (s *OpenTracingLayer) Reaction() ReactionStore
func (*OpenTracingLayer) Role ¶
func (s *OpenTracingLayer) Role() RoleStore
func (*OpenTracingLayer) Scheme ¶
func (s *OpenTracingLayer) Scheme() SchemeStore
func (*OpenTracingLayer) Session ¶
func (s *OpenTracingLayer) Session() SessionStore
func (*OpenTracingLayer) SetContext ¶
func (s *OpenTracingLayer) SetContext(context context.Context)
func (*OpenTracingLayer) Status ¶
func (s *OpenTracingLayer) Status() StatusStore
func (*OpenTracingLayer) System ¶
func (s *OpenTracingLayer) System() SystemStore
func (*OpenTracingLayer) TermsOfService ¶
func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore
func (*OpenTracingLayer) Token ¶
func (s *OpenTracingLayer) Token() TokenStore
func (*OpenTracingLayer) TotalMasterDbConnections ¶
func (s *OpenTracingLayer) TotalMasterDbConnections() int
func (*OpenTracingLayer) TotalReadDbConnections ¶
func (s *OpenTracingLayer) TotalReadDbConnections() int
func (*OpenTracingLayer) TotalSearchDbConnections ¶
func (s *OpenTracingLayer) TotalSearchDbConnections() int
func (*OpenTracingLayer) UnlockFromMaster ¶
func (s *OpenTracingLayer) UnlockFromMaster()
func (*OpenTracingLayer) User ¶
func (s *OpenTracingLayer) User() UserStore
func (*OpenTracingLayer) UserAccessToken ¶
func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore
func (*OpenTracingLayer) UserTermsOfService ¶
func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore
func (*OpenTracingLayer) Webhook ¶
func (s *OpenTracingLayer) Webhook() WebhookStore
type OpenTracingLayerAuditStore ¶
type OpenTracingLayerAuditStore struct { AuditStore Root *OpenTracingLayer }
func (*OpenTracingLayerAuditStore) PermanentDeleteByUser ¶
func (s *OpenTracingLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError
type OpenTracingLayerBranchStore ¶
type OpenTracingLayerBranchStore struct { BranchStore Root *OpenTracingLayer }
func (*OpenTracingLayerBranchStore) AnalyticsBranchCount ¶
func (s *OpenTracingLayerBranchStore) AnalyticsBranchCount(includeDeleted bool) (int64, *model.AppError)
func (*OpenTracingLayerBranchStore) AnalyticsGetBranchCountForScheme ¶
func (s *OpenTracingLayerBranchStore) AnalyticsGetBranchCountForScheme(schemeId string) (int64, *model.AppError)
func (*OpenTracingLayerBranchStore) ClearAllCustomRoleAssignments ¶
func (s *OpenTracingLayerBranchStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerBranchStore) ClearCaches ¶
func (s *OpenTracingLayerBranchStore) ClearCaches()
func (*OpenTracingLayerBranchStore) GetActiveMemberCount ¶
func (s *OpenTracingLayerBranchStore) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*OpenTracingLayerBranchStore) GetAll ¶
func (s *OpenTracingLayerBranchStore) GetAll() ([]*model.Branch, *model.AppError)
func (*OpenTracingLayerBranchStore) GetAllForExportAfter ¶
func (s *OpenTracingLayerBranchStore) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError)
func (*OpenTracingLayerBranchStore) GetAllPage ¶
func (*OpenTracingLayerBranchStore) GetBranchMembersForExport ¶
func (s *OpenTracingLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)
func (*OpenTracingLayerBranchStore) GetBranchesByScheme ¶
func (*OpenTracingLayerBranchStore) GetBranchesByUserId ¶
func (*OpenTracingLayerBranchStore) GetBranchesForUser ¶
func (s *OpenTracingLayerBranchStore) GetBranchesForUser(userId string) ([]*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) GetBranchesForUserWithPagination ¶
func (s *OpenTracingLayerBranchStore) GetBranchesForUserWithPagination(userId string, page int, perPage int) ([]*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) GetByNames ¶
func (*OpenTracingLayerBranchStore) GetBySchoolId ¶
func (*OpenTracingLayerBranchStore) GetMember ¶
func (s *OpenTracingLayerBranchStore) GetMember(branchId string, userId string) (*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) GetMembers ¶
func (s *OpenTracingLayerBranchStore) GetMembers(branchId string, offset int, limit int, branchMembersGetOptions *model.BranchMembersGetOptions) ([]*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) GetMembersByIds ¶
func (s *OpenTracingLayerBranchStore) GetMembersByIds(branchId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) GetTotalMemberCount ¶
func (s *OpenTracingLayerBranchStore) GetTotalMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*OpenTracingLayerBranchStore) GetUserBranchIds ¶
func (*OpenTracingLayerBranchStore) InvalidateAllBranchIdsForUser ¶
func (s *OpenTracingLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)
func (*OpenTracingLayerBranchStore) MigrateBranchMembers ¶
func (*OpenTracingLayerBranchStore) PermanentDelete ¶
func (s *OpenTracingLayerBranchStore) PermanentDelete(branchId string) *model.AppError
func (*OpenTracingLayerBranchStore) RemoveAllMembersByBranch ¶
func (s *OpenTracingLayerBranchStore) RemoveAllMembersByBranch(branchId string) *model.AppError
func (*OpenTracingLayerBranchStore) RemoveAllMembersByUser ¶
func (s *OpenTracingLayerBranchStore) RemoveAllMembersByUser(userId string) *model.AppError
func (*OpenTracingLayerBranchStore) RemoveMember ¶
func (s *OpenTracingLayerBranchStore) RemoveMember(branchId string, userId string) *model.AppError
func (*OpenTracingLayerBranchStore) ResetAllBranchSchemes ¶
func (s *OpenTracingLayerBranchStore) ResetAllBranchSchemes() *model.AppError
func (*OpenTracingLayerBranchStore) SaveMember ¶
func (s *OpenTracingLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) UpdateLastBranchIconUpdate ¶
func (s *OpenTracingLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError
func (*OpenTracingLayerBranchStore) UpdateMember ¶
func (s *OpenTracingLayerBranchStore) UpdateMember(member *model.BranchMember) (*model.BranchMember, *model.AppError)
func (*OpenTracingLayerBranchStore) UpdateMembersRole ¶
func (s *OpenTracingLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError
func (*OpenTracingLayerBranchStore) UserBelongsToBranches ¶
type OpenTracingLayerClassStore ¶
type OpenTracingLayerClassStore struct { ClassStore Root *OpenTracingLayer }
func (*OpenTracingLayerClassStore) ClearAllCustomRoleAssignments ¶
func (s *OpenTracingLayerClassStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerClassStore) ClearCaches ¶
func (s *OpenTracingLayerClassStore) ClearCaches()
func (*OpenTracingLayerClassStore) CreateDirectClass ¶
func (*OpenTracingLayerClassStore) Delete ¶
func (s *OpenTracingLayerClassStore) Delete(classId string, time int64) *model.AppError
func (*OpenTracingLayerClassStore) GetAllClassMembersForUser ¶
func (*OpenTracingLayerClassStore) GetAllClassMembersNotifyPropsForClass ¶
func (*OpenTracingLayerClassStore) GetAllClasses ¶
func (s *OpenTracingLayerClassStore) GetAllClasses(page int, perPage int, opts ClassSearchOpts) (*model.ClassListWithBranchData, *model.AppError)
func (*OpenTracingLayerClassStore) GetAllClassesCount ¶
func (s *OpenTracingLayerClassStore) GetAllClassesCount(opts ClassSearchOpts) (int64, *model.AppError)
func (*OpenTracingLayerClassStore) GetAllClassesForExportAfter ¶
func (s *OpenTracingLayerClassStore) GetAllClassesForExportAfter(limit int, afterId string) ([]*model.ClassForExport, *model.AppError)
func (*OpenTracingLayerClassStore) GetBranchClasses ¶
func (*OpenTracingLayerClassStore) GetByNameIncludeDeleted ¶
func (*OpenTracingLayerClassStore) GetByNames ¶
func (*OpenTracingLayerClassStore) GetClassMembersForExport ¶
func (s *OpenTracingLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)
func (*OpenTracingLayerClassStore) GetClassMembersTimezones ¶
func (*OpenTracingLayerClassStore) GetClasses ¶
func (*OpenTracingLayerClassStore) GetClassesBatchForIndexing ¶
func (*OpenTracingLayerClassStore) GetClassesByIds ¶
func (*OpenTracingLayerClassStore) GetClassesByScheme ¶
func (*OpenTracingLayerClassStore) GetDeleted ¶
func (*OpenTracingLayerClassStore) GetDeletedByName ¶
func (*OpenTracingLayerClassStore) GetFromMaster ¶
func (*OpenTracingLayerClassStore) GetMember ¶
func (s *OpenTracingLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)
func (*OpenTracingLayerClassStore) GetMemberCount ¶
func (*OpenTracingLayerClassStore) GetMemberCountFromCache ¶
func (s *OpenTracingLayerClassStore) GetMemberCountFromCache(classId string) int64
func (*OpenTracingLayerClassStore) GetMembers ¶
func (s *OpenTracingLayerClassStore) GetMembers(classId string, offset int, limit int) (*model.ClassMembers, *model.AppError)
func (*OpenTracingLayerClassStore) GetMembersByIds ¶
func (s *OpenTracingLayerClassStore) GetMembersByIds(classId string, userIds []string) (*model.ClassMembers, *model.AppError)
func (*OpenTracingLayerClassStore) GetMembersForUser ¶
func (s *OpenTracingLayerClassStore) GetMembersForUser(branchId string, userId string) (*model.ClassMembers, *model.AppError)
func (*OpenTracingLayerClassStore) GetMembersForUserWithPagination ¶
func (s *OpenTracingLayerClassStore) GetMembersForUserWithPagination(branchId string, userId string, page int, perPage int) (*model.ClassMembers, *model.AppError)
func (*OpenTracingLayerClassStore) GetMoreClasses ¶
func (*OpenTracingLayerClassStore) InvalidateAllClassMembersForUser ¶
func (s *OpenTracingLayerClassStore) InvalidateAllClassMembersForUser(userId string)
func (*OpenTracingLayerClassStore) InvalidateCacheForClassMembersNotifyProps ¶
func (s *OpenTracingLayerClassStore) InvalidateCacheForClassMembersNotifyProps(classId string)
func (*OpenTracingLayerClassStore) InvalidateClass ¶
func (s *OpenTracingLayerClassStore) InvalidateClass(id string)
func (*OpenTracingLayerClassStore) InvalidateClassByName ¶
func (s *OpenTracingLayerClassStore) InvalidateClassByName(branchId string, name string)
func (*OpenTracingLayerClassStore) InvalidateMemberCount ¶
func (s *OpenTracingLayerClassStore) InvalidateMemberCount(classId string)
func (*OpenTracingLayerClassStore) IsUserInClassUseCache ¶
func (s *OpenTracingLayerClassStore) IsUserInClassUseCache(userId string, classId string) bool
func (*OpenTracingLayerClassStore) MigrateClassMembers ¶
func (*OpenTracingLayerClassStore) PermanentDelete ¶
func (s *OpenTracingLayerClassStore) PermanentDelete(classId string) *model.AppError
func (*OpenTracingLayerClassStore) PermanentDeleteByBranch ¶
func (s *OpenTracingLayerClassStore) PermanentDeleteByBranch(branchId string) *model.AppError
func (*OpenTracingLayerClassStore) PermanentDeleteMembersByClass ¶
func (s *OpenTracingLayerClassStore) PermanentDeleteMembersByClass(classId string) *model.AppError
func (*OpenTracingLayerClassStore) PermanentDeleteMembersByUser ¶
func (s *OpenTracingLayerClassStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*OpenTracingLayerClassStore) RemoveAllDeactivatedMembers ¶
func (s *OpenTracingLayerClassStore) RemoveAllDeactivatedMembers(classId string) *model.AppError
func (*OpenTracingLayerClassStore) RemoveMember ¶
func (s *OpenTracingLayerClassStore) RemoveMember(classId string, userId string) *model.AppError
func (*OpenTracingLayerClassStore) ResetAllClassSchemes ¶
func (s *OpenTracingLayerClassStore) ResetAllClassSchemes() *model.AppError
func (*OpenTracingLayerClassStore) Restore ¶
func (s *OpenTracingLayerClassStore) Restore(classId string, time int64) *model.AppError
func (*OpenTracingLayerClassStore) SaveDirectClass ¶
func (s *OpenTracingLayerClassStore) SaveDirectClass(class *model.Class, member1 *model.ClassMember, member2 *model.ClassMember) (*model.Class, *model.AppError)
func (*OpenTracingLayerClassStore) SaveMember ¶
func (s *OpenTracingLayerClassStore) SaveMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
func (*OpenTracingLayerClassStore) SetDeleteAt ¶
func (*OpenTracingLayerClassStore) UpdateMember ¶
func (s *OpenTracingLayerClassStore) UpdateMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
func (*OpenTracingLayerClassStore) UpdateMembersRole ¶
func (s *OpenTracingLayerClassStore) UpdateMembersRole(classID string, userIDs []string) *model.AppError
func (*OpenTracingLayerClassStore) UserBelongsToClasses ¶
type OpenTracingLayerClusterDiscoveryStore ¶
type OpenTracingLayerClusterDiscoveryStore struct { ClusterDiscoveryStore Root *OpenTracingLayer }
func (*OpenTracingLayerClusterDiscoveryStore) Cleanup ¶
func (s *OpenTracingLayerClusterDiscoveryStore) Cleanup() *model.AppError
func (*OpenTracingLayerClusterDiscoveryStore) Delete ¶
func (s *OpenTracingLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*OpenTracingLayerClusterDiscoveryStore) Exists ¶
func (s *OpenTracingLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*OpenTracingLayerClusterDiscoveryStore) GetAll ¶
func (s *OpenTracingLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
func (*OpenTracingLayerClusterDiscoveryStore) Save ¶
func (s *OpenTracingLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
func (*OpenTracingLayerClusterDiscoveryStore) SetLastPingAt ¶
func (s *OpenTracingLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
type OpenTracingLayerCommandStore ¶
type OpenTracingLayerCommandStore struct { CommandStore Root *OpenTracingLayer }
func (*OpenTracingLayerCommandStore) AnalyticsCommandCount ¶
func (s *OpenTracingLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
func (*OpenTracingLayerCommandStore) Delete ¶
func (s *OpenTracingLayerCommandStore) Delete(commandId string, time int64) *model.AppError
func (*OpenTracingLayerCommandStore) GetByTrigger ¶
func (*OpenTracingLayerCommandStore) PermanentDeleteByTeam ¶
func (s *OpenTracingLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
func (*OpenTracingLayerCommandStore) PermanentDeleteByUser ¶
func (s *OpenTracingLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
type OpenTracingLayerCommandWebhookStore ¶
type OpenTracingLayerCommandWebhookStore struct { CommandWebhookStore Root *OpenTracingLayer }
func (*OpenTracingLayerCommandWebhookStore) Cleanup ¶
func (s *OpenTracingLayerCommandWebhookStore) Cleanup()
func (*OpenTracingLayerCommandWebhookStore) Get ¶
func (s *OpenTracingLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
func (*OpenTracingLayerCommandWebhookStore) Save ¶
func (s *OpenTracingLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
type OpenTracingLayerComplianceStore ¶
type OpenTracingLayerComplianceStore struct { ComplianceStore Root *OpenTracingLayer }
func (*OpenTracingLayerComplianceStore) ComplianceExport ¶
func (s *OpenTracingLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (*OpenTracingLayerComplianceStore) Get ¶
func (s *OpenTracingLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (*OpenTracingLayerComplianceStore) GetAll ¶
func (s *OpenTracingLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
func (*OpenTracingLayerComplianceStore) MessageExport ¶
func (s *OpenTracingLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (*OpenTracingLayerComplianceStore) Save ¶
func (s *OpenTracingLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (*OpenTracingLayerComplianceStore) Update ¶
func (s *OpenTracingLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type OpenTracingLayerEmojiStore ¶
type OpenTracingLayerEmojiStore struct { EmojiStore Root *OpenTracingLayer }
func (*OpenTracingLayerEmojiStore) GetMultipleByName ¶
type OpenTracingLayerFileInfoStore ¶
type OpenTracingLayerFileInfoStore struct { FileInfoStore Root *OpenTracingLayer }
func (*OpenTracingLayerFileInfoStore) AttachToPost ¶
func (*OpenTracingLayerFileInfoStore) ClearCaches ¶
func (s *OpenTracingLayerFileInfoStore) ClearCaches()
func (*OpenTracingLayerFileInfoStore) DeleteForPost ¶
func (s *OpenTracingLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (*OpenTracingLayerFileInfoStore) GetForPost ¶
func (*OpenTracingLayerFileInfoStore) GetForUser ¶
func (*OpenTracingLayerFileInfoStore) GetWithOptions ¶
func (s *OpenTracingLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
func (*OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache ¶
func (s *OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
func (*OpenTracingLayerFileInfoStore) PermanentDelete ¶
func (s *OpenTracingLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (*OpenTracingLayerFileInfoStore) PermanentDeleteBatch ¶
func (*OpenTracingLayerFileInfoStore) PermanentDeleteByUser ¶
func (s *OpenTracingLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type OpenTracingLayerJobStore ¶
type OpenTracingLayerJobStore struct { JobStore Root *OpenTracingLayer }
func (*OpenTracingLayerJobStore) Delete ¶
func (s *OpenTracingLayerJobStore) Delete(id string) (string, *model.AppError)
func (*OpenTracingLayerJobStore) GetAllByStatus ¶
func (*OpenTracingLayerJobStore) GetAllByType ¶
func (*OpenTracingLayerJobStore) GetAllByTypePage ¶
func (*OpenTracingLayerJobStore) GetAllPage ¶
func (*OpenTracingLayerJobStore) GetCountByStatusAndType ¶
func (*OpenTracingLayerJobStore) GetNewestJobByStatusAndType ¶
func (*OpenTracingLayerJobStore) UpdateOptimistically ¶
func (*OpenTracingLayerJobStore) UpdateStatus ¶
func (*OpenTracingLayerJobStore) UpdateStatusOptimistically ¶
type OpenTracingLayerLicenseStore ¶
type OpenTracingLayerLicenseStore struct { LicenseStore Root *OpenTracingLayer }
func (*OpenTracingLayerLicenseStore) Get ¶
func (s *OpenTracingLayerLicenseStore) Get(id string) (*model.LicenseRecord, *model.AppError)
func (*OpenTracingLayerLicenseStore) Save ¶
func (s *OpenTracingLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
type OpenTracingLayerLinkMetadataStore ¶
type OpenTracingLayerLinkMetadataStore struct { LinkMetadataStore Root *OpenTracingLayer }
func (*OpenTracingLayerLinkMetadataStore) Get ¶
func (s *OpenTracingLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError)
func (*OpenTracingLayerLinkMetadataStore) Save ¶
func (s *OpenTracingLayerLinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
type OpenTracingLayerOAuthStore ¶
type OpenTracingLayerOAuthStore struct { OAuthStore Root *OpenTracingLayer }
func (*OpenTracingLayerOAuthStore) DeleteApp ¶
func (s *OpenTracingLayerOAuthStore) DeleteApp(id string) *model.AppError
func (*OpenTracingLayerOAuthStore) GetAccessData ¶
func (s *OpenTracingLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
func (*OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken ¶
func (s *OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
func (*OpenTracingLayerOAuthStore) GetAccessDataByUserForApp ¶
func (s *OpenTracingLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
func (*OpenTracingLayerOAuthStore) GetAppByUser ¶
func (*OpenTracingLayerOAuthStore) GetAuthData ¶
func (*OpenTracingLayerOAuthStore) GetAuthorizedApps ¶
func (*OpenTracingLayerOAuthStore) GetPreviousAccessData ¶
func (s *OpenTracingLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
func (*OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser ¶
func (s *OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
func (*OpenTracingLayerOAuthStore) RemoveAccessData ¶
func (s *OpenTracingLayerOAuthStore) RemoveAccessData(token string) *model.AppError
func (*OpenTracingLayerOAuthStore) RemoveAllAccessData ¶
func (s *OpenTracingLayerOAuthStore) RemoveAllAccessData() *model.AppError
func (*OpenTracingLayerOAuthStore) RemoveAuthData ¶
func (s *OpenTracingLayerOAuthStore) RemoveAuthData(code string) *model.AppError
func (*OpenTracingLayerOAuthStore) SaveAccessData ¶
func (s *OpenTracingLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
func (*OpenTracingLayerOAuthStore) SaveAuthData ¶
func (*OpenTracingLayerOAuthStore) UpdateAccessData ¶
func (s *OpenTracingLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
type OpenTracingLayerPreferenceStore ¶
type OpenTracingLayerPreferenceStore struct { PreferenceStore Root *OpenTracingLayer }
func (*OpenTracingLayerPreferenceStore) CleanupFlagsBatch ¶
func (s *OpenTracingLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (*OpenTracingLayerPreferenceStore) DeleteCategory ¶
func (s *OpenTracingLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (*OpenTracingLayerPreferenceStore) DeleteCategoryAndName ¶
func (s *OpenTracingLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (*OpenTracingLayerPreferenceStore) Get ¶
func (s *OpenTracingLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (*OpenTracingLayerPreferenceStore) GetAll ¶
func (s *OpenTracingLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (*OpenTracingLayerPreferenceStore) GetCategory ¶
func (s *OpenTracingLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (*OpenTracingLayerPreferenceStore) PermanentDeleteByUser ¶
func (s *OpenTracingLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (*OpenTracingLayerPreferenceStore) Save ¶
func (s *OpenTracingLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type OpenTracingLayerReactionStore ¶
type OpenTracingLayerReactionStore struct { ReactionStore Root *OpenTracingLayer }
func (*OpenTracingLayerReactionStore) BulkGetForPosts ¶
func (*OpenTracingLayerReactionStore) DeleteAllWithEmojiName ¶
func (s *OpenTracingLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
func (*OpenTracingLayerReactionStore) GetForPost ¶
func (*OpenTracingLayerReactionStore) PermanentDeleteBatch ¶
type OpenTracingLayerRoleStore ¶
type OpenTracingLayerRoleStore struct { RoleStore Root *OpenTracingLayer }
func (*OpenTracingLayerRoleStore) AllClassSchemeRoles ¶
func (s *OpenTracingLayerRoleStore) AllClassSchemeRoles() ([]*model.Role, *model.AppError)
func (*OpenTracingLayerRoleStore) ClassHigherScopedPermissions ¶
func (s *OpenTracingLayerRoleStore) ClassHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
func (*OpenTracingLayerRoleStore) ClassRolesUnderBranchRole ¶
func (*OpenTracingLayerRoleStore) GetAll ¶
func (s *OpenTracingLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
func (*OpenTracingLayerRoleStore) GetByNames ¶
func (*OpenTracingLayerRoleStore) PermanentDeleteAll ¶
func (s *OpenTracingLayerRoleStore) PermanentDeleteAll() *model.AppError
type OpenTracingLayerSchemeStore ¶
type OpenTracingLayerSchemeStore struct { SchemeStore Root *OpenTracingLayer }
func (*OpenTracingLayerSchemeStore) CountByScope ¶
func (s *OpenTracingLayerSchemeStore) CountByScope(scope string) (int64, *model.AppError)
func (*OpenTracingLayerSchemeStore) CountWithoutPermission ¶
func (*OpenTracingLayerSchemeStore) GetAllPage ¶
func (*OpenTracingLayerSchemeStore) PermanentDeleteAll ¶
func (s *OpenTracingLayerSchemeStore) PermanentDeleteAll() *model.AppError
type OpenTracingLayerSessionStore ¶
type OpenTracingLayerSessionStore struct { SessionStore Root *OpenTracingLayer }
func (*OpenTracingLayerSessionStore) AnalyticsSessionCount ¶
func (s *OpenTracingLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
func (*OpenTracingLayerSessionStore) Cleanup ¶
func (s *OpenTracingLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (*OpenTracingLayerSessionStore) GetSessions ¶
func (*OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds ¶
func (*OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser ¶
func (s *OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
func (*OpenTracingLayerSessionStore) Remove ¶
func (s *OpenTracingLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
func (*OpenTracingLayerSessionStore) RemoveAllSessions ¶
func (s *OpenTracingLayerSessionStore) RemoveAllSessions() *model.AppError
func (*OpenTracingLayerSessionStore) UpdateDeviceId ¶
func (*OpenTracingLayerSessionStore) UpdateLastActivityAt ¶
func (s *OpenTracingLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
func (*OpenTracingLayerSessionStore) UpdateProps ¶
func (s *OpenTracingLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
func (*OpenTracingLayerSessionStore) UpdateRoles ¶
type OpenTracingLayerStatusStore ¶
type OpenTracingLayerStatusStore struct { StatusStore Root *OpenTracingLayer }
func (*OpenTracingLayerStatusStore) GetTotalActiveUsersCount ¶
func (s *OpenTracingLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (*OpenTracingLayerStatusStore) ResetAll ¶
func (s *OpenTracingLayerStatusStore) ResetAll() *model.AppError
func (*OpenTracingLayerStatusStore) SaveOrUpdate ¶
func (s *OpenTracingLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (*OpenTracingLayerStatusStore) UpdateLastActivityAt ¶
func (s *OpenTracingLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
type OpenTracingLayerSystemStore ¶
type OpenTracingLayerSystemStore struct { SystemStore Root *OpenTracingLayer }
func (*OpenTracingLayerSystemStore) Get ¶
func (s *OpenTracingLayerSystemStore) Get() (model.StringMap, *model.AppError)
func (*OpenTracingLayerSystemStore) PermanentDeleteByName ¶
func (*OpenTracingLayerSystemStore) Save ¶
func (s *OpenTracingLayerSystemStore) Save(system *model.System) *model.AppError
func (*OpenTracingLayerSystemStore) SaveOrUpdate ¶
func (s *OpenTracingLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type OpenTracingLayerTermsOfServiceStore ¶
type OpenTracingLayerTermsOfServiceStore struct { TermsOfServiceStore Root *OpenTracingLayer }
func (*OpenTracingLayerTermsOfServiceStore) Get ¶
func (s *OpenTracingLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*OpenTracingLayerTermsOfServiceStore) GetLatest ¶
func (s *OpenTracingLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*OpenTracingLayerTermsOfServiceStore) Save ¶
func (s *OpenTracingLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
type OpenTracingLayerTokenStore ¶
type OpenTracingLayerTokenStore struct { TokenStore Root *OpenTracingLayer }
func (*OpenTracingLayerTokenStore) Cleanup ¶
func (s *OpenTracingLayerTokenStore) Cleanup()
func (*OpenTracingLayerTokenStore) Delete ¶
func (s *OpenTracingLayerTokenStore) Delete(token string) *model.AppError
func (*OpenTracingLayerTokenStore) GetByToken ¶
func (*OpenTracingLayerTokenStore) RemoveAllTokensByType ¶
func (s *OpenTracingLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
type OpenTracingLayerUserAccessTokenStore ¶
type OpenTracingLayerUserAccessTokenStore struct { UserAccessTokenStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserAccessTokenStore) Delete ¶
func (s *OpenTracingLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) DeleteAllForUser ¶
func (s *OpenTracingLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) Get ¶
func (s *OpenTracingLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetAll ¶
func (s *OpenTracingLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetByToken ¶
func (s *OpenTracingLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) GetByUser ¶
func (s *OpenTracingLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) Save ¶
func (s *OpenTracingLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) Search ¶
func (s *OpenTracingLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable ¶
func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable ¶
func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type OpenTracingLayerUserStore ¶
type OpenTracingLayerUserStore struct { UserStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserStore) AnalyticsActiveCount ¶
func (s *OpenTracingLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount ¶
func (s *OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount ¶
func (s *OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) ClearAllCustomRoleAssignments ¶
func (s *OpenTracingLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
func (*OpenTracingLayerUserStore) ClearCaches ¶
func (s *OpenTracingLayerUserStore) ClearCaches()
func (*OpenTracingLayerUserStore) Count ¶
func (s *OpenTracingLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) GetAll ¶
func (s *OpenTracingLayerUserStore) GetAll() ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetAllAfter ¶
func (*OpenTracingLayerUserStore) GetAllProfiles ¶
func (s *OpenTracingLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetAllProfilesInClass ¶
func (*OpenTracingLayerUserStore) GetAllUsingAuthService ¶
func (*OpenTracingLayerUserStore) GetByEmail ¶
func (*OpenTracingLayerUserStore) GetByUsername ¶
func (*OpenTracingLayerUserStore) GetEtagForAllProfiles ¶
func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string
func (*OpenTracingLayerUserStore) GetEtagForProfiles ¶
func (s *OpenTracingLayerUserStore) GetEtagForProfiles(branchId string) string
func (*OpenTracingLayerUserStore) GetForLogin ¶
func (*OpenTracingLayerUserStore) GetNewUsersForBranch ¶
func (s *OpenTracingLayerUserStore) GetNewUsersForBranch(branchId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfileByIds ¶
func (s *OpenTracingLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfiles ¶
func (s *OpenTracingLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfilesByUsernames ¶
func (s *OpenTracingLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetProfilesInClass ¶
func (*OpenTracingLayerUserStore) GetProfilesInClassByStatus ¶
func (*OpenTracingLayerUserStore) GetProfilesNotInClass ¶
func (*OpenTracingLayerUserStore) GetProfilesWithoutBranch ¶
func (s *OpenTracingLayerUserStore) GetProfilesWithoutBranch(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetRecentlyActiveUsersForBranch ¶
func (s *OpenTracingLayerUserStore) GetRecentlyActiveUsersForBranch(branchId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*OpenTracingLayerUserStore) GetSystemAdminProfiles ¶
func (*OpenTracingLayerUserStore) GetUsersBatchForIndexing ¶
func (s *OpenTracingLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (*OpenTracingLayerUserStore) InferSystemInstallDate ¶
func (s *OpenTracingLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
func (*OpenTracingLayerUserStore) InvalidateProfileCacheForUser ¶
func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)
func (*OpenTracingLayerUserStore) InvalidateProfilesInClassCache ¶
func (s *OpenTracingLayerUserStore) InvalidateProfilesInClassCache(classId string)
func (*OpenTracingLayerUserStore) InvalidateProfilesInClassCacheByUser ¶
func (s *OpenTracingLayerUserStore) InvalidateProfilesInClassCacheByUser(userId string)
func (*OpenTracingLayerUserStore) PermanentDelete ¶
func (s *OpenTracingLayerUserStore) PermanentDelete(userId string) *model.AppError
func (*OpenTracingLayerUserStore) ResetLastPictureUpdate ¶
func (s *OpenTracingLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (*OpenTracingLayerUserStore) Update ¶
func (s *OpenTracingLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
func (*OpenTracingLayerUserStore) UpdateAuthData ¶
func (*OpenTracingLayerUserStore) UpdateFailedPasswordAttempts ¶
func (s *OpenTracingLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
func (*OpenTracingLayerUserStore) UpdateLastPictureUpdate ¶
func (s *OpenTracingLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
func (*OpenTracingLayerUserStore) UpdateMfaActive ¶
func (s *OpenTracingLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
func (*OpenTracingLayerUserStore) UpdateMfaSecret ¶
func (s *OpenTracingLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
func (*OpenTracingLayerUserStore) UpdatePassword ¶
func (s *OpenTracingLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
func (*OpenTracingLayerUserStore) UpdateUpdateAt ¶
func (s *OpenTracingLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
func (*OpenTracingLayerUserStore) VerifyEmail ¶
type OpenTracingLayerUserTermsOfServiceStore ¶
type OpenTracingLayerUserTermsOfServiceStore struct { UserTermsOfServiceStore Root *OpenTracingLayer }
func (*OpenTracingLayerUserTermsOfServiceStore) Delete ¶
func (s *OpenTracingLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
func (*OpenTracingLayerUserTermsOfServiceStore) GetByUser ¶
func (s *OpenTracingLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
func (*OpenTracingLayerUserTermsOfServiceStore) Save ¶
func (s *OpenTracingLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
type OpenTracingLayerWebhookStore ¶
type OpenTracingLayerWebhookStore struct { WebhookStore Root *OpenTracingLayer }
func (*OpenTracingLayerWebhookStore) AnalyticsIncomingCount ¶
func (s *OpenTracingLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (*OpenTracingLayerWebhookStore) AnalyticsOutgoingCount ¶
func (s *OpenTracingLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (*OpenTracingLayerWebhookStore) ClearCaches ¶
func (s *OpenTracingLayerWebhookStore) ClearCaches()
func (*OpenTracingLayerWebhookStore) DeleteIncoming ¶
func (s *OpenTracingLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (*OpenTracingLayerWebhookStore) DeleteOutgoing ¶
func (s *OpenTracingLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (*OpenTracingLayerWebhookStore) GetIncoming ¶
func (s *OpenTracingLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByChannel ¶
func (s *OpenTracingLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByTeam ¶
func (s *OpenTracingLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingByTeamByUser ¶
func (s *OpenTracingLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingList ¶
func (s *OpenTracingLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetIncomingListByUser ¶
func (s *OpenTracingLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoing ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByChannel ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByTeam ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingList ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) GetOutgoingListByUser ¶
func (s *OpenTracingLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) InvalidateWebhookCache ¶
func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser ¶
func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (*OpenTracingLayerWebhookStore) SaveIncoming ¶
func (s *OpenTracingLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) SaveOutgoing ¶
func (s *OpenTracingLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) UpdateIncoming ¶
func (s *OpenTracingLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*OpenTracingLayerWebhookStore) UpdateOutgoing ¶
func (s *OpenTracingLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type OrphanedRecord ¶
type PreferenceStore ¶
type PreferenceStore interface { Save(preferences *model.Preferences) *model.AppError GetCategory(userId string, category string) (model.Preferences, *model.AppError) Get(userId string, category string, name string) (*model.Preference, *model.AppError) GetAll(userId string) (model.Preferences, *model.AppError) Delete(userId, category, name string) *model.AppError DeleteCategory(userId string, category string) *model.AppError DeleteCategoryAndName(category string, name string) *model.AppError PermanentDeleteByUser(userId string) *model.AppError CleanupFlagsBatch(limit int64) (int64, *model.AppError) }
type ReactionStore ¶
type ReactionStore interface { Save(reaction *model.Reaction) (*model.Reaction, *model.AppError) Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError) DeleteAllWithEmojiName(emojiName string) *model.AppError PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError) }
type RelationalIntegrityCheckData ¶
type RelationalIntegrityCheckData struct { ParentName string ChildName string ParentIdAttr string ChildIdAttr string Records []OrphanedRecord }
type RoleStore ¶
type RoleStore interface { Save(role *model.Role) (*model.Role, *model.AppError) Get(roleId string) (*model.Role, *model.AppError) GetAll() ([]*model.Role, *model.AppError) GetByName(name string) (*model.Role, *model.AppError) GetByNames(names []string) ([]*model.Role, *model.AppError) Delete(roleId string) (*model.Role, *model.AppError) PermanentDeleteAll() *model.AppError // HigherScopedPermissions retrieves the higher-scoped permissions of a list of role names. The higher-scope // (either team scheme or system scheme) is determined based on whether the team has a scheme or not. ClassHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError) // AllClassSchemeRoles returns all of the roles associated to class schemes. AllClassSchemeRoles() ([]*model.Role, *model.AppError) // ClassRolesUnderBranchRole returns all of the non-deleted roles that are affected by updates to the // given role. ClassRolesUnderBranchRole(roleName string) ([]*model.Role, *model.AppError) }
type SchemeStore ¶
type SchemeStore interface { Save(scheme *model.Scheme) (*model.Scheme, *model.AppError) Get(schemeId string) (*model.Scheme, *model.AppError) GetByName(schemeName string) (*model.Scheme, *model.AppError) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError) Delete(schemeId string) (*model.Scheme, *model.AppError) PermanentDeleteAll() *model.AppError CountByScope(scope string) (int64, *model.AppError) CountWithoutPermission(scope, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, *model.AppError) }
type SessionStore ¶
type SessionStore interface { Get(sessionIdOrToken string) (*model.Session, *model.AppError) Save(session *model.Session) (*model.Session, *model.AppError) GetSessions(userId string) ([]*model.Session, *model.AppError) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError) Remove(sessionIdOrToken string) *model.AppError RemoveAllSessions() *model.AppError PermanentDeleteSessionsByUser(teamId string) *model.AppError UpdateLastActivityAt(sessionId string, time int64) *model.AppError UpdateRoles(userId string, roles string) (string, *model.AppError) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError) UpdateProps(session *model.Session) *model.AppError AnalyticsSessionCount() (int64, *model.AppError) Cleanup(expiryTime int64, batchSize int64) }
type StatusStore ¶
type StatusStore interface { SaveOrUpdate(status *model.Status) *model.AppError Get(userId string) (*model.Status, *model.AppError) GetByIds(userIds []string) ([]*model.Status, *model.AppError) ResetAll() *model.AppError GetTotalActiveUsersCount() (int64, *model.AppError) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError }
type Store ¶
type Store interface { Branch() BranchStore Class() ClassStore User() UserStore Audit() AuditStore ClusterDiscovery() ClusterDiscoveryStore Compliance() ComplianceStore Session() SessionStore OAuth() OAuthStore System() SystemStore Webhook() WebhookStore Command() CommandStore CommandWebhook() CommandWebhookStore Preference() PreferenceStore License() LicenseStore Token() TokenStore Emoji() EmojiStore Status() StatusStore FileInfo() FileInfoStore Reaction() ReactionStore Role() RoleStore Scheme() SchemeStore Job() JobStore UserAccessToken() UserAccessTokenStore TermsOfService() TermsOfServiceStore UserTermsOfService() UserTermsOfServiceStore LinkMetadata() LinkMetadataStore MarkSystemRanUnitTests() Close() LockToMaster() UnlockFromMaster() DropAllTables() GetCurrentSchemaVersion() string TotalMasterDbConnections() int TotalReadDbConnections() int TotalSearchDbConnections() int CheckIntegrity() <-chan IntegrityCheckResult SetContext(context context.Context) Context() context.Context }
type StoreResult ¶
type SystemStore ¶
type SystemStore interface { Save(system *model.System) *model.AppError SaveOrUpdate(system *model.System) *model.AppError Update(system *model.System) *model.AppError Get() (model.StringMap, *model.AppError) GetByName(name string) (*model.System, *model.AppError) PermanentDeleteByName(name string) (*model.System, *model.AppError) }
type TermsOfServiceStore ¶
type TermsOfServiceStore interface { Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError) }
type TimerLayer ¶
type TimerLayer struct { Store Metrics einterfaces.MetricsInterface AuditStore AuditStore BranchStore BranchStore ClassStore ClassStore ClusterDiscoveryStore ClusterDiscoveryStore CommandStore CommandStore CommandWebhookStore CommandWebhookStore ComplianceStore ComplianceStore EmojiStore EmojiStore FileInfoStore FileInfoStore JobStore JobStore LicenseStore LicenseStore LinkMetadataStore LinkMetadataStore OAuthStore OAuthStore PreferenceStore PreferenceStore ReactionStore ReactionStore RoleStore RoleStore SchemeStore SchemeStore SessionStore SessionStore StatusStore StatusStore SystemStore SystemStore TermsOfServiceStore TermsOfServiceStore TokenStore TokenStore UserStore UserStore UserAccessTokenStore UserAccessTokenStore UserTermsOfServiceStore UserTermsOfServiceStore WebhookStore WebhookStore }
func NewTimerLayer ¶
func NewTimerLayer(childStore Store, metrics einterfaces.MetricsInterface) *TimerLayer
func (*TimerLayer) Audit ¶
func (s *TimerLayer) Audit() AuditStore
func (*TimerLayer) Branch ¶
func (s *TimerLayer) Branch() BranchStore
func (*TimerLayer) Class ¶
func (s *TimerLayer) Class() ClassStore
func (*TimerLayer) Close ¶
func (s *TimerLayer) Close()
func (*TimerLayer) ClusterDiscovery ¶
func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore
func (*TimerLayer) Command ¶
func (s *TimerLayer) Command() CommandStore
func (*TimerLayer) CommandWebhook ¶
func (s *TimerLayer) CommandWebhook() CommandWebhookStore
func (*TimerLayer) Compliance ¶
func (s *TimerLayer) Compliance() ComplianceStore
func (*TimerLayer) DropAllTables ¶
func (s *TimerLayer) DropAllTables()
func (*TimerLayer) Emoji ¶
func (s *TimerLayer) Emoji() EmojiStore
func (*TimerLayer) FileInfo ¶
func (s *TimerLayer) FileInfo() FileInfoStore
func (*TimerLayer) GetCurrentSchemaVersion ¶
func (s *TimerLayer) GetCurrentSchemaVersion() string
func (*TimerLayer) Job ¶
func (s *TimerLayer) Job() JobStore
func (*TimerLayer) License ¶
func (s *TimerLayer) License() LicenseStore
func (*TimerLayer) LinkMetadata ¶
func (s *TimerLayer) LinkMetadata() LinkMetadataStore
func (*TimerLayer) LockToMaster ¶
func (s *TimerLayer) LockToMaster()
func (*TimerLayer) MarkSystemRanUnitTests ¶
func (s *TimerLayer) MarkSystemRanUnitTests()
func (*TimerLayer) OAuth ¶
func (s *TimerLayer) OAuth() OAuthStore
func (*TimerLayer) Preference ¶
func (s *TimerLayer) Preference() PreferenceStore
func (*TimerLayer) Reaction ¶
func (s *TimerLayer) Reaction() ReactionStore
func (*TimerLayer) Role ¶
func (s *TimerLayer) Role() RoleStore
func (*TimerLayer) Scheme ¶
func (s *TimerLayer) Scheme() SchemeStore
func (*TimerLayer) Session ¶
func (s *TimerLayer) Session() SessionStore
func (*TimerLayer) SetContext ¶
func (s *TimerLayer) SetContext(context context.Context)
func (*TimerLayer) Status ¶
func (s *TimerLayer) Status() StatusStore
func (*TimerLayer) System ¶
func (s *TimerLayer) System() SystemStore
func (*TimerLayer) TermsOfService ¶
func (s *TimerLayer) TermsOfService() TermsOfServiceStore
func (*TimerLayer) Token ¶
func (s *TimerLayer) Token() TokenStore
func (*TimerLayer) TotalMasterDbConnections ¶
func (s *TimerLayer) TotalMasterDbConnections() int
func (*TimerLayer) TotalReadDbConnections ¶
func (s *TimerLayer) TotalReadDbConnections() int
func (*TimerLayer) TotalSearchDbConnections ¶
func (s *TimerLayer) TotalSearchDbConnections() int
func (*TimerLayer) UnlockFromMaster ¶
func (s *TimerLayer) UnlockFromMaster()
func (*TimerLayer) User ¶
func (s *TimerLayer) User() UserStore
func (*TimerLayer) UserAccessToken ¶
func (s *TimerLayer) UserAccessToken() UserAccessTokenStore
func (*TimerLayer) UserTermsOfService ¶
func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore
func (*TimerLayer) Webhook ¶
func (s *TimerLayer) Webhook() WebhookStore
type TimerLayerAuditStore ¶
type TimerLayerAuditStore struct { AuditStore Root *TimerLayer }
func (*TimerLayerAuditStore) PermanentDeleteByUser ¶
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError
type TimerLayerBranchStore ¶
type TimerLayerBranchStore struct { BranchStore Root *TimerLayer }
func (*TimerLayerBranchStore) AnalyticsBranchCount ¶
func (s *TimerLayerBranchStore) AnalyticsBranchCount(includeDeleted bool) (int64, *model.AppError)
func (*TimerLayerBranchStore) AnalyticsGetBranchCountForScheme ¶
func (s *TimerLayerBranchStore) AnalyticsGetBranchCountForScheme(schemeId string) (int64, *model.AppError)
func (*TimerLayerBranchStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerBranchStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerBranchStore) ClearCaches ¶
func (s *TimerLayerBranchStore) ClearCaches()
func (*TimerLayerBranchStore) GetActiveMemberCount ¶
func (s *TimerLayerBranchStore) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerBranchStore) GetAll ¶
func (s *TimerLayerBranchStore) GetAll() ([]*model.Branch, *model.AppError)
func (*TimerLayerBranchStore) GetAllForExportAfter ¶
func (s *TimerLayerBranchStore) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError)
func (*TimerLayerBranchStore) GetAllPage ¶
func (*TimerLayerBranchStore) GetBranchMembersForExport ¶
func (s *TimerLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)
func (*TimerLayerBranchStore) GetBranchesByScheme ¶
func (*TimerLayerBranchStore) GetBranchesByUserId ¶
func (*TimerLayerBranchStore) GetBranchesForUser ¶
func (s *TimerLayerBranchStore) GetBranchesForUser(userId string) ([]*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) GetBranchesForUserWithPagination ¶
func (s *TimerLayerBranchStore) GetBranchesForUserWithPagination(userId string, page int, perPage int) ([]*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) GetByNames ¶
func (*TimerLayerBranchStore) GetBySchoolId ¶
func (*TimerLayerBranchStore) GetMember ¶
func (s *TimerLayerBranchStore) GetMember(branchId string, userId string) (*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) GetMembers ¶
func (s *TimerLayerBranchStore) GetMembers(branchId string, offset int, limit int, branchMembersGetOptions *model.BranchMembersGetOptions) ([]*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) GetMembersByIds ¶
func (s *TimerLayerBranchStore) GetMembersByIds(branchId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) GetTotalMemberCount ¶
func (s *TimerLayerBranchStore) GetTotalMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
func (*TimerLayerBranchStore) GetUserBranchIds ¶
func (*TimerLayerBranchStore) InvalidateAllBranchIdsForUser ¶
func (s *TimerLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)
func (*TimerLayerBranchStore) MigrateBranchMembers ¶
func (*TimerLayerBranchStore) PermanentDelete ¶
func (s *TimerLayerBranchStore) PermanentDelete(branchId string) *model.AppError
func (*TimerLayerBranchStore) RemoveAllMembersByBranch ¶
func (s *TimerLayerBranchStore) RemoveAllMembersByBranch(branchId string) *model.AppError
func (*TimerLayerBranchStore) RemoveAllMembersByUser ¶
func (s *TimerLayerBranchStore) RemoveAllMembersByUser(userId string) *model.AppError
func (*TimerLayerBranchStore) RemoveMember ¶
func (s *TimerLayerBranchStore) RemoveMember(branchId string, userId string) *model.AppError
func (*TimerLayerBranchStore) ResetAllBranchSchemes ¶
func (s *TimerLayerBranchStore) ResetAllBranchSchemes() *model.AppError
func (*TimerLayerBranchStore) SaveMember ¶
func (s *TimerLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) UpdateLastBranchIconUpdate ¶
func (s *TimerLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError
func (*TimerLayerBranchStore) UpdateMember ¶
func (s *TimerLayerBranchStore) UpdateMember(member *model.BranchMember) (*model.BranchMember, *model.AppError)
func (*TimerLayerBranchStore) UpdateMembersRole ¶
func (s *TimerLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError
func (*TimerLayerBranchStore) UserBelongsToBranches ¶
type TimerLayerClassStore ¶
type TimerLayerClassStore struct { ClassStore Root *TimerLayer }
func (*TimerLayerClassStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerClassStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerClassStore) ClearCaches ¶
func (s *TimerLayerClassStore) ClearCaches()
func (*TimerLayerClassStore) CreateDirectClass ¶
func (*TimerLayerClassStore) Delete ¶
func (s *TimerLayerClassStore) Delete(classId string, time int64) *model.AppError
func (*TimerLayerClassStore) GetAllClassMembersForUser ¶
func (*TimerLayerClassStore) GetAllClassMembersNotifyPropsForClass ¶
func (*TimerLayerClassStore) GetAllClasses ¶
func (s *TimerLayerClassStore) GetAllClasses(page int, perPage int, opts ClassSearchOpts) (*model.ClassListWithBranchData, *model.AppError)
func (*TimerLayerClassStore) GetAllClassesCount ¶
func (s *TimerLayerClassStore) GetAllClassesCount(opts ClassSearchOpts) (int64, *model.AppError)
func (*TimerLayerClassStore) GetAllClassesForExportAfter ¶
func (s *TimerLayerClassStore) GetAllClassesForExportAfter(limit int, afterId string) ([]*model.ClassForExport, *model.AppError)
func (*TimerLayerClassStore) GetBranchClasses ¶
func (*TimerLayerClassStore) GetByNameIncludeDeleted ¶
func (*TimerLayerClassStore) GetByNames ¶
func (*TimerLayerClassStore) GetClassMembersForExport ¶
func (s *TimerLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)
func (*TimerLayerClassStore) GetClassMembersTimezones ¶
func (*TimerLayerClassStore) GetClasses ¶
func (*TimerLayerClassStore) GetClassesBatchForIndexing ¶
func (*TimerLayerClassStore) GetClassesByIds ¶
func (*TimerLayerClassStore) GetClassesByScheme ¶
func (*TimerLayerClassStore) GetDeleted ¶
func (*TimerLayerClassStore) GetDeletedByName ¶
func (*TimerLayerClassStore) GetFromMaster ¶
func (*TimerLayerClassStore) GetMember ¶
func (s *TimerLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)
func (*TimerLayerClassStore) GetMemberCount ¶
func (*TimerLayerClassStore) GetMemberCountFromCache ¶
func (s *TimerLayerClassStore) GetMemberCountFromCache(classId string) int64
func (*TimerLayerClassStore) GetMembers ¶
func (s *TimerLayerClassStore) GetMembers(classId string, offset int, limit int) (*model.ClassMembers, *model.AppError)
func (*TimerLayerClassStore) GetMembersByIds ¶
func (s *TimerLayerClassStore) GetMembersByIds(classId string, userIds []string) (*model.ClassMembers, *model.AppError)
func (*TimerLayerClassStore) GetMembersForUser ¶
func (s *TimerLayerClassStore) GetMembersForUser(branchId string, userId string) (*model.ClassMembers, *model.AppError)
func (*TimerLayerClassStore) GetMembersForUserWithPagination ¶
func (s *TimerLayerClassStore) GetMembersForUserWithPagination(branchId string, userId string, page int, perPage int) (*model.ClassMembers, *model.AppError)
func (*TimerLayerClassStore) GetMoreClasses ¶
func (*TimerLayerClassStore) InvalidateAllClassMembersForUser ¶
func (s *TimerLayerClassStore) InvalidateAllClassMembersForUser(userId string)
func (*TimerLayerClassStore) InvalidateCacheForClassMembersNotifyProps ¶
func (s *TimerLayerClassStore) InvalidateCacheForClassMembersNotifyProps(classId string)
func (*TimerLayerClassStore) InvalidateClass ¶
func (s *TimerLayerClassStore) InvalidateClass(id string)
func (*TimerLayerClassStore) InvalidateClassByName ¶
func (s *TimerLayerClassStore) InvalidateClassByName(branchId string, name string)
func (*TimerLayerClassStore) InvalidateMemberCount ¶
func (s *TimerLayerClassStore) InvalidateMemberCount(classId string)
func (*TimerLayerClassStore) IsUserInClassUseCache ¶
func (s *TimerLayerClassStore) IsUserInClassUseCache(userId string, classId string) bool
func (*TimerLayerClassStore) MigrateClassMembers ¶
func (*TimerLayerClassStore) PermanentDelete ¶
func (s *TimerLayerClassStore) PermanentDelete(classId string) *model.AppError
func (*TimerLayerClassStore) PermanentDeleteByBranch ¶
func (s *TimerLayerClassStore) PermanentDeleteByBranch(branchId string) *model.AppError
func (*TimerLayerClassStore) PermanentDeleteMembersByClass ¶
func (s *TimerLayerClassStore) PermanentDeleteMembersByClass(classId string) *model.AppError
func (*TimerLayerClassStore) PermanentDeleteMembersByUser ¶
func (s *TimerLayerClassStore) PermanentDeleteMembersByUser(userId string) *model.AppError
func (*TimerLayerClassStore) RemoveAllDeactivatedMembers ¶
func (s *TimerLayerClassStore) RemoveAllDeactivatedMembers(classId string) *model.AppError
func (*TimerLayerClassStore) RemoveMember ¶
func (s *TimerLayerClassStore) RemoveMember(classId string, userId string) *model.AppError
func (*TimerLayerClassStore) ResetAllClassSchemes ¶
func (s *TimerLayerClassStore) ResetAllClassSchemes() *model.AppError
func (*TimerLayerClassStore) Restore ¶
func (s *TimerLayerClassStore) Restore(classId string, time int64) *model.AppError
func (*TimerLayerClassStore) SaveDirectClass ¶
func (s *TimerLayerClassStore) SaveDirectClass(class *model.Class, member1 *model.ClassMember, member2 *model.ClassMember) (*model.Class, *model.AppError)
func (*TimerLayerClassStore) SaveMember ¶
func (s *TimerLayerClassStore) SaveMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
func (*TimerLayerClassStore) SetDeleteAt ¶
func (*TimerLayerClassStore) UpdateMember ¶
func (s *TimerLayerClassStore) UpdateMember(member *model.ClassMember) (*model.ClassMember, *model.AppError)
func (*TimerLayerClassStore) UpdateMembersRole ¶
func (s *TimerLayerClassStore) UpdateMembersRole(classID string, userIDs []string) *model.AppError
func (*TimerLayerClassStore) UserBelongsToClasses ¶
type TimerLayerClusterDiscoveryStore ¶
type TimerLayerClusterDiscoveryStore struct { ClusterDiscoveryStore Root *TimerLayer }
func (*TimerLayerClusterDiscoveryStore) Cleanup ¶
func (s *TimerLayerClusterDiscoveryStore) Cleanup() *model.AppError
func (*TimerLayerClusterDiscoveryStore) Delete ¶
func (s *TimerLayerClusterDiscoveryStore) Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) Exists ¶
func (s *TimerLayerClusterDiscoveryStore) Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) GetAll ¶
func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
func (*TimerLayerClusterDiscoveryStore) Save ¶
func (s *TimerLayerClusterDiscoveryStore) Save(discovery *model.ClusterDiscovery) *model.AppError
func (*TimerLayerClusterDiscoveryStore) SetLastPingAt ¶
func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
type TimerLayerCommandStore ¶
type TimerLayerCommandStore struct { CommandStore Root *TimerLayer }
func (*TimerLayerCommandStore) AnalyticsCommandCount ¶
func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)
func (*TimerLayerCommandStore) Delete ¶
func (s *TimerLayerCommandStore) Delete(commandId string, time int64) *model.AppError
func (*TimerLayerCommandStore) GetByTrigger ¶
func (*TimerLayerCommandStore) PermanentDeleteByTeam ¶
func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError
func (*TimerLayerCommandStore) PermanentDeleteByUser ¶
func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError
type TimerLayerCommandWebhookStore ¶
type TimerLayerCommandWebhookStore struct { CommandWebhookStore Root *TimerLayer }
func (*TimerLayerCommandWebhookStore) Cleanup ¶
func (s *TimerLayerCommandWebhookStore) Cleanup()
func (*TimerLayerCommandWebhookStore) Get ¶
func (s *TimerLayerCommandWebhookStore) Get(id string) (*model.CommandWebhook, *model.AppError)
func (*TimerLayerCommandWebhookStore) Save ¶
func (s *TimerLayerCommandWebhookStore) Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
type TimerLayerComplianceStore ¶
type TimerLayerComplianceStore struct { ComplianceStore Root *TimerLayer }
func (*TimerLayerComplianceStore) ComplianceExport ¶
func (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
func (*TimerLayerComplianceStore) Get ¶
func (s *TimerLayerComplianceStore) Get(id string) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) GetAll ¶
func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)
func (*TimerLayerComplianceStore) MessageExport ¶
func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
func (*TimerLayerComplianceStore) Save ¶
func (s *TimerLayerComplianceStore) Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
func (*TimerLayerComplianceStore) Update ¶
func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
type TimerLayerEmojiStore ¶
type TimerLayerEmojiStore struct { EmojiStore Root *TimerLayer }
func (*TimerLayerEmojiStore) GetMultipleByName ¶
type TimerLayerFileInfoStore ¶
type TimerLayerFileInfoStore struct { FileInfoStore Root *TimerLayer }
func (*TimerLayerFileInfoStore) AttachToPost ¶
func (*TimerLayerFileInfoStore) ClearCaches ¶
func (s *TimerLayerFileInfoStore) ClearCaches()
func (*TimerLayerFileInfoStore) DeleteForPost ¶
func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)
func (*TimerLayerFileInfoStore) GetForPost ¶
func (*TimerLayerFileInfoStore) GetForUser ¶
func (*TimerLayerFileInfoStore) GetWithOptions ¶
func (s *TimerLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)
func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache ¶
func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)
func (*TimerLayerFileInfoStore) PermanentDelete ¶
func (s *TimerLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError
func (*TimerLayerFileInfoStore) PermanentDeleteBatch ¶
func (*TimerLayerFileInfoStore) PermanentDeleteByUser ¶
func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)
type TimerLayerJobStore ¶
type TimerLayerJobStore struct { JobStore Root *TimerLayer }
func (*TimerLayerJobStore) Delete ¶
func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)
func (*TimerLayerJobStore) GetAllByStatus ¶
func (*TimerLayerJobStore) GetAllByType ¶
func (*TimerLayerJobStore) GetAllByTypePage ¶
func (*TimerLayerJobStore) GetAllPage ¶
func (*TimerLayerJobStore) GetCountByStatusAndType ¶
func (*TimerLayerJobStore) GetNewestJobByStatusAndType ¶
func (*TimerLayerJobStore) UpdateOptimistically ¶
func (*TimerLayerJobStore) UpdateStatus ¶
func (*TimerLayerJobStore) UpdateStatusOptimistically ¶
type TimerLayerLicenseStore ¶
type TimerLayerLicenseStore struct { LicenseStore Root *TimerLayer }
func (*TimerLayerLicenseStore) Get ¶
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, *model.AppError)
func (*TimerLayerLicenseStore) Save ¶
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
type TimerLayerLinkMetadataStore ¶
type TimerLayerLinkMetadataStore struct { LinkMetadataStore Root *TimerLayer }
func (*TimerLayerLinkMetadataStore) Get ¶
func (s *TimerLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError)
func (*TimerLayerLinkMetadataStore) Save ¶
func (s *TimerLayerLinkMetadataStore) Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
type TimerLayerOAuthStore ¶
type TimerLayerOAuthStore struct { OAuthStore Root *TimerLayer }
func (*TimerLayerOAuthStore) DeleteApp ¶
func (s *TimerLayerOAuthStore) DeleteApp(id string) *model.AppError
func (*TimerLayerOAuthStore) GetAccessData ¶
func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAccessDataByRefreshToken ¶
func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAccessDataByUserForApp ¶
func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) GetAppByUser ¶
func (*TimerLayerOAuthStore) GetAuthData ¶
func (*TimerLayerOAuthStore) GetAuthorizedApps ¶
func (*TimerLayerOAuthStore) GetPreviousAccessData ¶
func (s *TimerLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) PermanentDeleteAuthDataByUser ¶
func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError
func (*TimerLayerOAuthStore) RemoveAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAccessData(token string) *model.AppError
func (*TimerLayerOAuthStore) RemoveAllAccessData ¶
func (s *TimerLayerOAuthStore) RemoveAllAccessData() *model.AppError
func (*TimerLayerOAuthStore) RemoveAuthData ¶
func (s *TimerLayerOAuthStore) RemoveAuthData(code string) *model.AppError
func (*TimerLayerOAuthStore) SaveAccessData ¶
func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
func (*TimerLayerOAuthStore) SaveAuthData ¶
func (*TimerLayerOAuthStore) UpdateAccessData ¶
func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
type TimerLayerPreferenceStore ¶
type TimerLayerPreferenceStore struct { PreferenceStore Root *TimerLayer }
func (*TimerLayerPreferenceStore) CleanupFlagsBatch ¶
func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)
func (*TimerLayerPreferenceStore) DeleteCategory ¶
func (s *TimerLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError
func (*TimerLayerPreferenceStore) DeleteCategoryAndName ¶
func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError
func (*TimerLayerPreferenceStore) Get ¶
func (s *TimerLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)
func (*TimerLayerPreferenceStore) GetAll ¶
func (s *TimerLayerPreferenceStore) GetAll(userId string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) GetCategory ¶
func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)
func (*TimerLayerPreferenceStore) PermanentDeleteByUser ¶
func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError
func (*TimerLayerPreferenceStore) Save ¶
func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError
type TimerLayerReactionStore ¶
type TimerLayerReactionStore struct { ReactionStore Root *TimerLayer }
func (*TimerLayerReactionStore) BulkGetForPosts ¶
func (*TimerLayerReactionStore) DeleteAllWithEmojiName ¶
func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError
func (*TimerLayerReactionStore) GetForPost ¶
func (*TimerLayerReactionStore) PermanentDeleteBatch ¶
type TimerLayerRoleStore ¶
type TimerLayerRoleStore struct { RoleStore Root *TimerLayer }
func (*TimerLayerRoleStore) AllClassSchemeRoles ¶
func (s *TimerLayerRoleStore) AllClassSchemeRoles() ([]*model.Role, *model.AppError)
func (*TimerLayerRoleStore) ClassHigherScopedPermissions ¶
func (s *TimerLayerRoleStore) ClassHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)
func (*TimerLayerRoleStore) ClassRolesUnderBranchRole ¶
func (*TimerLayerRoleStore) GetAll ¶
func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)
func (*TimerLayerRoleStore) GetByNames ¶
func (*TimerLayerRoleStore) PermanentDeleteAll ¶
func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError
type TimerLayerSchemeStore ¶
type TimerLayerSchemeStore struct { SchemeStore Root *TimerLayer }
func (*TimerLayerSchemeStore) CountByScope ¶
func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, *model.AppError)
func (*TimerLayerSchemeStore) CountWithoutPermission ¶
func (*TimerLayerSchemeStore) GetAllPage ¶
func (*TimerLayerSchemeStore) PermanentDeleteAll ¶
func (s *TimerLayerSchemeStore) PermanentDeleteAll() *model.AppError
type TimerLayerSessionStore ¶
type TimerLayerSessionStore struct { SessionStore Root *TimerLayer }
func (*TimerLayerSessionStore) AnalyticsSessionCount ¶
func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)
func (*TimerLayerSessionStore) Cleanup ¶
func (s *TimerLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)
func (*TimerLayerSessionStore) GetSessions ¶
func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds ¶
func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser ¶
func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError
func (*TimerLayerSessionStore) Remove ¶
func (s *TimerLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError
func (*TimerLayerSessionStore) RemoveAllSessions ¶
func (s *TimerLayerSessionStore) RemoveAllSessions() *model.AppError
func (*TimerLayerSessionStore) UpdateDeviceId ¶
func (*TimerLayerSessionStore) UpdateLastActivityAt ¶
func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError
func (*TimerLayerSessionStore) UpdateProps ¶
func (s *TimerLayerSessionStore) UpdateProps(session *model.Session) *model.AppError
func (*TimerLayerSessionStore) UpdateRoles ¶
type TimerLayerStatusStore ¶
type TimerLayerStatusStore struct { StatusStore Root *TimerLayer }
func (*TimerLayerStatusStore) GetTotalActiveUsersCount ¶
func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)
func (*TimerLayerStatusStore) ResetAll ¶
func (s *TimerLayerStatusStore) ResetAll() *model.AppError
func (*TimerLayerStatusStore) SaveOrUpdate ¶
func (s *TimerLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError
func (*TimerLayerStatusStore) UpdateLastActivityAt ¶
func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
type TimerLayerSystemStore ¶
type TimerLayerSystemStore struct { SystemStore Root *TimerLayer }
func (*TimerLayerSystemStore) Get ¶
func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError)
func (*TimerLayerSystemStore) PermanentDeleteByName ¶
func (*TimerLayerSystemStore) Save ¶
func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError
func (*TimerLayerSystemStore) SaveOrUpdate ¶
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError
type TimerLayerTermsOfServiceStore ¶
type TimerLayerTermsOfServiceStore struct { TermsOfServiceStore Root *TimerLayer }
func (*TimerLayerTermsOfServiceStore) Get ¶
func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*TimerLayerTermsOfServiceStore) GetLatest ¶
func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
func (*TimerLayerTermsOfServiceStore) Save ¶
func (s *TimerLayerTermsOfServiceStore) Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
type TimerLayerTokenStore ¶
type TimerLayerTokenStore struct { TokenStore Root *TimerLayer }
func (*TimerLayerTokenStore) Cleanup ¶
func (s *TimerLayerTokenStore) Cleanup()
func (*TimerLayerTokenStore) Delete ¶
func (s *TimerLayerTokenStore) Delete(token string) *model.AppError
func (*TimerLayerTokenStore) GetByToken ¶
func (*TimerLayerTokenStore) RemoveAllTokensByType ¶
func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError
type TimerLayerUserAccessTokenStore ¶
type TimerLayerUserAccessTokenStore struct { UserAccessTokenStore Root *TimerLayer }
func (*TimerLayerUserAccessTokenStore) Delete ¶
func (s *TimerLayerUserAccessTokenStore) Delete(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) DeleteAllForUser ¶
func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) Get ¶
func (s *TimerLayerUserAccessTokenStore) Get(tokenId string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetAll ¶
func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByToken ¶
func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) GetByUser ¶
func (s *TimerLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Save ¶
func (s *TimerLayerUserAccessTokenStore) Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) Search ¶
func (s *TimerLayerUserAccessTokenStore) Search(term string) ([]*model.UserAccessToken, *model.AppError)
func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError
func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable ¶
func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError
type TimerLayerUserStore ¶
type TimerLayerUserStore struct { UserStore Root *TimerLayer }
func (*TimerLayerUserStore) AnalyticsActiveCount ¶
func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount ¶
func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount ¶
func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)
func (*TimerLayerUserStore) ClearAllCustomRoleAssignments ¶
func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError
func (*TimerLayerUserStore) ClearCaches ¶
func (s *TimerLayerUserStore) ClearCaches()
func (*TimerLayerUserStore) Count ¶
func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, *model.AppError)
func (*TimerLayerUserStore) GetAll ¶
func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllAfter ¶
func (*TimerLayerUserStore) GetAllProfiles ¶
func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetAllProfilesInClass ¶
func (*TimerLayerUserStore) GetAllUsingAuthService ¶
func (*TimerLayerUserStore) GetByEmail ¶
func (*TimerLayerUserStore) GetByUsername ¶
func (*TimerLayerUserStore) GetEtagForAllProfiles ¶
func (s *TimerLayerUserStore) GetEtagForAllProfiles() string
func (*TimerLayerUserStore) GetEtagForProfiles ¶
func (s *TimerLayerUserStore) GetEtagForProfiles(branchId string) string
func (*TimerLayerUserStore) GetForLogin ¶
func (*TimerLayerUserStore) GetNewUsersForBranch ¶
func (s *TimerLayerUserStore) GetNewUsersForBranch(branchId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfileByIds ¶
func (s *TimerLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfiles ¶
func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesByUsernames ¶
func (s *TimerLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetProfilesInClass ¶
func (*TimerLayerUserStore) GetProfilesInClassByStatus ¶
func (*TimerLayerUserStore) GetProfilesNotInClass ¶
func (*TimerLayerUserStore) GetProfilesWithoutBranch ¶
func (s *TimerLayerUserStore) GetProfilesWithoutBranch(options *model.UserGetOptions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetRecentlyActiveUsersForBranch ¶
func (s *TimerLayerUserStore) GetRecentlyActiveUsersForBranch(branchId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
func (*TimerLayerUserStore) GetSystemAdminProfiles ¶
func (*TimerLayerUserStore) GetUsersBatchForIndexing ¶
func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
func (*TimerLayerUserStore) InferSystemInstallDate ¶
func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)
func (*TimerLayerUserStore) InvalidateProfileCacheForUser ¶
func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)
func (*TimerLayerUserStore) InvalidateProfilesInClassCache ¶
func (s *TimerLayerUserStore) InvalidateProfilesInClassCache(classId string)
func (*TimerLayerUserStore) InvalidateProfilesInClassCacheByUser ¶
func (s *TimerLayerUserStore) InvalidateProfilesInClassCacheByUser(userId string)
func (*TimerLayerUserStore) PermanentDelete ¶
func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError
func (*TimerLayerUserStore) ResetLastPictureUpdate ¶
func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) Update ¶
func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
func (*TimerLayerUserStore) UpdateAuthData ¶
func (*TimerLayerUserStore) UpdateFailedPasswordAttempts ¶
func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
func (*TimerLayerUserStore) UpdateLastPictureUpdate ¶
func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError
func (*TimerLayerUserStore) UpdateMfaActive ¶
func (s *TimerLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError
func (*TimerLayerUserStore) UpdateMfaSecret ¶
func (s *TimerLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError
func (*TimerLayerUserStore) UpdatePassword ¶
func (s *TimerLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError
func (*TimerLayerUserStore) UpdateUpdateAt ¶
func (s *TimerLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)
func (*TimerLayerUserStore) VerifyEmail ¶
type TimerLayerUserTermsOfServiceStore ¶
type TimerLayerUserTermsOfServiceStore struct { UserTermsOfServiceStore Root *TimerLayer }
func (*TimerLayerUserTermsOfServiceStore) Delete ¶
func (s *TimerLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError
func (*TimerLayerUserTermsOfServiceStore) GetByUser ¶
func (s *TimerLayerUserTermsOfServiceStore) GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
func (*TimerLayerUserTermsOfServiceStore) Save ¶
func (s *TimerLayerUserTermsOfServiceStore) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
type TimerLayerWebhookStore ¶
type TimerLayerWebhookStore struct { WebhookStore Root *TimerLayer }
func (*TimerLayerWebhookStore) AnalyticsIncomingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) AnalyticsOutgoingCount ¶
func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
func (*TimerLayerWebhookStore) ClearCaches ¶
func (s *TimerLayerWebhookStore) ClearCaches()
func (*TimerLayerWebhookStore) DeleteIncoming ¶
func (s *TimerLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) DeleteOutgoing ¶
func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError
func (*TimerLayerWebhookStore) GetIncoming ¶
func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByChannel ¶
func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeam ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingList ¶
func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetIncomingListByUser ¶
func (s *TimerLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoing ¶
func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeam ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingList ¶
func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) GetOutgoingListByUser ¶
func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) InvalidateWebhookCache ¶
func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser ¶
func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError
func (*TimerLayerWebhookStore) SaveIncoming ¶
func (s *TimerLayerWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) SaveOutgoing ¶
func (s *TimerLayerWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateIncoming ¶
func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
func (*TimerLayerWebhookStore) UpdateOutgoing ¶
func (s *TimerLayerWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
type TokenStore ¶
type UserAccessTokenStore ¶
type UserAccessTokenStore interface { Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError) DeleteAllForUser(userId string) *model.AppError Delete(tokenId string) *model.AppError Get(tokenId string) (*model.UserAccessToken, *model.AppError) GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError) GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError) GetByUser(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError) Search(term string) ([]*model.UserAccessToken, *model.AppError) UpdateTokenEnable(tokenId string) *model.AppError UpdateTokenDisable(tokenId string) *model.AppError }
type UserGetByIdsOpts ¶
type UserGetByIdsOpts struct { // IsAdmin tracks whether or not the request is being made by an administrator. Does nothing when provided by a client. IsAdmin bool // Restrict to search in a list of teams and channels. Does nothing when provided by a client. ViewRestrictions *model.ViewUsersRestrictions // Since filters the users based on their UpdateAt timestamp. Since int64 }
type UserStore ¶
type UserStore interface { Save(user *model.User) (*model.User, *model.AppError) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError) UpdateLastPictureUpdate(userId string) *model.AppError ResetLastPictureUpdate(userId string) *model.AppError UpdatePassword(userId, newPassword string) *model.AppError UpdateUpdateAt(userId string) (int64, *model.AppError) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError) UpdateMfaSecret(userId, secret string) *model.AppError UpdateMfaActive(userId string, active bool) *model.AppError Get(id string) (*model.User, *model.AppError) GetAll() ([]*model.User, *model.AppError) ClearCaches() InvalidateProfilesInClassCacheByUser(userId string) InvalidateProfilesInClassCache(classId string) GetProfilesInClass(classId string, offset int, limit int) ([]*model.User, *model.AppError) GetProfilesInClassByStatus(classId string, offset int, limit int) ([]*model.User, *model.AppError) GetAllProfilesInClass(classId string, allowFromCache bool) (map[string]*model.User, *model.AppError) GetProfilesNotInClass(branchId string, classId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetProfilesWithoutBranch(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError) InvalidateProfileCacheForUser(userId string) GetByEmail(email string) (*model.User, *model.AppError) GetByAuth(authData *string, authService string) (*model.User, *model.AppError) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError) GetByUsername(username string) (*model.User, *model.AppError) GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError) VerifyEmail(userId, email string) (string, *model.AppError) GetEtagForAllProfiles() string GetEtagForProfiles(branchId string) string UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError GetSystemAdminProfiles() (map[string]*model.User, *model.AppError) PermanentDelete(userId string) *model.AppError AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError) GetRecentlyActiveUsersForBranch(branchId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) GetNewUsersForBranch(branchId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError) AnalyticsGetInactiveUsersCount() (int64, *model.AppError) AnalyticsGetSystemAdminCount() (int64, *model.AppError) ClearAllCustomRoleAssignments() *model.AppError InferSystemInstallDate() (int64, *model.AppError) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError) GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError) Count(options model.UserCountOptions) (int64, *model.AppError) }
type UserTermsOfServiceStore ¶
type UserTermsOfServiceStore interface { GetByUser(userId string) (*model.UserTermsOfService, *model.AppError) Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError) Delete(userId, termsOfServiceId string) *model.AppError }
type WebhookStore ¶
type WebhookStore interface { SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError) GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingListByUser(userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) GetIncomingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError) DeleteIncoming(webhookId string, time int64) *model.AppError PermanentDeleteIncomingByChannel(channelId string) *model.AppError PermanentDeleteIncomingByUser(userId string) *model.AppError SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByChannelByUser(channelId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingListByUser(userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) GetOutgoingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError) DeleteOutgoing(webhookId string, time int64) *model.AppError PermanentDeleteOutgoingByChannel(channelId string) *model.AppError PermanentDeleteOutgoingByUser(userId string) *model.AppError UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError) AnalyticsIncomingCount(teamId string) (int64, *model.AppError) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError) InvalidateWebhookCache(webhook string) ClearCaches() }
Click to show internal directories.
Click to hide internal directories.