store

package
v5.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2020 License: AGPL-3.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 AuditStore interface {
	Save(audit *model.Audit) *model.AppError
	Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)
	PermanentDeleteByUser(userId string) *model.AppError
}

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) Get

func (s *OpenTracingLayerAuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)

func (*OpenTracingLayerAuditStore) PermanentDeleteByUser

func (s *OpenTracingLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError

func (*OpenTracingLayerAuditStore) Save

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) Get

func (*OpenTracingLayerBranchStore) GetActiveMemberCount

func (s *OpenTracingLayerBranchStore) GetActiveMemberCount(branchId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)

func (*OpenTracingLayerBranchStore) GetAll

func (*OpenTracingLayerBranchStore) GetAllForExportAfter

func (s *OpenTracingLayerBranchStore) GetAllForExportAfter(limit int, afterId string) ([]*model.BranchForExport, *model.AppError)

func (*OpenTracingLayerBranchStore) GetAllPage

func (s *OpenTracingLayerBranchStore) GetAllPage(offset int, limit int) ([]*model.Branch, *model.AppError)

func (*OpenTracingLayerBranchStore) GetBranchMembersForExport

func (s *OpenTracingLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)

func (*OpenTracingLayerBranchStore) GetBranchesByScheme

func (s *OpenTracingLayerBranchStore) GetBranchesByScheme(schemeId string, offset int, limit int) ([]*model.Branch, *model.AppError)

func (*OpenTracingLayerBranchStore) GetBranchesByUserId

func (s *OpenTracingLayerBranchStore) GetBranchesByUserId(userId string) ([]*model.Branch, *model.AppError)

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) GetByName

func (s *OpenTracingLayerBranchStore) GetByName(name string) (*model.Branch, *model.AppError)

func (*OpenTracingLayerBranchStore) GetByNames

func (s *OpenTracingLayerBranchStore) GetByNames(name []string) ([]*model.Branch, *model.AppError)

func (*OpenTracingLayerBranchStore) GetBySchoolId

func (s *OpenTracingLayerBranchStore) GetBySchoolId(schoolId string) (*model.Branch, *model.AppError)

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 (s *OpenTracingLayerBranchStore) GetUserBranchIds(userId string, allowFromCache bool) ([]string, *model.AppError)

func (*OpenTracingLayerBranchStore) InvalidateAllBranchIdsForUser

func (s *OpenTracingLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)

func (*OpenTracingLayerBranchStore) MigrateBranchMembers

func (s *OpenTracingLayerBranchStore) MigrateBranchMembers(fromBranchId string, fromUserId string) (map[string]string, *model.AppError)

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) Save

func (*OpenTracingLayerBranchStore) SaveMember

func (s *OpenTracingLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)

func (*OpenTracingLayerBranchStore) Update

func (*OpenTracingLayerBranchStore) UpdateLastBranchIconUpdate

func (s *OpenTracingLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError

func (*OpenTracingLayerBranchStore) UpdateMember

func (*OpenTracingLayerBranchStore) UpdateMembersRole

func (s *OpenTracingLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError

func (*OpenTracingLayerBranchStore) UserBelongsToBranches

func (s *OpenTracingLayerBranchStore) UserBelongsToBranches(userId string, branchIds []string) (bool, *model.AppError)

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 (s *OpenTracingLayerClassStore) CreateDirectClass(userId *model.User, otherUserId *model.User) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) Delete

func (s *OpenTracingLayerClassStore) Delete(classId string, time int64) *model.AppError

func (*OpenTracingLayerClassStore) Get

func (s *OpenTracingLayerClassStore) Get(id string, allowFromCache bool) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetAll

func (s *OpenTracingLayerClassStore) GetAll(branchId string) ([]*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetAllClassMembersForUser

func (s *OpenTracingLayerClassStore) GetAllClassMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)

func (*OpenTracingLayerClassStore) GetAllClassMembersNotifyPropsForClass

func (s *OpenTracingLayerClassStore) GetAllClassMembersNotifyPropsForClass(classId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)

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 (s *OpenTracingLayerClassStore) GetBranchClasses(branchId string) (*model.ClassList, *model.AppError)

func (*OpenTracingLayerClassStore) GetByName

func (s *OpenTracingLayerClassStore) GetByName(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetByNameIncludeDeleted

func (s *OpenTracingLayerClassStore) GetByNameIncludeDeleted(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetByNames

func (s *OpenTracingLayerClassStore) GetByNames(branch_id string, names []string, allowFromCache bool) ([]*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetClassMembersForExport

func (s *OpenTracingLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)

func (*OpenTracingLayerClassStore) GetClassMembersTimezones

func (s *OpenTracingLayerClassStore) GetClassMembersTimezones(classId string) ([]model.StringMap, *model.AppError)

func (*OpenTracingLayerClassStore) GetClasses

func (s *OpenTracingLayerClassStore) GetClasses(branchId string, userId string, includeDeleted bool) (*model.ClassList, *model.AppError)

func (*OpenTracingLayerClassStore) GetClassesBatchForIndexing

func (s *OpenTracingLayerClassStore) GetClassesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetClassesByIds

func (s *OpenTracingLayerClassStore) GetClassesByIds(classIds []string, includeDeleted bool) ([]*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetClassesByScheme

func (s *OpenTracingLayerClassStore) GetClassesByScheme(schemeId string, offset int, limit int) (model.ClassList, *model.AppError)

func (*OpenTracingLayerClassStore) GetDeleted

func (s *OpenTracingLayerClassStore) GetDeleted(branch_id string, offset int, limit int, userId string) (*model.ClassList, *model.AppError)

func (*OpenTracingLayerClassStore) GetDeletedByName

func (s *OpenTracingLayerClassStore) GetDeletedByName(branch_id string, name string) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetFromMaster

func (s *OpenTracingLayerClassStore) GetFromMaster(id string) (*model.Class, *model.AppError)

func (*OpenTracingLayerClassStore) GetMember

func (s *OpenTracingLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)

func (*OpenTracingLayerClassStore) GetMemberCount

func (s *OpenTracingLayerClassStore) GetMemberCount(classId string, allowFromCache bool) (int64, *model.AppError)

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 (s *OpenTracingLayerClassStore) GetMoreClasses(branchId string, userId string, offset int, limit int) (*model.ClassList, *model.AppError)

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 (s *OpenTracingLayerClassStore) MigrateClassMembers(fromClassId string, fromUserId string) (map[string]string, *model.AppError)

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) Save

func (s *OpenTracingLayerClassStore) Save(class *model.Class, maxClassesPerBranch int64) (*model.Class, *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 (*OpenTracingLayerClassStore) SetDeleteAt

func (s *OpenTracingLayerClassStore) SetDeleteAt(classId string, deleteAt int64, updateAt int64) *model.AppError

func (*OpenTracingLayerClassStore) Update

func (*OpenTracingLayerClassStore) UpdateMember

func (*OpenTracingLayerClassStore) UpdateMembersRole

func (s *OpenTracingLayerClassStore) UpdateMembersRole(classID string, userIDs []string) *model.AppError

func (*OpenTracingLayerClassStore) UserBelongsToClasses

func (s *OpenTracingLayerClassStore) UserBelongsToClasses(userId string, classIds []string) (bool, *model.AppError)

type OpenTracingLayerClusterDiscoveryStore

type OpenTracingLayerClusterDiscoveryStore struct {
	ClusterDiscoveryStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerClusterDiscoveryStore) Cleanup

func (*OpenTracingLayerClusterDiscoveryStore) Delete

func (*OpenTracingLayerClusterDiscoveryStore) Exists

func (*OpenTracingLayerClusterDiscoveryStore) GetAll

func (s *OpenTracingLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)

func (*OpenTracingLayerClusterDiscoveryStore) Save

func (*OpenTracingLayerClusterDiscoveryStore) SetLastPingAt

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) Get

func (*OpenTracingLayerCommandStore) GetByTeam

func (s *OpenTracingLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)

func (*OpenTracingLayerCommandStore) GetByTrigger

func (s *OpenTracingLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)

func (*OpenTracingLayerCommandStore) PermanentDeleteByTeam

func (s *OpenTracingLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError

func (*OpenTracingLayerCommandStore) PermanentDeleteByUser

func (s *OpenTracingLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError

func (*OpenTracingLayerCommandStore) Save

func (*OpenTracingLayerCommandStore) Update

type OpenTracingLayerCommandWebhookStore

type OpenTracingLayerCommandWebhookStore struct {
	CommandWebhookStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerCommandWebhookStore) Cleanup

func (*OpenTracingLayerCommandWebhookStore) Get

func (*OpenTracingLayerCommandWebhookStore) Save

func (*OpenTracingLayerCommandWebhookStore) TryUse

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 (*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 (*OpenTracingLayerComplianceStore) Update

type OpenTracingLayerEmojiStore

type OpenTracingLayerEmojiStore struct {
	EmojiStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerEmojiStore) Delete

func (s *OpenTracingLayerEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError

func (*OpenTracingLayerEmojiStore) Get

func (s *OpenTracingLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)

func (*OpenTracingLayerEmojiStore) GetByName

func (s *OpenTracingLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)

func (*OpenTracingLayerEmojiStore) GetList

func (s *OpenTracingLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)

func (*OpenTracingLayerEmojiStore) GetMultipleByName

func (s *OpenTracingLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)

func (*OpenTracingLayerEmojiStore) Save

func (*OpenTracingLayerEmojiStore) Search

func (s *OpenTracingLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)

type OpenTracingLayerFileInfoStore

type OpenTracingLayerFileInfoStore struct {
	FileInfoStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerFileInfoStore) AttachToPost

func (s *OpenTracingLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError

func (*OpenTracingLayerFileInfoStore) ClearCaches

func (s *OpenTracingLayerFileInfoStore) ClearCaches()

func (*OpenTracingLayerFileInfoStore) DeleteForPost

func (s *OpenTracingLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)

func (*OpenTracingLayerFileInfoStore) Get

func (*OpenTracingLayerFileInfoStore) GetByPath

func (*OpenTracingLayerFileInfoStore) GetForPost

func (s *OpenTracingLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)

func (*OpenTracingLayerFileInfoStore) GetForUser

func (s *OpenTracingLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)

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 (s *OpenTracingLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)

func (*OpenTracingLayerFileInfoStore) PermanentDeleteByUser

func (s *OpenTracingLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)

func (*OpenTracingLayerFileInfoStore) Save

type OpenTracingLayerJobStore

type OpenTracingLayerJobStore struct {
	JobStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerJobStore) Delete

func (*OpenTracingLayerJobStore) Get

func (*OpenTracingLayerJobStore) GetAllByStatus

func (s *OpenTracingLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) GetAllByType

func (s *OpenTracingLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) GetAllByTypePage

func (s *OpenTracingLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) GetAllPage

func (s *OpenTracingLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) GetCountByStatusAndType

func (s *OpenTracingLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)

func (*OpenTracingLayerJobStore) GetNewestJobByStatusAndType

func (s *OpenTracingLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) Save

func (*OpenTracingLayerJobStore) UpdateOptimistically

func (s *OpenTracingLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)

func (*OpenTracingLayerJobStore) UpdateStatus

func (s *OpenTracingLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)

func (*OpenTracingLayerJobStore) UpdateStatusOptimistically

func (s *OpenTracingLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)

type OpenTracingLayerLicenseStore

type OpenTracingLayerLicenseStore struct {
	LicenseStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLicenseStore) Get

func (*OpenTracingLayerLicenseStore) Save

type OpenTracingLayerLinkMetadataStore

type OpenTracingLayerLinkMetadataStore struct {
	LinkMetadataStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLinkMetadataStore) Get

func (*OpenTracingLayerLinkMetadataStore) Save

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) GetApp

func (*OpenTracingLayerOAuthStore) GetAppByUser

func (s *OpenTracingLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetApps

func (s *OpenTracingLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetAuthData

func (s *OpenTracingLayerOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetAuthorizedApps

func (s *OpenTracingLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)

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) SaveApp

func (*OpenTracingLayerOAuthStore) SaveAuthData

func (s *OpenTracingLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)

func (*OpenTracingLayerOAuthStore) UpdateAccessData

func (s *OpenTracingLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)

func (*OpenTracingLayerOAuthStore) UpdateApp

type OpenTracingLayerPreferenceStore

type OpenTracingLayerPreferenceStore struct {
	PreferenceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPreferenceStore) CleanupFlagsBatch

func (s *OpenTracingLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)

func (*OpenTracingLayerPreferenceStore) Delete

func (s *OpenTracingLayerPreferenceStore) Delete(userId string, category string, name string) *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 (*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

type OpenTracingLayerReactionStore

type OpenTracingLayerReactionStore struct {
	ReactionStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerReactionStore) BulkGetForPosts

func (s *OpenTracingLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)

func (*OpenTracingLayerReactionStore) Delete

func (*OpenTracingLayerReactionStore) DeleteAllWithEmojiName

func (s *OpenTracingLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError

func (*OpenTracingLayerReactionStore) GetForPost

func (s *OpenTracingLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)

func (*OpenTracingLayerReactionStore) PermanentDeleteBatch

func (s *OpenTracingLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)

func (*OpenTracingLayerReactionStore) Save

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 (s *OpenTracingLayerRoleStore) ClassRolesUnderBranchRole(roleName string) ([]*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) Delete

func (s *OpenTracingLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) Get

func (*OpenTracingLayerRoleStore) GetAll

func (s *OpenTracingLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) GetByName

func (s *OpenTracingLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) GetByNames

func (s *OpenTracingLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) PermanentDeleteAll

func (s *OpenTracingLayerRoleStore) PermanentDeleteAll() *model.AppError

func (*OpenTracingLayerRoleStore) Save

type OpenTracingLayerSchemeStore

type OpenTracingLayerSchemeStore struct {
	SchemeStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSchemeStore) CountByScope

func (s *OpenTracingLayerSchemeStore) CountByScope(scope string) (int64, *model.AppError)

func (*OpenTracingLayerSchemeStore) CountWithoutPermission

func (s *OpenTracingLayerSchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, *model.AppError)

func (*OpenTracingLayerSchemeStore) Delete

func (s *OpenTracingLayerSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)

func (*OpenTracingLayerSchemeStore) Get

func (*OpenTracingLayerSchemeStore) GetAllPage

func (s *OpenTracingLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)

func (*OpenTracingLayerSchemeStore) GetByName

func (s *OpenTracingLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)

func (*OpenTracingLayerSchemeStore) PermanentDeleteAll

func (s *OpenTracingLayerSchemeStore) PermanentDeleteAll() *model.AppError

func (*OpenTracingLayerSchemeStore) Save

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) Get

func (s *OpenTracingLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)

func (*OpenTracingLayerSessionStore) GetSessions

func (s *OpenTracingLayerSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)

func (*OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds

func (s *OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)

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) Save

func (*OpenTracingLayerSessionStore) UpdateDeviceId

func (s *OpenTracingLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)

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

func (s *OpenTracingLayerSessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)

type OpenTracingLayerStatusStore

type OpenTracingLayerStatusStore struct {
	StatusStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerStatusStore) Get

func (*OpenTracingLayerStatusStore) GetByIds

func (s *OpenTracingLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)

func (*OpenTracingLayerStatusStore) GetTotalActiveUsersCount

func (s *OpenTracingLayerStatusStore) GetTotalActiveUsersCount() (int64, *model.AppError)

func (*OpenTracingLayerStatusStore) ResetAll

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 (*OpenTracingLayerSystemStore) GetByName

func (s *OpenTracingLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)

func (*OpenTracingLayerSystemStore) PermanentDeleteByName

func (s *OpenTracingLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)

func (*OpenTracingLayerSystemStore) Save

func (*OpenTracingLayerSystemStore) SaveOrUpdate

func (s *OpenTracingLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError

func (*OpenTracingLayerSystemStore) Update

type OpenTracingLayerTermsOfServiceStore

type OpenTracingLayerTermsOfServiceStore struct {
	TermsOfServiceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTermsOfServiceStore) Get

func (*OpenTracingLayerTermsOfServiceStore) GetLatest

func (s *OpenTracingLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)

func (*OpenTracingLayerTermsOfServiceStore) Save

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 (s *OpenTracingLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)

func (*OpenTracingLayerTokenStore) RemoveAllTokensByType

func (s *OpenTracingLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError

func (*OpenTracingLayerTokenStore) Save

func (s *OpenTracingLayerTokenStore) Save(recovery *model.Token) *model.AppError

type OpenTracingLayerUserAccessTokenStore

type OpenTracingLayerUserAccessTokenStore struct {
	UserAccessTokenStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserAccessTokenStore) Delete

func (*OpenTracingLayerUserAccessTokenStore) DeleteAllForUser

func (s *OpenTracingLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError

func (*OpenTracingLayerUserAccessTokenStore) Get

func (*OpenTracingLayerUserAccessTokenStore) GetAll

func (*OpenTracingLayerUserAccessTokenStore) GetByToken

func (*OpenTracingLayerUserAccessTokenStore) GetByUser

func (s *OpenTracingLayerUserAccessTokenStore) GetByUser(userId string, page int, perPage int) ([]*model.UserAccessToken, *model.AppError)

func (*OpenTracingLayerUserAccessTokenStore) Save

func (*OpenTracingLayerUserAccessTokenStore) Search

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 (*OpenTracingLayerUserStore) Get

func (*OpenTracingLayerUserStore) GetAll

func (s *OpenTracingLayerUserStore) GetAll() ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetAllAfter

func (s *OpenTracingLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetAllProfiles

func (s *OpenTracingLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetAllProfilesInClass

func (s *OpenTracingLayerUserStore) GetAllProfilesInClass(classId string, allowFromCache bool) (map[string]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetAllUsingAuthService

func (s *OpenTracingLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetByAuth

func (s *OpenTracingLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetByEmail

func (s *OpenTracingLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetByUsername

func (s *OpenTracingLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetEtagForAllProfiles

func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string

func (*OpenTracingLayerUserStore) GetEtagForProfiles

func (s *OpenTracingLayerUserStore) GetEtagForProfiles(branchId string) string

func (*OpenTracingLayerUserStore) GetForLogin

func (s *OpenTracingLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)

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 (s *OpenTracingLayerUserStore) GetProfilesInClass(classId string, offset int, limit int) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfilesInClassByStatus

func (s *OpenTracingLayerUserStore) GetProfilesInClassByStatus(classId string, offset int, limit int) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfilesNotInClass

func (s *OpenTracingLayerUserStore) GetProfilesNotInClass(branchId string, classId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

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 (s *OpenTracingLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)

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) Save

func (*OpenTracingLayerUserStore) Update

func (s *OpenTracingLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)

func (*OpenTracingLayerUserStore) UpdateAuthData

func (s *OpenTracingLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)

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

func (s *OpenTracingLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)

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 (*OpenTracingLayerUserTermsOfServiceStore) Save

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 (*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 (*OpenTracingLayerWebhookStore) SaveOutgoing

func (*OpenTracingLayerWebhookStore) UpdateIncoming

func (*OpenTracingLayerWebhookStore) UpdateOutgoing

type OrphanedRecord

type OrphanedRecord struct {
	ParentId *string
	ChildId  *string
}

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 StoreResult struct {
	Data interface{}
	Err  *model.AppError
}

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) Get

func (s *TimerLayerAuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)

func (*TimerLayerAuditStore) PermanentDeleteByUser

func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError

func (*TimerLayerAuditStore) Save

func (s *TimerLayerAuditStore) Save(audit *model.Audit) *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) Get

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 (s *TimerLayerBranchStore) GetAllPage(offset int, limit int) ([]*model.Branch, *model.AppError)

func (*TimerLayerBranchStore) GetBranchMembersForExport

func (s *TimerLayerBranchStore) GetBranchMembersForExport(userId string) ([]*model.BranchMemberForExport, *model.AppError)

func (*TimerLayerBranchStore) GetBranchesByScheme

func (s *TimerLayerBranchStore) GetBranchesByScheme(schemeId string, offset int, limit int) ([]*model.Branch, *model.AppError)

func (*TimerLayerBranchStore) GetBranchesByUserId

func (s *TimerLayerBranchStore) GetBranchesByUserId(userId string) ([]*model.Branch, *model.AppError)

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) GetByName

func (s *TimerLayerBranchStore) GetByName(name string) (*model.Branch, *model.AppError)

func (*TimerLayerBranchStore) GetByNames

func (s *TimerLayerBranchStore) GetByNames(name []string) ([]*model.Branch, *model.AppError)

func (*TimerLayerBranchStore) GetBySchoolId

func (s *TimerLayerBranchStore) GetBySchoolId(schoolId string) (*model.Branch, *model.AppError)

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 (s *TimerLayerBranchStore) GetUserBranchIds(userId string, allowFromCache bool) ([]string, *model.AppError)

func (*TimerLayerBranchStore) InvalidateAllBranchIdsForUser

func (s *TimerLayerBranchStore) InvalidateAllBranchIdsForUser(userId string)

func (*TimerLayerBranchStore) MigrateBranchMembers

func (s *TimerLayerBranchStore) MigrateBranchMembers(fromBranchId string, fromUserId string) (map[string]string, *model.AppError)

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) Save

func (*TimerLayerBranchStore) SaveMember

func (s *TimerLayerBranchStore) SaveMember(member *model.BranchMember, maxUsersPerBranch int) (*model.BranchMember, *model.AppError)

func (*TimerLayerBranchStore) Update

func (s *TimerLayerBranchStore) Update(branch *model.Branch) (*model.Branch, *model.AppError)

func (*TimerLayerBranchStore) UpdateLastBranchIconUpdate

func (s *TimerLayerBranchStore) UpdateLastBranchIconUpdate(branchId string, curTime int64) *model.AppError

func (*TimerLayerBranchStore) UpdateMember

func (*TimerLayerBranchStore) UpdateMembersRole

func (s *TimerLayerBranchStore) UpdateMembersRole(branchID string, userIDs []string) *model.AppError

func (*TimerLayerBranchStore) UserBelongsToBranches

func (s *TimerLayerBranchStore) UserBelongsToBranches(userId string, branchIds []string) (bool, *model.AppError)

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 (s *TimerLayerClassStore) CreateDirectClass(userId *model.User, otherUserId *model.User) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) Delete

func (s *TimerLayerClassStore) Delete(classId string, time int64) *model.AppError

func (*TimerLayerClassStore) Get

func (s *TimerLayerClassStore) Get(id string, allowFromCache bool) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetAll

func (s *TimerLayerClassStore) GetAll(branchId string) ([]*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetAllClassMembersForUser

func (s *TimerLayerClassStore) GetAllClassMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)

func (*TimerLayerClassStore) GetAllClassMembersNotifyPropsForClass

func (s *TimerLayerClassStore) GetAllClassMembersNotifyPropsForClass(classId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)

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 (s *TimerLayerClassStore) GetBranchClasses(branchId string) (*model.ClassList, *model.AppError)

func (*TimerLayerClassStore) GetByName

func (s *TimerLayerClassStore) GetByName(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetByNameIncludeDeleted

func (s *TimerLayerClassStore) GetByNameIncludeDeleted(branch_id string, name string, allowFromCache bool) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetByNames

func (s *TimerLayerClassStore) GetByNames(branch_id string, names []string, allowFromCache bool) ([]*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetClassMembersForExport

func (s *TimerLayerClassStore) GetClassMembersForExport(userId string, branchId string) ([]*model.ClassMemberForExport, *model.AppError)

func (*TimerLayerClassStore) GetClassMembersTimezones

func (s *TimerLayerClassStore) GetClassMembersTimezones(classId string) ([]model.StringMap, *model.AppError)

func (*TimerLayerClassStore) GetClasses

func (s *TimerLayerClassStore) GetClasses(branchId string, userId string, includeDeleted bool) (*model.ClassList, *model.AppError)

func (*TimerLayerClassStore) GetClassesBatchForIndexing

func (s *TimerLayerClassStore) GetClassesBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetClassesByIds

func (s *TimerLayerClassStore) GetClassesByIds(classIds []string, includeDeleted bool) ([]*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetClassesByScheme

func (s *TimerLayerClassStore) GetClassesByScheme(schemeId string, offset int, limit int) (model.ClassList, *model.AppError)

func (*TimerLayerClassStore) GetDeleted

func (s *TimerLayerClassStore) GetDeleted(branch_id string, offset int, limit int, userId string) (*model.ClassList, *model.AppError)

func (*TimerLayerClassStore) GetDeletedByName

func (s *TimerLayerClassStore) GetDeletedByName(branch_id string, name string) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetFromMaster

func (s *TimerLayerClassStore) GetFromMaster(id string) (*model.Class, *model.AppError)

func (*TimerLayerClassStore) GetMember

func (s *TimerLayerClassStore) GetMember(classId string, userId string) (*model.ClassMember, *model.AppError)

func (*TimerLayerClassStore) GetMemberCount

func (s *TimerLayerClassStore) GetMemberCount(classId string, allowFromCache bool) (int64, *model.AppError)

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 (s *TimerLayerClassStore) GetMoreClasses(branchId string, userId string, offset int, limit int) (*model.ClassList, *model.AppError)

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 (s *TimerLayerClassStore) MigrateClassMembers(fromClassId string, fromUserId string) (map[string]string, *model.AppError)

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) Save

func (s *TimerLayerClassStore) Save(class *model.Class, maxClassesPerBranch int64) (*model.Class, *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 (*TimerLayerClassStore) SetDeleteAt

func (s *TimerLayerClassStore) SetDeleteAt(classId string, deleteAt int64, updateAt int64) *model.AppError

func (*TimerLayerClassStore) Update

func (s *TimerLayerClassStore) Update(class *model.Class) (*model.Class, *model.AppError)

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

func (s *TimerLayerClassStore) UserBelongsToClasses(userId string, classIds []string) (bool, *model.AppError)

type TimerLayerClusterDiscoveryStore

type TimerLayerClusterDiscoveryStore struct {
	ClusterDiscoveryStore
	Root *TimerLayer
}

func (*TimerLayerClusterDiscoveryStore) Cleanup

func (*TimerLayerClusterDiscoveryStore) Delete

func (*TimerLayerClusterDiscoveryStore) Exists

func (*TimerLayerClusterDiscoveryStore) GetAll

func (s *TimerLayerClusterDiscoveryStore) GetAll(discoveryType string, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)

func (*TimerLayerClusterDiscoveryStore) Save

func (*TimerLayerClusterDiscoveryStore) SetLastPingAt

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) Get

func (*TimerLayerCommandStore) GetByTeam

func (s *TimerLayerCommandStore) GetByTeam(teamId string) ([]*model.Command, *model.AppError)

func (*TimerLayerCommandStore) GetByTrigger

func (s *TimerLayerCommandStore) GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)

func (*TimerLayerCommandStore) PermanentDeleteByTeam

func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamId string) *model.AppError

func (*TimerLayerCommandStore) PermanentDeleteByUser

func (s *TimerLayerCommandStore) PermanentDeleteByUser(userId string) *model.AppError

func (*TimerLayerCommandStore) Save

func (*TimerLayerCommandStore) Update

type TimerLayerCommandWebhookStore

type TimerLayerCommandWebhookStore struct {
	CommandWebhookStore
	Root *TimerLayer
}

func (*TimerLayerCommandWebhookStore) Cleanup

func (s *TimerLayerCommandWebhookStore) Cleanup()

func (*TimerLayerCommandWebhookStore) Get

func (*TimerLayerCommandWebhookStore) Save

func (*TimerLayerCommandWebhookStore) TryUse

func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) *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 (*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 (*TimerLayerComplianceStore) Update

type TimerLayerEmojiStore

type TimerLayerEmojiStore struct {
	EmojiStore
	Root *TimerLayer
}

func (*TimerLayerEmojiStore) Delete

func (s *TimerLayerEmojiStore) Delete(emoji *model.Emoji, time int64) *model.AppError

func (*TimerLayerEmojiStore) Get

func (s *TimerLayerEmojiStore) Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)

func (*TimerLayerEmojiStore) GetByName

func (s *TimerLayerEmojiStore) GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)

func (*TimerLayerEmojiStore) GetList

func (s *TimerLayerEmojiStore) GetList(offset int, limit int, sort string) ([]*model.Emoji, *model.AppError)

func (*TimerLayerEmojiStore) GetMultipleByName

func (s *TimerLayerEmojiStore) GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)

func (*TimerLayerEmojiStore) Save

func (s *TimerLayerEmojiStore) Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)

func (*TimerLayerEmojiStore) Search

func (s *TimerLayerEmojiStore) Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)

type TimerLayerFileInfoStore

type TimerLayerFileInfoStore struct {
	FileInfoStore
	Root *TimerLayer
}

func (*TimerLayerFileInfoStore) AttachToPost

func (s *TimerLayerFileInfoStore) AttachToPost(fileId string, postId string, creatorId string) *model.AppError

func (*TimerLayerFileInfoStore) ClearCaches

func (s *TimerLayerFileInfoStore) ClearCaches()

func (*TimerLayerFileInfoStore) DeleteForPost

func (s *TimerLayerFileInfoStore) DeleteForPost(postId string) (string, *model.AppError)

func (*TimerLayerFileInfoStore) Get

func (*TimerLayerFileInfoStore) GetByPath

func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, *model.AppError)

func (*TimerLayerFileInfoStore) GetForPost

func (s *TimerLayerFileInfoStore) GetForPost(postId string, readFromMaster bool, includeDeleted bool, allowFromCache bool) ([]*model.FileInfo, *model.AppError)

func (*TimerLayerFileInfoStore) GetForUser

func (s *TimerLayerFileInfoStore) GetForUser(userId string) ([]*model.FileInfo, *model.AppError)

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 (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)

func (*TimerLayerFileInfoStore) PermanentDeleteByUser

func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userId string) (int64, *model.AppError)

func (*TimerLayerFileInfoStore) Save

type TimerLayerJobStore

type TimerLayerJobStore struct {
	JobStore
	Root *TimerLayer
}

func (*TimerLayerJobStore) Delete

func (s *TimerLayerJobStore) Delete(id string) (string, *model.AppError)

func (*TimerLayerJobStore) Get

func (s *TimerLayerJobStore) Get(id string) (*model.Job, *model.AppError)

func (*TimerLayerJobStore) GetAllByStatus

func (s *TimerLayerJobStore) GetAllByStatus(status string) ([]*model.Job, *model.AppError)

func (*TimerLayerJobStore) GetAllByType

func (s *TimerLayerJobStore) GetAllByType(jobType string) ([]*model.Job, *model.AppError)

func (*TimerLayerJobStore) GetAllByTypePage

func (s *TimerLayerJobStore) GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)

func (*TimerLayerJobStore) GetAllPage

func (s *TimerLayerJobStore) GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)

func (*TimerLayerJobStore) GetCountByStatusAndType

func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)

func (*TimerLayerJobStore) GetNewestJobByStatusAndType

func (s *TimerLayerJobStore) GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)

func (*TimerLayerJobStore) Save

func (s *TimerLayerJobStore) Save(job *model.Job) (*model.Job, *model.AppError)

func (*TimerLayerJobStore) UpdateOptimistically

func (s *TimerLayerJobStore) UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)

func (*TimerLayerJobStore) UpdateStatus

func (s *TimerLayerJobStore) UpdateStatus(id string, status string) (*model.Job, *model.AppError)

func (*TimerLayerJobStore) UpdateStatusOptimistically

func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)

type TimerLayerLicenseStore

type TimerLayerLicenseStore struct {
	LicenseStore
	Root *TimerLayer
}

func (*TimerLayerLicenseStore) Get

func (*TimerLayerLicenseStore) Save

type TimerLayerLinkMetadataStore

type TimerLayerLinkMetadataStore struct {
	LinkMetadataStore
	Root *TimerLayer
}

func (*TimerLayerLinkMetadataStore) Get

func (*TimerLayerLinkMetadataStore) Save

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) GetApp

func (*TimerLayerOAuthStore) GetAppByUser

func (s *TimerLayerOAuthStore) GetAppByUser(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)

func (*TimerLayerOAuthStore) GetApps

func (s *TimerLayerOAuthStore) GetApps(offset int, limit int) ([]*model.OAuthApp, *model.AppError)

func (*TimerLayerOAuthStore) GetAuthData

func (s *TimerLayerOAuthStore) GetAuthData(code string) (*model.AuthData, *model.AppError)

func (*TimerLayerOAuthStore) GetAuthorizedApps

func (s *TimerLayerOAuthStore) GetAuthorizedApps(userId string, offset int, limit int) ([]*model.OAuthApp, *model.AppError)

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) SaveApp

func (*TimerLayerOAuthStore) SaveAuthData

func (s *TimerLayerOAuthStore) SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)

func (*TimerLayerOAuthStore) UpdateAccessData

func (s *TimerLayerOAuthStore) UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)

func (*TimerLayerOAuthStore) UpdateApp

type TimerLayerPreferenceStore

type TimerLayerPreferenceStore struct {
	PreferenceStore
	Root *TimerLayer
}

func (*TimerLayerPreferenceStore) CleanupFlagsBatch

func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, *model.AppError)

func (*TimerLayerPreferenceStore) Delete

func (s *TimerLayerPreferenceStore) Delete(userId string, category string, name string) *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 (*TimerLayerPreferenceStore) GetCategory

func (s *TimerLayerPreferenceStore) GetCategory(userId string, category string) (model.Preferences, *model.AppError)

func (*TimerLayerPreferenceStore) PermanentDeleteByUser

func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userId string) *model.AppError

func (*TimerLayerPreferenceStore) Save

func (s *TimerLayerPreferenceStore) Save(preferences *model.Preferences) *model.AppError

type TimerLayerReactionStore

type TimerLayerReactionStore struct {
	ReactionStore
	Root *TimerLayer
}

func (*TimerLayerReactionStore) BulkGetForPosts

func (s *TimerLayerReactionStore) BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)

func (*TimerLayerReactionStore) Delete

func (*TimerLayerReactionStore) DeleteAllWithEmojiName

func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) *model.AppError

func (*TimerLayerReactionStore) GetForPost

func (s *TimerLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)

func (*TimerLayerReactionStore) PermanentDeleteBatch

func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)

func (*TimerLayerReactionStore) Save

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 (s *TimerLayerRoleStore) ClassRolesUnderBranchRole(roleName string) ([]*model.Role, *model.AppError)

func (*TimerLayerRoleStore) Delete

func (s *TimerLayerRoleStore) Delete(roleId string) (*model.Role, *model.AppError)

func (*TimerLayerRoleStore) Get

func (s *TimerLayerRoleStore) Get(roleId string) (*model.Role, *model.AppError)

func (*TimerLayerRoleStore) GetAll

func (s *TimerLayerRoleStore) GetAll() ([]*model.Role, *model.AppError)

func (*TimerLayerRoleStore) GetByName

func (s *TimerLayerRoleStore) GetByName(name string) (*model.Role, *model.AppError)

func (*TimerLayerRoleStore) GetByNames

func (s *TimerLayerRoleStore) GetByNames(names []string) ([]*model.Role, *model.AppError)

func (*TimerLayerRoleStore) PermanentDeleteAll

func (s *TimerLayerRoleStore) PermanentDeleteAll() *model.AppError

func (*TimerLayerRoleStore) Save

func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, *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 (s *TimerLayerSchemeStore) CountWithoutPermission(scope string, permissionID string, roleScope model.RoleScope, roleType model.RoleType) (int64, *model.AppError)

func (*TimerLayerSchemeStore) Delete

func (s *TimerLayerSchemeStore) Delete(schemeId string) (*model.Scheme, *model.AppError)

func (*TimerLayerSchemeStore) Get

func (s *TimerLayerSchemeStore) Get(schemeId string) (*model.Scheme, *model.AppError)

func (*TimerLayerSchemeStore) GetAllPage

func (s *TimerLayerSchemeStore) GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)

func (*TimerLayerSchemeStore) GetByName

func (s *TimerLayerSchemeStore) GetByName(schemeName string) (*model.Scheme, *model.AppError)

func (*TimerLayerSchemeStore) PermanentDeleteAll

func (s *TimerLayerSchemeStore) PermanentDeleteAll() *model.AppError

func (*TimerLayerSchemeStore) Save

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) Get

func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, *model.AppError)

func (*TimerLayerSessionStore) GetSessions

func (s *TimerLayerSessionStore) GetSessions(userId string) ([]*model.Session, *model.AppError)

func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds

func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)

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) Save

func (*TimerLayerSessionStore) UpdateDeviceId

func (s *TimerLayerSessionStore) UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)

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

func (s *TimerLayerSessionStore) UpdateRoles(userId string, roles string) (string, *model.AppError)

type TimerLayerStatusStore

type TimerLayerStatusStore struct {
	StatusStore
	Root *TimerLayer
}

func (*TimerLayerStatusStore) Get

func (s *TimerLayerStatusStore) Get(userId string) (*model.Status, *model.AppError)

func (*TimerLayerStatusStore) GetByIds

func (s *TimerLayerStatusStore) GetByIds(userIds []string) ([]*model.Status, *model.AppError)

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 (*TimerLayerSystemStore) GetByName

func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.AppError)

func (*TimerLayerSystemStore) PermanentDeleteByName

func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError)

func (*TimerLayerSystemStore) Save

func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError

func (*TimerLayerSystemStore) SaveOrUpdate

func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError

func (*TimerLayerSystemStore) Update

func (s *TimerLayerSystemStore) Update(system *model.System) *model.AppError

type TimerLayerTermsOfServiceStore

type TimerLayerTermsOfServiceStore struct {
	TermsOfServiceStore
	Root *TimerLayer
}

func (*TimerLayerTermsOfServiceStore) Get

func (*TimerLayerTermsOfServiceStore) GetLatest

func (s *TimerLayerTermsOfServiceStore) GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)

func (*TimerLayerTermsOfServiceStore) Save

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 (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)

func (*TimerLayerTokenStore) RemoveAllTokensByType

func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) *model.AppError

func (*TimerLayerTokenStore) Save

func (s *TimerLayerTokenStore) Save(recovery *model.Token) *model.AppError

type TimerLayerUserAccessTokenStore

type TimerLayerUserAccessTokenStore struct {
	UserAccessTokenStore
	Root *TimerLayer
}

func (*TimerLayerUserAccessTokenStore) Delete

func (*TimerLayerUserAccessTokenStore) DeleteAllForUser

func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userId string) *model.AppError

func (*TimerLayerUserAccessTokenStore) Get

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 (*TimerLayerUserAccessTokenStore) Search

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 (*TimerLayerUserStore) Get

func (*TimerLayerUserStore) GetAll

func (s *TimerLayerUserStore) GetAll() ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetAllAfter

func (s *TimerLayerUserStore) GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetAllProfiles

func (s *TimerLayerUserStore) GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetAllProfilesInClass

func (s *TimerLayerUserStore) GetAllProfilesInClass(classId string, allowFromCache bool) (map[string]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetAllUsingAuthService

func (s *TimerLayerUserStore) GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetByAuth

func (s *TimerLayerUserStore) GetByAuth(authData *string, authService string) (*model.User, *model.AppError)

func (*TimerLayerUserStore) GetByEmail

func (s *TimerLayerUserStore) GetByEmail(email string) (*model.User, *model.AppError)

func (*TimerLayerUserStore) GetByUsername

func (s *TimerLayerUserStore) GetByUsername(username string) (*model.User, *model.AppError)

func (*TimerLayerUserStore) GetEtagForAllProfiles

func (s *TimerLayerUserStore) GetEtagForAllProfiles() string

func (*TimerLayerUserStore) GetEtagForProfiles

func (s *TimerLayerUserStore) GetEtagForProfiles(branchId string) string

func (*TimerLayerUserStore) GetForLogin

func (s *TimerLayerUserStore) GetForLogin(loginId string, allowSignInWithUsername bool, allowSignInWithEmail bool) (*model.User, *model.AppError)

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 (s *TimerLayerUserStore) GetProfilesInClass(classId string, offset int, limit int) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetProfilesInClassByStatus

func (s *TimerLayerUserStore) GetProfilesInClassByStatus(classId string, offset int, limit int) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetProfilesNotInClass

func (s *TimerLayerUserStore) GetProfilesNotInClass(branchId string, classId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

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 (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)

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) Save

func (s *TimerLayerUserStore) Save(user *model.User) (*model.User, *model.AppError)

func (*TimerLayerUserStore) Update

func (s *TimerLayerUserStore) Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)

func (*TimerLayerUserStore) UpdateAuthData

func (s *TimerLayerUserStore) UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)

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

func (s *TimerLayerUserStore) VerifyEmail(userId string, email string) (string, *model.AppError)

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 (*TimerLayerUserTermsOfServiceStore) Save

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 (*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 (*TimerLayerWebhookStore) SaveOutgoing

func (*TimerLayerWebhookStore) UpdateIncoming

func (*TimerLayerWebhookStore) UpdateOutgoing

type TokenStore

type TokenStore interface {
	Save(recovery *model.Token) *model.AppError
	Delete(token string) *model.AppError
	GetByToken(token string) (*model.Token, *model.AppError)
	Cleanup()
	RemoveAllTokensByType(tokenType string) *model.AppError
}

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()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL