store

package
v5.25.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: AGPL-3.0, Apache-2.0 Imports: 8 Imported by: 62

Documentation

Index

Constants

View Source
const (
	MISSING_CHANNEL_ERROR        = "store.sql_channel.get_by_name.missing.app_error"
	MISSING_CHANNEL_MEMBER_ERROR = "store.sql_channel.get_member.missing.app_error"
	CHANNEL_EXISTS_ERROR         = "store.sql_channel.save_channel.exists.app_error"

	MISSING_ACCOUNT_ERROR      = "store.sql_user.missing_account.const"
	MISSING_AUTH_ACCOUNT_ERROR = "store.sql_user.get_by_auth.missing_account.app_error"

	USER_SEARCH_OPTION_NAMES_ONLY              = "names_only"
	USER_SEARCH_OPTION_NAMES_ONLY_NO_FULL_NAME = "names_only_no_full_name"
	USER_SEARCH_OPTION_ALL_NO_FULL_NAME        = "all_no_full_name"
	USER_SEARCH_OPTION_ALLOW_INACTIVE          = "allow_inactive"

	FEATURE_TOGGLE_PREFIX = "feature_enabled_"
)

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 BotStore

type BotStore interface {
	Get(userId string, includeDeleted bool) (*model.Bot, error)
	GetAll(options *model.BotGetOptions) ([]*model.Bot, error)
	Save(bot *model.Bot) (*model.Bot, error)
	Update(bot *model.Bot) (*model.Bot, error)
	PermanentDelete(userId string) error
}

type ChannelMemberHistoryStore

type ChannelMemberHistoryStore interface {
	LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError
	LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError
	GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
}

type ChannelSearchOpts

type ChannelSearchOpts struct {
	NotAssociatedToGroup string
	IncludeDeleted       bool
	ExcludeChannelNames  []string
	Page                 *int
	PerPage              *int
}

ChannelSearchOpts contains options for searching channels.

NotAssociatedToGroup will exclude channels that have associated, active GroupChannels records. IncludeDeleted will include channel records where DeleteAt != 0. ExcludeChannelNames will exclude channels from the results by name. Paginate whether to paginate the results. Page page requested, if results are paginated. PerPage number of results per page, if paginated.

func (*ChannelSearchOpts) IsPaginated

func (c *ChannelSearchOpts) IsPaginated() bool

type ChannelStore

type ChannelStore interface {
	Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)
	CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error)
	SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)
	Update(channel *model.Channel) (*model.Channel, *model.AppError)
	Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)
	InvalidateChannel(id string)
	InvalidateChannelByName(teamId, name string)
	GetFromMaster(id string) (*model.Channel, *model.AppError)
	Delete(channelId string, time int64) *model.AppError
	Restore(channelId string, time int64) *model.AppError
	SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError
	PermanentDelete(channelId string) *model.AppError
	PermanentDeleteByTeam(teamId string) *model.AppError
	GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
	GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)
	GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
	GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
	GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
	GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	GetAllChannels(page, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
	GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)
	GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
	GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
	GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
	GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
	GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
	GetAll(teamId string) ([]*model.Channel, *model.AppError)
	GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError)
	GetForPost(postId string) (*model.Channel, *model.AppError)
	SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
	SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
	UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
	UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)
	GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError)
	GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
	GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
	GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
	InvalidateAllChannelMembersForUser(userId string)
	IsUserInChannelUseCache(userId string, channelId string) bool
	GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
	InvalidateCacheForChannelMembersNotifyProps(channelId string)
	GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
	InvalidateMemberCount(channelId string)
	GetMemberCountFromCache(channelId string) int64
	GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
	GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)
	InvalidatePinnedPostCount(channelId string)
	GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)
	InvalidateGuestCount(channelId string)
	GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)
	GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)
	RemoveMember(channelId string, userId string) *model.AppError
	RemoveMembers(channelId string, userIds []string) *model.AppError
	PermanentDeleteMembersByUser(userId string) *model.AppError
	PermanentDeleteMembersByChannel(channelId string) *model.AppError
	UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)
	UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)
	CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)
	IncrementMentionCount(channelId string, userId string) *model.AppError
	AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)
	GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)
	GetMembersForUserWithPagination(teamId, userId string, page, perPage int) (*model.ChannelMembers, *model.AppError)
	AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	SearchAllChannels(term string, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, int64, *model.AppError)
	SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)
	SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)
	SearchGroupChannels(userId, term string) (*model.ChannelList, *model.AppError)
	GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)
	AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)
	GetChannelUnread(channelId, userId string) (*model.ChannelUnread, *model.AppError)
	ClearCaches()
	GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)
	MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)
	ResetAllChannelSchemes() *model.AppError
	ClearAllCustomRoleAssignments() *model.AppError
	MigratePublicChannels() error
	GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)
	GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)
	GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)
	RemoveAllDeactivatedMembers(channelId string) *model.AppError
	GetChannelsBatchForIndexing(startTime, endTime int64, limit int) ([]*model.Channel, *model.AppError)
	UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)

	// UpdateMembersRole sets all of the given team members to admins and all of the other members of the team to
	// non-admin members.
	UpdateMembersRole(channelID string, userIDs []string) *model.AppError

	// GroupSyncedChannelCount returns the count of non-deleted group-constrained channels.
	GroupSyncedChannelCount() (int64, *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 ErrConflict added in v5.24.0

type ErrConflict struct {
	Resource string // The resource which created the conflict.
	// contains filtered or unexported fields
}

ErrConflict indicates a conflict that occured.

func NewErrConflict added in v5.24.0

func NewErrConflict(resource string, err error, meta string) *ErrConflict

func (*ErrConflict) Error added in v5.24.0

func (e *ErrConflict) Error() string

func (*ErrConflict) Unwrap added in v5.24.0

func (e *ErrConflict) Unwrap() error

type ErrInvalidInput added in v5.24.0

type ErrInvalidInput struct {
	Entity string      // The entity which was sent as the input.
	Field  string      // The field of the entity which was invalid.
	Value  interface{} // The actual value of the field.
}

ErrInvalidInput indicates an error that has occured due to an invalid input.

func NewErrInvalidInput added in v5.24.0

func NewErrInvalidInput(entity, field string, value interface{}) *ErrInvalidInput

func (*ErrInvalidInput) Error added in v5.24.0

func (e *ErrInvalidInput) Error() string

type ErrLimitExceeded added in v5.24.0

type ErrLimitExceeded struct {
	What  string // What was the object that exceeded.
	Count int    // The value of the object.
	// contains filtered or unexported fields
}

ErrLimitExceeded indicates an error that has occured because some value exceeded a limit.

func NewErrLimitExceeded added in v5.24.0

func NewErrLimitExceeded(what string, count int, meta string) *ErrLimitExceeded

func (*ErrLimitExceeded) Error added in v5.24.0

func (e *ErrLimitExceeded) Error() string

type ErrNotFound added in v5.24.0

type ErrNotFound struct {
	Id string
	// contains filtered or unexported fields
}

ErrNotFound indicates that a resource was not found

func NewErrNotFound added in v5.24.0

func NewErrNotFound(resource, id string) *ErrNotFound

func (*ErrNotFound) Error added in v5.24.0

func (e *ErrNotFound) Error() string

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 GroupStore

type GroupStore interface {
	Create(group *model.Group) (*model.Group, *model.AppError)
	Get(groupID string) (*model.Group, *model.AppError)
	GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)
	GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
	GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
	GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
	GetByUser(userId string) ([]*model.Group, *model.AppError)
	Update(group *model.Group) (*model.Group, *model.AppError)
	Delete(groupID string) (*model.Group, *model.AppError)

	GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
	GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
	GetMemberCount(groupID string) (int64, *model.AppError)

	GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError)
	GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError)

	UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
	DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
	PermanentDeleteMembersByUser(userId string) *model.AppError

	CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
	GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)
	GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)
	UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)
	DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)

	// TeamMembersToAdd returns a slice of UserTeamIDPair that need newly created memberships
	// based on the groups configurations. The returned list can be optionally scoped to a single given team.
	//
	// Typically since will be the last successful group sync time.
	TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)

	// ChannelMembersToAdd returns a slice of UserChannelIDPair that need newly created memberships
	// based on the groups configurations. The returned list can be optionally scoped to a single given channel.
	//
	// Typically since will be the last successful group sync time.
	ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)

	// TeamMembersToRemove returns all team members that should be removed based on group constraints.
	TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)

	// ChannelMembersToRemove returns all channel members that should be removed based on group constraints.
	ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)

	GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
	CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)

	GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)
	GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)
	CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)

	GetGroups(page, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)

	TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
	CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)
	ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page, perPage int) ([]*model.UserWithGroups, *model.AppError)
	CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)

	// AdminRoleGroupsForSyncableMember returns the IDs of all of the groups that the user is a member of that are
	// configured as SchemeAdmin: true for the given syncable.
	AdminRoleGroupsForSyncableMember(userID, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

	// PermittedSyncableAdmins returns the IDs of all of the user who are permitted by the group syncable to have
	// the admin role for the given syncable.
	PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

	// GroupCount returns the total count of records in the UserGroups table.
	GroupCount() (int64, *model.AppError)

	// GroupTeamCount returns the total count of records in the GroupTeams table.
	GroupTeamCount() (int64, *model.AppError)

	// GroupChannelCount returns the total count of records in the GroupChannels table.
	GroupChannelCount() (int64, *model.AppError)

	// GroupMemberCount returns the total count of records in the GroupMembers table.
	GroupMemberCount() (int64, *model.AppError)

	// DistinctGroupMemberCount returns the count of records in the GroupMembers table with distinct UserId values.
	DistinctGroupMemberCount() (int64, *model.AppError)

	// GroupCountWithAllowReference returns the count of records in the Groups table with AllowReference set to true.
	GroupCountWithAllowReference() (int64, *model.AppError)
}

type IntegrityCheckResult

type IntegrityCheckResult struct {
	Data interface{}
	Err  error
}

type JobStore

type JobStore interface {
	Save(job *model.Job) (*model.Job, *model.AppError)
	UpdateOptimistically(job *model.Job, currentStatus string) (bool, *model.AppError)
	UpdateStatus(id string, status string) (*model.Job, *model.AppError)
	UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, *model.AppError)
	Get(id string) (*model.Job, *model.AppError)
	GetAllPage(offset int, limit int) ([]*model.Job, *model.AppError)
	GetAllByType(jobType string) ([]*model.Job, *model.AppError)
	GetAllByTypePage(jobType string, offset int, limit int) ([]*model.Job, *model.AppError)
	GetAllByStatus(status string) ([]*model.Job, *model.AppError)
	GetNewestJobByStatusAndType(status string, jobType string) (*model.Job, *model.AppError)
	GetCountByStatusAndType(status string, jobType string) (int64, *model.AppError)
	Delete(id string) (string, *model.AppError)
}

type LicenseStore

type LicenseStore interface {
	Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError)
	Get(id string) (*model.LicenseRecord, *model.AppError)
}

type LinkMetadataStore

type LinkMetadataStore interface {
	Save(linkMetadata *model.LinkMetadata) (*model.LinkMetadata, *model.AppError)
	Get(url string, timestamp int64) (*model.LinkMetadata, *model.AppError)
}

type OAuthStore

type OAuthStore interface {
	SaveApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
	UpdateApp(app *model.OAuthApp) (*model.OAuthApp, *model.AppError)
	GetApp(id string) (*model.OAuthApp, *model.AppError)
	GetAppByUser(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError)
	GetApps(offset, limit int) ([]*model.OAuthApp, *model.AppError)
	GetAuthorizedApps(userId string, offset, limit int) ([]*model.OAuthApp, *model.AppError)
	DeleteApp(id string) *model.AppError
	SaveAuthData(authData *model.AuthData) (*model.AuthData, *model.AppError)
	GetAuthData(code string) (*model.AuthData, *model.AppError)
	RemoveAuthData(code string) *model.AppError
	PermanentDeleteAuthDataByUser(userId string) *model.AppError
	SaveAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
	UpdateAccessData(accessData *model.AccessData) (*model.AccessData, *model.AppError)
	GetAccessData(token string) (*model.AccessData, *model.AppError)
	GetAccessDataByUserForApp(userId, clientId string) ([]*model.AccessData, *model.AppError)
	GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)
	GetPreviousAccessData(userId, clientId string) (*model.AccessData, *model.AppError)
	RemoveAccessData(token string) *model.AppError
	RemoveAllAccessData() *model.AppError
}

type OpenTracingLayer added in v5.22.0

type OpenTracingLayer struct {
	Store
	AuditStore                AuditStore
	BotStore                  BotStore
	ChannelStore              ChannelStore
	ChannelMemberHistoryStore ChannelMemberHistoryStore
	ClusterDiscoveryStore     ClusterDiscoveryStore
	CommandStore              CommandStore
	CommandWebhookStore       CommandWebhookStore
	ComplianceStore           ComplianceStore
	EmojiStore                EmojiStore
	FileInfoStore             FileInfoStore
	GroupStore                GroupStore
	JobStore                  JobStore
	LicenseStore              LicenseStore
	LinkMetadataStore         LinkMetadataStore
	OAuthStore                OAuthStore
	PluginStore               PluginStore
	PostStore                 PostStore
	PreferenceStore           PreferenceStore
	ReactionStore             ReactionStore
	RoleStore                 RoleStore
	SchemeStore               SchemeStore
	SessionStore              SessionStore
	StatusStore               StatusStore
	SystemStore               SystemStore
	TeamStore                 TeamStore
	TermsOfServiceStore       TermsOfServiceStore
	TokenStore                TokenStore
	UserStore                 UserStore
	UserAccessTokenStore      UserAccessTokenStore
	UserTermsOfServiceStore   UserTermsOfServiceStore
	WebhookStore              WebhookStore
}

func NewOpenTracingLayer added in v5.22.0

func NewOpenTracingLayer(childStore Store, ctx context.Context) *OpenTracingLayer

func (*OpenTracingLayer) Audit added in v5.22.0

func (s *OpenTracingLayer) Audit() AuditStore

func (*OpenTracingLayer) Bot added in v5.22.0

func (s *OpenTracingLayer) Bot() BotStore

func (*OpenTracingLayer) Channel added in v5.22.0

func (s *OpenTracingLayer) Channel() ChannelStore

func (*OpenTracingLayer) ChannelMemberHistory added in v5.22.0

func (s *OpenTracingLayer) ChannelMemberHistory() ChannelMemberHistoryStore

func (*OpenTracingLayer) Close added in v5.22.0

func (s *OpenTracingLayer) Close()

func (*OpenTracingLayer) ClusterDiscovery added in v5.22.0

func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore

func (*OpenTracingLayer) Command added in v5.22.0

func (s *OpenTracingLayer) Command() CommandStore

func (*OpenTracingLayer) CommandWebhook added in v5.22.0

func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore

func (*OpenTracingLayer) Compliance added in v5.22.0

func (s *OpenTracingLayer) Compliance() ComplianceStore

func (*OpenTracingLayer) DropAllTables added in v5.22.0

func (s *OpenTracingLayer) DropAllTables()

func (*OpenTracingLayer) Emoji added in v5.22.0

func (s *OpenTracingLayer) Emoji() EmojiStore

func (*OpenTracingLayer) FileInfo added in v5.22.0

func (s *OpenTracingLayer) FileInfo() FileInfoStore

func (*OpenTracingLayer) GetCurrentSchemaVersion added in v5.22.0

func (s *OpenTracingLayer) GetCurrentSchemaVersion() string

func (*OpenTracingLayer) Group added in v5.22.0

func (s *OpenTracingLayer) Group() GroupStore

func (*OpenTracingLayer) Job added in v5.22.0

func (s *OpenTracingLayer) Job() JobStore

func (*OpenTracingLayer) License added in v5.22.0

func (s *OpenTracingLayer) License() LicenseStore

func (*OpenTracingLayer) LinkMetadata added in v5.22.0

func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore

func (*OpenTracingLayer) LockToMaster added in v5.22.0

func (s *OpenTracingLayer) LockToMaster()

func (*OpenTracingLayer) MarkSystemRanUnitTests added in v5.22.0

func (s *OpenTracingLayer) MarkSystemRanUnitTests()

func (*OpenTracingLayer) OAuth added in v5.22.0

func (s *OpenTracingLayer) OAuth() OAuthStore

func (*OpenTracingLayer) Plugin added in v5.22.0

func (s *OpenTracingLayer) Plugin() PluginStore

func (*OpenTracingLayer) Post added in v5.22.0

func (s *OpenTracingLayer) Post() PostStore

func (*OpenTracingLayer) Preference added in v5.22.0

func (s *OpenTracingLayer) Preference() PreferenceStore

func (*OpenTracingLayer) Reaction added in v5.22.0

func (s *OpenTracingLayer) Reaction() ReactionStore

func (*OpenTracingLayer) Role added in v5.22.0

func (s *OpenTracingLayer) Role() RoleStore

func (*OpenTracingLayer) Scheme added in v5.22.0

func (s *OpenTracingLayer) Scheme() SchemeStore

func (*OpenTracingLayer) Session added in v5.22.0

func (s *OpenTracingLayer) Session() SessionStore

func (*OpenTracingLayer) SetContext added in v5.22.0

func (s *OpenTracingLayer) SetContext(context context.Context)

func (*OpenTracingLayer) Status added in v5.22.0

func (s *OpenTracingLayer) Status() StatusStore

func (*OpenTracingLayer) System added in v5.22.0

func (s *OpenTracingLayer) System() SystemStore

func (*OpenTracingLayer) Team added in v5.22.0

func (s *OpenTracingLayer) Team() TeamStore

func (*OpenTracingLayer) TermsOfService added in v5.22.0

func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore

func (*OpenTracingLayer) Token added in v5.22.0

func (s *OpenTracingLayer) Token() TokenStore

func (*OpenTracingLayer) TotalMasterDbConnections added in v5.22.0

func (s *OpenTracingLayer) TotalMasterDbConnections() int

func (*OpenTracingLayer) TotalReadDbConnections added in v5.22.0

func (s *OpenTracingLayer) TotalReadDbConnections() int

func (*OpenTracingLayer) TotalSearchDbConnections added in v5.22.0

func (s *OpenTracingLayer) TotalSearchDbConnections() int

func (*OpenTracingLayer) UnlockFromMaster added in v5.22.0

func (s *OpenTracingLayer) UnlockFromMaster()

func (*OpenTracingLayer) User added in v5.22.0

func (s *OpenTracingLayer) User() UserStore

func (*OpenTracingLayer) UserAccessToken added in v5.22.0

func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore

func (*OpenTracingLayer) UserTermsOfService added in v5.22.0

func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore

func (*OpenTracingLayer) Webhook added in v5.22.0

func (s *OpenTracingLayer) Webhook() WebhookStore

type OpenTracingLayerAuditStore added in v5.22.0

type OpenTracingLayerAuditStore struct {
	AuditStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerAuditStore) Get added in v5.22.0

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

func (*OpenTracingLayerAuditStore) PermanentDeleteByUser added in v5.22.0

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

func (*OpenTracingLayerAuditStore) Save added in v5.22.0

type OpenTracingLayerBotStore added in v5.22.0

type OpenTracingLayerBotStore struct {
	BotStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerBotStore) Get added in v5.22.0

func (s *OpenTracingLayerBotStore) Get(userId string, includeDeleted bool) (*model.Bot, error)

func (*OpenTracingLayerBotStore) GetAll added in v5.22.0

func (s *OpenTracingLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)

func (*OpenTracingLayerBotStore) PermanentDelete added in v5.22.0

func (s *OpenTracingLayerBotStore) PermanentDelete(userId string) error

func (*OpenTracingLayerBotStore) Save added in v5.22.0

func (s *OpenTracingLayerBotStore) Save(bot *model.Bot) (*model.Bot, error)

func (*OpenTracingLayerBotStore) Update added in v5.22.0

func (s *OpenTracingLayerBotStore) Update(bot *model.Bot) (*model.Bot, error)

type OpenTracingLayerChannelMemberHistoryStore added in v5.22.0

type OpenTracingLayerChannelMemberHistoryStore struct {
	ChannelMemberHistoryStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerChannelMemberHistoryStore) GetUsersInChannelDuring added in v5.22.0

func (s *OpenTracingLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)

func (*OpenTracingLayerChannelMemberHistoryStore) LogJoinEvent added in v5.22.0

func (s *OpenTracingLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError

func (*OpenTracingLayerChannelMemberHistoryStore) LogLeaveEvent added in v5.22.0

func (s *OpenTracingLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError

func (*OpenTracingLayerChannelMemberHistoryStore) PermanentDeleteBatch added in v5.22.0

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

type OpenTracingLayerChannelStore added in v5.22.0

type OpenTracingLayerChannelStore struct {
	ChannelStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerChannelStore) AnalyticsDeletedTypeCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) AnalyticsTypeCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) AutocompleteInTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) AutocompleteInTeamForSearch added in v5.22.0

func (s *OpenTracingLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments added in v5.22.0

func (s *OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError

func (*OpenTracingLayerChannelStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerChannelStore) ClearCaches()

func (*OpenTracingLayerChannelStore) CountPostsAfter added in v5.22.0

func (s *OpenTracingLayerChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)

func (*OpenTracingLayerChannelStore) CreateDirectChannel added in v5.22.0

func (s *OpenTracingLayerChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error)

func (*OpenTracingLayerChannelStore) Delete added in v5.22.0

func (s *OpenTracingLayerChannelStore) Delete(channelId string, time int64) *model.AppError

func (*OpenTracingLayerChannelStore) Get added in v5.22.0

func (s *OpenTracingLayerChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetAll added in v5.22.0

func (*OpenTracingLayerChannelStore) GetAllChannelMembersForUser added in v5.22.0

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

func (*OpenTracingLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)

func (*OpenTracingLayerChannelStore) GetAllChannels added in v5.22.0

func (*OpenTracingLayerChannelStore) GetAllChannelsCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) GetAllChannelsForExportAfter added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)

func (*OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)

func (*OpenTracingLayerChannelStore) GetByName added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetByNameIncludeDeleted added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetByNames added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelCounts added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelMembersForExport added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelMembersTimezones added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelUnread added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelsBatchForIndexing added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelsByIds added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetChannelsByScheme added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetDeleted added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetDeletedByName added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetForPost added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetFromMaster added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetFromMaster(id string) (*model.Channel, *model.AppError)

func (*OpenTracingLayerChannelStore) GetGuestCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMember added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMemberCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMemberCountFromCache added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMemberCountFromCache(channelId string) int64

func (*OpenTracingLayerChannelStore) GetMemberCountsByGroup added in v5.24.0

func (s *OpenTracingLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMemberForPost added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMembers added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMembersByIds added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMembersForUser added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMembersForUserWithPagination added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)

func (*OpenTracingLayerChannelStore) GetMoreChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetPinnedPostCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) GetPinnedPosts added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetPublicChannelsForTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GetTeamChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) GroupSyncedChannelCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)

func (*OpenTracingLayerChannelStore) IncrementMentionCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError

func (*OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)

func (*OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)

func (*OpenTracingLayerChannelStore) InvalidateChannel added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateChannel(id string)

func (*OpenTracingLayerChannelStore) InvalidateChannelByName added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateChannelByName(teamId string, name string)

func (*OpenTracingLayerChannelStore) InvalidateGuestCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateGuestCount(channelId string)

func (*OpenTracingLayerChannelStore) InvalidateMemberCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidateMemberCount(channelId string)

func (*OpenTracingLayerChannelStore) InvalidatePinnedPostCount added in v5.22.0

func (s *OpenTracingLayerChannelStore) InvalidatePinnedPostCount(channelId string)

func (*OpenTracingLayerChannelStore) IsUserInChannelUseCache added in v5.22.0

func (s *OpenTracingLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool

func (*OpenTracingLayerChannelStore) MigrateChannelMembers added in v5.22.0

func (s *OpenTracingLayerChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)

func (*OpenTracingLayerChannelStore) MigratePublicChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) MigratePublicChannels() error

func (*OpenTracingLayerChannelStore) PermanentDelete added in v5.22.0

func (s *OpenTracingLayerChannelStore) PermanentDelete(channelId string) *model.AppError

func (*OpenTracingLayerChannelStore) PermanentDeleteByTeam added in v5.22.0

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

func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByChannel added in v5.22.0

func (s *OpenTracingLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError

func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByUser added in v5.22.0

func (s *OpenTracingLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError

func (*OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers added in v5.22.0

func (s *OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError

func (*OpenTracingLayerChannelStore) RemoveMember added in v5.22.0

func (s *OpenTracingLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError

func (*OpenTracingLayerChannelStore) RemoveMembers added in v5.24.0

func (s *OpenTracingLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError

func (*OpenTracingLayerChannelStore) ResetAllChannelSchemes added in v5.22.0

func (s *OpenTracingLayerChannelStore) ResetAllChannelSchemes() *model.AppError

func (*OpenTracingLayerChannelStore) Restore added in v5.22.0

func (s *OpenTracingLayerChannelStore) Restore(channelId string, time int64) *model.AppError

func (*OpenTracingLayerChannelStore) Save added in v5.22.0

func (s *OpenTracingLayerChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)

func (*OpenTracingLayerChannelStore) SaveDirectChannel added in v5.22.0

func (s *OpenTracingLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)

func (*OpenTracingLayerChannelStore) SaveMember added in v5.22.0

func (*OpenTracingLayerChannelStore) SaveMultipleMembers added in v5.24.0

func (s *OpenTracingLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)

func (*OpenTracingLayerChannelStore) SearchAllChannels added in v5.22.0

func (*OpenTracingLayerChannelStore) SearchArchivedInTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) SearchForUserInTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) SearchGroupChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) SearchInTeam added in v5.22.0

func (s *OpenTracingLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) SearchMore added in v5.22.0

func (s *OpenTracingLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)

func (*OpenTracingLayerChannelStore) SetDeleteAt added in v5.22.0

func (s *OpenTracingLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError

func (*OpenTracingLayerChannelStore) Update added in v5.22.0

func (*OpenTracingLayerChannelStore) UpdateLastViewedAt added in v5.22.0

func (s *OpenTracingLayerChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)

func (*OpenTracingLayerChannelStore) UpdateLastViewedAtPost added in v5.22.0

func (s *OpenTracingLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)

func (*OpenTracingLayerChannelStore) UpdateMember added in v5.22.0

func (*OpenTracingLayerChannelStore) UpdateMembersRole added in v5.22.0

func (s *OpenTracingLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError

func (*OpenTracingLayerChannelStore) UpdateMultipleMembers added in v5.24.0

func (s *OpenTracingLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)

func (*OpenTracingLayerChannelStore) UserBelongsToChannels added in v5.22.0

func (s *OpenTracingLayerChannelStore) UserBelongsToChannels(userId string, channelIds []string) (bool, *model.AppError)

type OpenTracingLayerClusterDiscoveryStore added in v5.22.0

type OpenTracingLayerClusterDiscoveryStore struct {
	ClusterDiscoveryStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerClusterDiscoveryStore) Cleanup added in v5.22.0

func (*OpenTracingLayerClusterDiscoveryStore) Delete added in v5.22.0

func (*OpenTracingLayerClusterDiscoveryStore) Exists added in v5.22.0

func (*OpenTracingLayerClusterDiscoveryStore) GetAll added in v5.22.0

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

func (*OpenTracingLayerClusterDiscoveryStore) Save added in v5.22.0

func (*OpenTracingLayerClusterDiscoveryStore) SetLastPingAt added in v5.22.0

type OpenTracingLayerCommandStore added in v5.22.0

type OpenTracingLayerCommandStore struct {
	CommandStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerCommandStore) AnalyticsCommandCount added in v5.22.0

func (s *OpenTracingLayerCommandStore) AnalyticsCommandCount(teamId string) (int64, *model.AppError)

func (*OpenTracingLayerCommandStore) Delete added in v5.22.0

func (s *OpenTracingLayerCommandStore) Delete(commandId string, time int64) *model.AppError

func (*OpenTracingLayerCommandStore) Get added in v5.22.0

func (*OpenTracingLayerCommandStore) GetByTeam added in v5.22.0

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

func (*OpenTracingLayerCommandStore) GetByTrigger added in v5.22.0

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

func (*OpenTracingLayerCommandStore) PermanentDeleteByTeam added in v5.22.0

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

func (*OpenTracingLayerCommandStore) PermanentDeleteByUser added in v5.22.0

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

func (*OpenTracingLayerCommandStore) Save added in v5.22.0

func (*OpenTracingLayerCommandStore) Update added in v5.22.0

type OpenTracingLayerCommandWebhookStore added in v5.22.0

type OpenTracingLayerCommandWebhookStore struct {
	CommandWebhookStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerCommandWebhookStore) Cleanup added in v5.22.0

func (*OpenTracingLayerCommandWebhookStore) Get added in v5.22.0

func (*OpenTracingLayerCommandWebhookStore) Save added in v5.22.0

func (*OpenTracingLayerCommandWebhookStore) TryUse added in v5.22.0

type OpenTracingLayerComplianceStore added in v5.22.0

type OpenTracingLayerComplianceStore struct {
	ComplianceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerComplianceStore) ComplianceExport added in v5.22.0

func (s *OpenTracingLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)

func (*OpenTracingLayerComplianceStore) Get added in v5.22.0

func (*OpenTracingLayerComplianceStore) GetAll added in v5.22.0

func (s *OpenTracingLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, *model.AppError)

func (*OpenTracingLayerComplianceStore) MessageExport added in v5.22.0

func (s *OpenTracingLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)

func (*OpenTracingLayerComplianceStore) Save added in v5.22.0

func (*OpenTracingLayerComplianceStore) Update added in v5.22.0

type OpenTracingLayerEmojiStore added in v5.22.0

type OpenTracingLayerEmojiStore struct {
	EmojiStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerEmojiStore) Delete added in v5.22.0

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

func (*OpenTracingLayerEmojiStore) Get added in v5.22.0

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

func (*OpenTracingLayerEmojiStore) GetByName added in v5.22.0

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

func (*OpenTracingLayerEmojiStore) GetList added in v5.22.0

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

func (*OpenTracingLayerEmojiStore) GetMultipleByName added in v5.22.0

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

func (*OpenTracingLayerEmojiStore) Save added in v5.22.0

func (*OpenTracingLayerEmojiStore) Search added in v5.22.0

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

type OpenTracingLayerFileInfoStore added in v5.22.0

type OpenTracingLayerFileInfoStore struct {
	FileInfoStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerFileInfoStore) AttachToPost added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerFileInfoStore) ClearCaches()

func (*OpenTracingLayerFileInfoStore) DeleteForPost added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) Get added in v5.22.0

func (*OpenTracingLayerFileInfoStore) GetByPath added in v5.22.0

func (*OpenTracingLayerFileInfoStore) GetForPost added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) GetForUser added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) GetWithOptions added in v5.22.0

func (s *OpenTracingLayerFileInfoStore) GetWithOptions(page int, perPage int, opt *model.GetFileInfosOptions) ([]*model.FileInfo, *model.AppError)

func (*OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache added in v5.22.0

func (s *OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string, deleted bool)

func (*OpenTracingLayerFileInfoStore) PermanentDelete added in v5.22.0

func (s *OpenTracingLayerFileInfoStore) PermanentDelete(fileId string) *model.AppError

func (*OpenTracingLayerFileInfoStore) PermanentDeleteBatch added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) PermanentDeleteByUser added in v5.22.0

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

func (*OpenTracingLayerFileInfoStore) Save added in v5.22.0

type OpenTracingLayerGroupStore added in v5.22.0

type OpenTracingLayerGroupStore struct {
	GroupStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember added in v5.22.0

func (s *OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

func (*OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers added in v5.22.0

func (s *OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)

func (*OpenTracingLayerGroupStore) ChannelMembersToAdd added in v5.22.0

func (s *OpenTracingLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)

func (*OpenTracingLayerGroupStore) ChannelMembersToRemove added in v5.22.0

func (s *OpenTracingLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)

func (*OpenTracingLayerGroupStore) CountChannelMembersMinusGroupMembers added in v5.22.0

func (s *OpenTracingLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) CountGroupsByChannel added in v5.22.0

func (s *OpenTracingLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) CountGroupsByTeam added in v5.22.0

func (s *OpenTracingLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) CountTeamMembersMinusGroupMembers added in v5.22.0

func (s *OpenTracingLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) Create added in v5.22.0

func (*OpenTracingLayerGroupStore) CreateGroupSyncable added in v5.22.0

func (s *OpenTracingLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)

func (*OpenTracingLayerGroupStore) Delete added in v5.22.0

func (s *OpenTracingLayerGroupStore) Delete(groupID string) (*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) DeleteGroupSyncable added in v5.22.0

func (s *OpenTracingLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)

func (*OpenTracingLayerGroupStore) DeleteMember added in v5.22.0

func (s *OpenTracingLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)

func (*OpenTracingLayerGroupStore) DistinctGroupMemberCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) Get added in v5.22.0

func (*OpenTracingLayerGroupStore) GetAllBySource added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)

func (*OpenTracingLayerGroupStore) GetByIDs added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetByName added in v5.22.0

func (*OpenTracingLayerGroupStore) GetByRemoteID added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetByUser added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetGroupSyncable added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)

func (*OpenTracingLayerGroupStore) GetGroups added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetGroupsAssociatedToChannelsByTeam added in v5.24.0

func (s *OpenTracingLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)

func (*OpenTracingLayerGroupStore) GetGroupsByChannel added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)

func (*OpenTracingLayerGroupStore) GetGroupsByTeam added in v5.22.0

func (*OpenTracingLayerGroupStore) GetMemberCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) GetMemberUsers added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerGroupStore) GetMemberUsersInTeam added in v5.24.0

func (s *OpenTracingLayerGroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerGroupStore) GetMemberUsersNotInChannel added in v5.24.0

func (s *OpenTracingLayerGroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerGroupStore) GetMemberUsersPage added in v5.22.0

func (s *OpenTracingLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)

func (*OpenTracingLayerGroupStore) GroupChannelCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) GroupChannelCount() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) GroupCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) GroupCount() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) GroupCountWithAllowReference added in v5.24.0

func (s *OpenTracingLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) GroupMemberCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) GroupMemberCount() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) GroupTeamCount added in v5.22.0

func (s *OpenTracingLayerGroupStore) GroupTeamCount() (int64, *model.AppError)

func (*OpenTracingLayerGroupStore) PermanentDeleteMembersByUser added in v5.22.0

func (s *OpenTracingLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError

func (*OpenTracingLayerGroupStore) PermittedSyncableAdmins added in v5.22.0

func (s *OpenTracingLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

func (*OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers added in v5.22.0

func (s *OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)

func (*OpenTracingLayerGroupStore) TeamMembersToAdd added in v5.22.0

func (s *OpenTracingLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)

func (*OpenTracingLayerGroupStore) TeamMembersToRemove added in v5.22.0

func (s *OpenTracingLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerGroupStore) Update added in v5.22.0

func (*OpenTracingLayerGroupStore) UpdateGroupSyncable added in v5.22.0

func (s *OpenTracingLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)

func (*OpenTracingLayerGroupStore) UpsertMember added in v5.22.0

func (s *OpenTracingLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)

type OpenTracingLayerJobStore added in v5.22.0

type OpenTracingLayerJobStore struct {
	JobStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerJobStore) Delete added in v5.22.0

func (*OpenTracingLayerJobStore) Get added in v5.22.0

func (*OpenTracingLayerJobStore) GetAllByStatus added in v5.22.0

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

func (*OpenTracingLayerJobStore) GetAllByType added in v5.22.0

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

func (*OpenTracingLayerJobStore) GetAllByTypePage added in v5.22.0

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

func (*OpenTracingLayerJobStore) GetAllPage added in v5.22.0

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

func (*OpenTracingLayerJobStore) GetCountByStatusAndType added in v5.22.0

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

func (*OpenTracingLayerJobStore) GetNewestJobByStatusAndType added in v5.22.0

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

func (*OpenTracingLayerJobStore) Save added in v5.22.0

func (*OpenTracingLayerJobStore) UpdateOptimistically added in v5.22.0

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

func (*OpenTracingLayerJobStore) UpdateStatus added in v5.22.0

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

func (*OpenTracingLayerJobStore) UpdateStatusOptimistically added in v5.22.0

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

type OpenTracingLayerLicenseStore added in v5.22.0

type OpenTracingLayerLicenseStore struct {
	LicenseStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLicenseStore) Get added in v5.22.0

func (*OpenTracingLayerLicenseStore) Save added in v5.22.0

type OpenTracingLayerLinkMetadataStore added in v5.22.0

type OpenTracingLayerLinkMetadataStore struct {
	LinkMetadataStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLinkMetadataStore) Get added in v5.22.0

func (*OpenTracingLayerLinkMetadataStore) Save added in v5.22.0

type OpenTracingLayerOAuthStore added in v5.22.0

type OpenTracingLayerOAuthStore struct {
	OAuthStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerOAuthStore) DeleteApp added in v5.22.0

func (s *OpenTracingLayerOAuthStore) DeleteApp(id string) *model.AppError

func (*OpenTracingLayerOAuthStore) GetAccessData added in v5.22.0

func (s *OpenTracingLayerOAuthStore) GetAccessData(token string) (*model.AccessData, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken added in v5.22.0

func (s *OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetAccessDataByUserForApp added in v5.22.0

func (s *OpenTracingLayerOAuthStore) GetAccessDataByUserForApp(userId string, clientId string) ([]*model.AccessData, *model.AppError)

func (*OpenTracingLayerOAuthStore) GetApp added in v5.22.0

func (*OpenTracingLayerOAuthStore) GetAppByUser added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) GetApps added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) GetAuthData added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) GetAuthorizedApps added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) GetPreviousAccessData added in v5.22.0

func (s *OpenTracingLayerOAuthStore) GetPreviousAccessData(userId string, clientId string) (*model.AccessData, *model.AppError)

func (*OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser added in v5.22.0

func (s *OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser(userId string) *model.AppError

func (*OpenTracingLayerOAuthStore) RemoveAccessData added in v5.22.0

func (s *OpenTracingLayerOAuthStore) RemoveAccessData(token string) *model.AppError

func (*OpenTracingLayerOAuthStore) RemoveAllAccessData added in v5.22.0

func (s *OpenTracingLayerOAuthStore) RemoveAllAccessData() *model.AppError

func (*OpenTracingLayerOAuthStore) RemoveAuthData added in v5.22.0

func (s *OpenTracingLayerOAuthStore) RemoveAuthData(code string) *model.AppError

func (*OpenTracingLayerOAuthStore) SaveAccessData added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) SaveApp added in v5.22.0

func (*OpenTracingLayerOAuthStore) SaveAuthData added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) UpdateAccessData added in v5.22.0

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

func (*OpenTracingLayerOAuthStore) UpdateApp added in v5.22.0

type OpenTracingLayerPluginStore added in v5.22.0

type OpenTracingLayerPluginStore struct {
	PluginStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPluginStore) CompareAndDelete added in v5.22.0

func (s *OpenTracingLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)

func (*OpenTracingLayerPluginStore) CompareAndSet added in v5.22.0

func (s *OpenTracingLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)

func (*OpenTracingLayerPluginStore) Delete added in v5.22.0

func (s *OpenTracingLayerPluginStore) Delete(pluginId string, key string) *model.AppError

func (*OpenTracingLayerPluginStore) DeleteAllExpired added in v5.22.0

func (s *OpenTracingLayerPluginStore) DeleteAllExpired() *model.AppError

func (*OpenTracingLayerPluginStore) DeleteAllForPlugin added in v5.22.0

func (s *OpenTracingLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError

func (*OpenTracingLayerPluginStore) Get added in v5.22.0

func (*OpenTracingLayerPluginStore) List added in v5.22.0

func (s *OpenTracingLayerPluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)

func (*OpenTracingLayerPluginStore) SaveOrUpdate added in v5.22.0

func (*OpenTracingLayerPluginStore) SetWithOptions added in v5.22.0

func (s *OpenTracingLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)

type OpenTracingLayerPostStore added in v5.22.0

type OpenTracingLayerPostStore struct {
	PostStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPostStore) AnalyticsPostCount added in v5.22.0

func (s *OpenTracingLayerPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)

func (*OpenTracingLayerPostStore) AnalyticsPostCountsByDay added in v5.22.0

func (*OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay added in v5.22.0

func (s *OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)

func (*OpenTracingLayerPostStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerPostStore) ClearCaches()

func (*OpenTracingLayerPostStore) Delete added in v5.22.0

func (s *OpenTracingLayerPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError

func (*OpenTracingLayerPostStore) Get added in v5.22.0

func (s *OpenTracingLayerPostStore) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter added in v5.22.0

func (s *OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)

func (*OpenTracingLayerPostStore) GetEtag added in v5.22.0

func (s *OpenTracingLayerPostStore) GetEtag(channelId string, allowFromCache bool) string

func (*OpenTracingLayerPostStore) GetFlaggedPosts added in v5.22.0

func (s *OpenTracingLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetFlaggedPostsForChannel added in v5.22.0

func (s *OpenTracingLayerPostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetFlaggedPostsForTeam added in v5.22.0

func (s *OpenTracingLayerPostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetMaxPostSize added in v5.22.0

func (s *OpenTracingLayerPostStore) GetMaxPostSize() int

func (*OpenTracingLayerPostStore) GetOldest added in v5.22.0

func (s *OpenTracingLayerPostStore) GetOldest() (*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) GetParentsForExportAfter added in v5.22.0

func (s *OpenTracingLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostAfterTime added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostIdAfterTime added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostIdBeforeTime added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)

func (*OpenTracingLayerPostStore) GetPosts added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostsAfter added in v5.22.0

func (*OpenTracingLayerPostStore) GetPostsBatchForIndexing added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostsBefore added in v5.22.0

func (*OpenTracingLayerPostStore) GetPostsByIds added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostsCreatedAt added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) GetPostsSince added in v5.22.0

func (s *OpenTracingLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) GetRepliesForExport added in v5.22.0

func (s *OpenTracingLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)

func (*OpenTracingLayerPostStore) GetSingle added in v5.22.0

func (s *OpenTracingLayerPostStore) GetSingle(id string) (*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) InvalidateLastPostTimeCache added in v5.22.0

func (s *OpenTracingLayerPostStore) InvalidateLastPostTimeCache(channelId string)

func (*OpenTracingLayerPostStore) Overwrite added in v5.22.0

func (s *OpenTracingLayerPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)

func (*OpenTracingLayerPostStore) OverwriteMultiple added in v5.24.0

func (s *OpenTracingLayerPostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)

func (*OpenTracingLayerPostStore) PermanentDeleteBatch added in v5.22.0

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

func (*OpenTracingLayerPostStore) PermanentDeleteByChannel added in v5.22.0

func (s *OpenTracingLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError

func (*OpenTracingLayerPostStore) PermanentDeleteByUser added in v5.22.0

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

func (*OpenTracingLayerPostStore) Save added in v5.22.0

func (*OpenTracingLayerPostStore) SaveMultiple added in v5.24.0

func (s *OpenTracingLayerPostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)

func (*OpenTracingLayerPostStore) Search added in v5.22.0

func (s *OpenTracingLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)

func (*OpenTracingLayerPostStore) SearchPostsInTeamForUser added in v5.22.0

func (s *OpenTracingLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool, page int, perPage int) (*model.PostSearchResults, *model.AppError)

func (*OpenTracingLayerPostStore) Update added in v5.22.0

func (s *OpenTracingLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)

type OpenTracingLayerPreferenceStore added in v5.22.0

type OpenTracingLayerPreferenceStore struct {
	PreferenceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPreferenceStore) CleanupFlagsBatch added in v5.22.0

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

func (*OpenTracingLayerPreferenceStore) Delete added in v5.22.0

func (s *OpenTracingLayerPreferenceStore) Delete(userId string, category string, name string) *model.AppError

func (*OpenTracingLayerPreferenceStore) DeleteCategory added in v5.22.0

func (s *OpenTracingLayerPreferenceStore) DeleteCategory(userId string, category string) *model.AppError

func (*OpenTracingLayerPreferenceStore) DeleteCategoryAndName added in v5.22.0

func (s *OpenTracingLayerPreferenceStore) DeleteCategoryAndName(category string, name string) *model.AppError

func (*OpenTracingLayerPreferenceStore) Get added in v5.22.0

func (s *OpenTracingLayerPreferenceStore) Get(userId string, category string, name string) (*model.Preference, *model.AppError)

func (*OpenTracingLayerPreferenceStore) GetAll added in v5.22.0

func (*OpenTracingLayerPreferenceStore) GetCategory added in v5.22.0

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

func (*OpenTracingLayerPreferenceStore) PermanentDeleteByUser added in v5.22.0

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

func (*OpenTracingLayerPreferenceStore) Save added in v5.22.0

type OpenTracingLayerReactionStore added in v5.22.0

type OpenTracingLayerReactionStore struct {
	ReactionStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerReactionStore) BulkGetForPosts added in v5.22.0

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

func (*OpenTracingLayerReactionStore) Delete added in v5.22.0

func (*OpenTracingLayerReactionStore) DeleteAllWithEmojiName added in v5.22.0

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

func (*OpenTracingLayerReactionStore) GetForPost added in v5.22.0

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

func (*OpenTracingLayerReactionStore) PermanentDeleteBatch added in v5.22.0

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

func (*OpenTracingLayerReactionStore) Save added in v5.22.0

type OpenTracingLayerRoleStore added in v5.22.0

type OpenTracingLayerRoleStore struct {
	RoleStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerRoleStore) AllChannelSchemeRoles added in v5.22.0

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

func (*OpenTracingLayerRoleStore) ChannelHigherScopedPermissions added in v5.22.0

func (s *OpenTracingLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)

func (*OpenTracingLayerRoleStore) ChannelRolesUnderTeamRole added in v5.22.0

func (s *OpenTracingLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, *model.AppError)

func (*OpenTracingLayerRoleStore) Delete added in v5.22.0

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

func (*OpenTracingLayerRoleStore) Get added in v5.22.0

func (*OpenTracingLayerRoleStore) GetAll added in v5.22.0

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

func (*OpenTracingLayerRoleStore) GetByName added in v5.22.0

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

func (*OpenTracingLayerRoleStore) GetByNames added in v5.22.0

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

func (*OpenTracingLayerRoleStore) PermanentDeleteAll added in v5.22.0

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

func (*OpenTracingLayerRoleStore) Save added in v5.22.0

type OpenTracingLayerSchemeStore added in v5.22.0

type OpenTracingLayerSchemeStore struct {
	SchemeStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSchemeStore) CountByScope added in v5.24.0

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

func (*OpenTracingLayerSchemeStore) CountWithoutPermission added in v5.24.0

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

func (*OpenTracingLayerSchemeStore) Delete added in v5.22.0

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

func (*OpenTracingLayerSchemeStore) Get added in v5.22.0

func (*OpenTracingLayerSchemeStore) GetAllPage added in v5.22.0

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

func (*OpenTracingLayerSchemeStore) GetByName added in v5.22.0

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

func (*OpenTracingLayerSchemeStore) PermanentDeleteAll added in v5.22.0

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

func (*OpenTracingLayerSchemeStore) Save added in v5.22.0

type OpenTracingLayerSessionStore added in v5.22.0

type OpenTracingLayerSessionStore struct {
	SessionStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSessionStore) AnalyticsSessionCount added in v5.22.0

func (s *OpenTracingLayerSessionStore) AnalyticsSessionCount() (int64, *model.AppError)

func (*OpenTracingLayerSessionStore) Cleanup added in v5.22.0

func (s *OpenTracingLayerSessionStore) Cleanup(expiryTime int64, batchSize int64)

func (*OpenTracingLayerSessionStore) Get added in v5.22.0

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

func (*OpenTracingLayerSessionStore) GetSessions added in v5.22.0

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

func (*OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds added in v5.22.0

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

func (*OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser added in v5.22.0

func (s *OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser(teamId string) *model.AppError

func (*OpenTracingLayerSessionStore) Remove added in v5.22.0

func (s *OpenTracingLayerSessionStore) Remove(sessionIdOrToken string) *model.AppError

func (*OpenTracingLayerSessionStore) RemoveAllSessions added in v5.22.0

func (s *OpenTracingLayerSessionStore) RemoveAllSessions() *model.AppError

func (*OpenTracingLayerSessionStore) Save added in v5.22.0

func (*OpenTracingLayerSessionStore) UpdateDeviceId added in v5.22.0

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

func (*OpenTracingLayerSessionStore) UpdateExpiresAt added in v5.24.0

func (s *OpenTracingLayerSessionStore) UpdateExpiresAt(sessionId string, time int64) *model.AppError

func (*OpenTracingLayerSessionStore) UpdateLastActivityAt added in v5.22.0

func (s *OpenTracingLayerSessionStore) UpdateLastActivityAt(sessionId string, time int64) *model.AppError

func (*OpenTracingLayerSessionStore) UpdateProps added in v5.22.0

func (s *OpenTracingLayerSessionStore) UpdateProps(session *model.Session) *model.AppError

func (*OpenTracingLayerSessionStore) UpdateRoles added in v5.22.0

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

type OpenTracingLayerStatusStore added in v5.22.0

type OpenTracingLayerStatusStore struct {
	StatusStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerStatusStore) Get added in v5.22.0

func (*OpenTracingLayerStatusStore) GetByIds added in v5.22.0

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

func (*OpenTracingLayerStatusStore) GetTotalActiveUsersCount added in v5.22.0

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

func (*OpenTracingLayerStatusStore) ResetAll added in v5.22.0

func (*OpenTracingLayerStatusStore) SaveOrUpdate added in v5.22.0

func (s *OpenTracingLayerStatusStore) SaveOrUpdate(status *model.Status) *model.AppError

func (*OpenTracingLayerStatusStore) UpdateLastActivityAt added in v5.22.0

func (s *OpenTracingLayerStatusStore) UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError

type OpenTracingLayerSystemStore added in v5.22.0

type OpenTracingLayerSystemStore struct {
	SystemStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSystemStore) Get added in v5.22.0

func (*OpenTracingLayerSystemStore) GetByName added in v5.22.0

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

func (*OpenTracingLayerSystemStore) PermanentDeleteByName added in v5.22.0

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

func (*OpenTracingLayerSystemStore) Save added in v5.22.0

func (*OpenTracingLayerSystemStore) SaveOrUpdate added in v5.22.0

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

func (*OpenTracingLayerSystemStore) Update added in v5.22.0

type OpenTracingLayerTeamStore added in v5.22.0

type OpenTracingLayerTeamStore struct {
	TeamStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme added in v5.22.0

func (s *OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) AnalyticsPublicTeamCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) AnalyticsTeamCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments added in v5.22.0

func (s *OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError

func (*OpenTracingLayerTeamStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerTeamStore) ClearCaches()

func (*OpenTracingLayerTeamStore) Get added in v5.22.0

func (*OpenTracingLayerTeamStore) GetActiveMemberCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAll added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllForExportAfter added in v5.22.0

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

func (*OpenTracingLayerTeamStore) GetAllPage added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllPrivateTeamListing added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllPrivateTeamPageListing added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllPublicTeamPageListing added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllTeamListing added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetAllTeamPageListing added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetByInviteId added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetByName added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetByName(name string) (*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetByNames added in v5.24.0

func (s *OpenTracingLayerTeamStore) GetByNames(name []string) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)

func (*OpenTracingLayerTeamStore) GetChannelUnreadsForTeam added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)

func (*OpenTracingLayerTeamStore) GetMember added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) GetMembers added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) GetMembersByIds added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTeamMembersForExport added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTeamsByScheme added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTeamsByUserId added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTeamsForUser added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTeamsForUserWithPagination added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) GetTotalMemberCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) GetUserTeamIds added in v5.22.0

func (s *OpenTracingLayerTeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)

func (*OpenTracingLayerTeamStore) GroupSyncedTeamCount added in v5.22.0

func (s *OpenTracingLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)

func (*OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser added in v5.22.0

func (s *OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)

func (*OpenTracingLayerTeamStore) MigrateTeamMembers added in v5.22.0

func (s *OpenTracingLayerTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)

func (*OpenTracingLayerTeamStore) PermanentDelete added in v5.22.0

func (s *OpenTracingLayerTeamStore) PermanentDelete(teamId string) *model.AppError

func (*OpenTracingLayerTeamStore) RemoveAllMembersByTeam added in v5.22.0

func (s *OpenTracingLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError

func (*OpenTracingLayerTeamStore) RemoveAllMembersByUser added in v5.22.0

func (s *OpenTracingLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError

func (*OpenTracingLayerTeamStore) RemoveMember added in v5.22.0

func (s *OpenTracingLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError

func (*OpenTracingLayerTeamStore) RemoveMembers added in v5.24.0

func (s *OpenTracingLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError

func (*OpenTracingLayerTeamStore) ResetAllTeamSchemes added in v5.22.0

func (s *OpenTracingLayerTeamStore) ResetAllTeamSchemes() *model.AppError

func (*OpenTracingLayerTeamStore) Save added in v5.22.0

func (*OpenTracingLayerTeamStore) SaveMember added in v5.22.0

func (s *OpenTracingLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) SaveMultipleMembers added in v5.24.0

func (s *OpenTracingLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) SearchAll added in v5.22.0

func (s *OpenTracingLayerTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) SearchAllPaged added in v5.22.0

func (s *OpenTracingLayerTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)

func (*OpenTracingLayerTeamStore) SearchOpen added in v5.22.0

func (s *OpenTracingLayerTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) SearchPrivate added in v5.22.0

func (s *OpenTracingLayerTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)

func (*OpenTracingLayerTeamStore) Update added in v5.22.0

func (*OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate added in v5.22.0

func (s *OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError

func (*OpenTracingLayerTeamStore) UpdateMember added in v5.22.0

func (*OpenTracingLayerTeamStore) UpdateMembersRole added in v5.22.0

func (s *OpenTracingLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError

func (*OpenTracingLayerTeamStore) UpdateMultipleMembers added in v5.24.0

func (s *OpenTracingLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)

func (*OpenTracingLayerTeamStore) UserBelongsToTeams added in v5.22.0

func (s *OpenTracingLayerTeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)

type OpenTracingLayerTermsOfServiceStore added in v5.22.0

type OpenTracingLayerTermsOfServiceStore struct {
	TermsOfServiceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTermsOfServiceStore) Get added in v5.22.0

func (*OpenTracingLayerTermsOfServiceStore) GetLatest added in v5.22.0

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

func (*OpenTracingLayerTermsOfServiceStore) Save added in v5.22.0

type OpenTracingLayerTokenStore added in v5.22.0

type OpenTracingLayerTokenStore struct {
	TokenStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTokenStore) Cleanup added in v5.22.0

func (s *OpenTracingLayerTokenStore) Cleanup()

func (*OpenTracingLayerTokenStore) Delete added in v5.22.0

func (s *OpenTracingLayerTokenStore) Delete(token string) *model.AppError

func (*OpenTracingLayerTokenStore) GetByToken added in v5.22.0

func (s *OpenTracingLayerTokenStore) GetByToken(token string) (*model.Token, *model.AppError)

func (*OpenTracingLayerTokenStore) RemoveAllTokensByType added in v5.22.0

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

func (*OpenTracingLayerTokenStore) Save added in v5.22.0

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

type OpenTracingLayerUserAccessTokenStore added in v5.22.0

type OpenTracingLayerUserAccessTokenStore struct {
	UserAccessTokenStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserAccessTokenStore) Delete added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) DeleteAllForUser added in v5.22.0

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

func (*OpenTracingLayerUserAccessTokenStore) Get added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) GetAll added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) GetByToken added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) GetByUser added in v5.22.0

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

func (*OpenTracingLayerUserAccessTokenStore) Save added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) Search added in v5.22.0

func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable added in v5.22.0

func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable(tokenId string) *model.AppError

func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable added in v5.22.0

func (s *OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable(tokenId string) *model.AppError

type OpenTracingLayerUserStore added in v5.22.0

type OpenTracingLayerUserStore struct {
	UserStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserStore) AnalyticsActiveCount added in v5.22.0

func (s *OpenTracingLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)

func (*OpenTracingLayerUserStore) AnalyticsGetGuestCount added in v5.24.0

func (s *OpenTracingLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError)

func (*OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount added in v5.22.0

func (s *OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, *model.AppError)

func (*OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount added in v5.22.0

func (s *OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount() (int64, *model.AppError)

func (*OpenTracingLayerUserStore) AutocompleteUsersInChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)

func (*OpenTracingLayerUserStore) ClearAllCustomRoleAssignments added in v5.22.0

func (s *OpenTracingLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError

func (*OpenTracingLayerUserStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerUserStore) ClearCaches()

func (*OpenTracingLayerUserStore) Count added in v5.22.0

func (*OpenTracingLayerUserStore) DeactivateGuests added in v5.22.0

func (s *OpenTracingLayerUserStore) DeactivateGuests() ([]string, *model.AppError)

func (*OpenTracingLayerUserStore) DemoteUserToGuest added in v5.22.0

func (s *OpenTracingLayerUserStore) DemoteUserToGuest(userID string) *model.AppError

func (*OpenTracingLayerUserStore) Get added in v5.22.0

func (*OpenTracingLayerUserStore) GetAll added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetAllAfter added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetAllNotInAuthService added in v5.24.0

func (s *OpenTracingLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetAllProfiles added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetAllProfilesInChannel added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetAllUsingAuthService added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetAnyUnreadPostCountForChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)

func (*OpenTracingLayerUserStore) GetByAuth added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetByEmail added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetByUsername added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetChannelGroupUsers added in v5.22.0

func (s *OpenTracingLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetEtagForAllProfiles added in v5.22.0

func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string

func (*OpenTracingLayerUserStore) GetEtagForProfiles added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetEtagForProfilesNotInTeam added in v5.22.0

func (s *OpenTracingLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string

func (*OpenTracingLayerUserStore) GetForLogin added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetKnownUsers added in v5.23.0

func (s *OpenTracingLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)

func (*OpenTracingLayerUserStore) GetNewUsersForTeam added in v5.22.0

func (s *OpenTracingLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfileByGroupChannelIdsForUser added in v5.22.0

func (s *OpenTracingLayerUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfileByIds added in v5.22.0

func (s *OpenTracingLayerUserStore) GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfiles added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetProfilesByUsernames added in v5.22.0

func (s *OpenTracingLayerUserStore) GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfilesInChannel added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetProfilesInChannelByStatus added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetProfilesNotInChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetProfilesNotInTeam added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetProfilesWithoutTeam added in v5.22.0

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

func (*OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam added in v5.22.0

func (s *OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetSystemAdminProfiles added in v5.22.0

func (s *OpenTracingLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetTeamGroupUsers added in v5.22.0

func (s *OpenTracingLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) GetUnreadCount added in v5.22.0

func (s *OpenTracingLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)

func (*OpenTracingLayerUserStore) GetUnreadCountForChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)

func (*OpenTracingLayerUserStore) GetUsersBatchForIndexing added in v5.22.0

func (s *OpenTracingLayerUserStore) GetUsersBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)

func (*OpenTracingLayerUserStore) InferSystemInstallDate added in v5.22.0

func (s *OpenTracingLayerUserStore) InferSystemInstallDate() (int64, *model.AppError)

func (*OpenTracingLayerUserStore) InvalidateProfileCacheForUser added in v5.22.0

func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)

func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCache added in v5.22.0

func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCache(channelId string)

func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser added in v5.22.0

func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)

func (*OpenTracingLayerUserStore) PermanentDelete added in v5.22.0

func (s *OpenTracingLayerUserStore) PermanentDelete(userId string) *model.AppError

func (*OpenTracingLayerUserStore) PromoteGuestToUser added in v5.22.0

func (s *OpenTracingLayerUserStore) PromoteGuestToUser(userID string) *model.AppError

func (*OpenTracingLayerUserStore) ResetLastPictureUpdate added in v5.22.0

func (s *OpenTracingLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError

func (*OpenTracingLayerUserStore) Save added in v5.22.0

func (*OpenTracingLayerUserStore) Search added in v5.22.0

func (s *OpenTracingLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) SearchInChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) SearchNotInChannel added in v5.22.0

func (s *OpenTracingLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) SearchNotInTeam added in v5.22.0

func (s *OpenTracingLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) SearchWithoutTeam added in v5.22.0

func (s *OpenTracingLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*OpenTracingLayerUserStore) Update added in v5.22.0

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

func (*OpenTracingLayerUserStore) UpdateAuthData added in v5.22.0

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

func (*OpenTracingLayerUserStore) UpdateFailedPasswordAttempts added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError

func (*OpenTracingLayerUserStore) UpdateLastPictureUpdate added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdateLastPictureUpdate(userId string) *model.AppError

func (*OpenTracingLayerUserStore) UpdateMfaActive added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdateMfaActive(userId string, active bool) *model.AppError

func (*OpenTracingLayerUserStore) UpdateMfaSecret added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdateMfaSecret(userId string, secret string) *model.AppError

func (*OpenTracingLayerUserStore) UpdatePassword added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdatePassword(userId string, newPassword string) *model.AppError

func (*OpenTracingLayerUserStore) UpdateUpdateAt added in v5.22.0

func (s *OpenTracingLayerUserStore) UpdateUpdateAt(userId string) (int64, *model.AppError)

func (*OpenTracingLayerUserStore) VerifyEmail added in v5.22.0

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

type OpenTracingLayerUserTermsOfServiceStore added in v5.22.0

type OpenTracingLayerUserTermsOfServiceStore struct {
	UserTermsOfServiceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserTermsOfServiceStore) Delete added in v5.22.0

func (s *OpenTracingLayerUserTermsOfServiceStore) Delete(userId string, termsOfServiceId string) *model.AppError

func (*OpenTracingLayerUserTermsOfServiceStore) GetByUser added in v5.22.0

func (*OpenTracingLayerUserTermsOfServiceStore) Save added in v5.22.0

type OpenTracingLayerWebhookStore added in v5.22.0

type OpenTracingLayerWebhookStore struct {
	WebhookStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerWebhookStore) AnalyticsIncomingCount added in v5.22.0

func (s *OpenTracingLayerWebhookStore) AnalyticsIncomingCount(teamId string) (int64, *model.AppError)

func (*OpenTracingLayerWebhookStore) AnalyticsOutgoingCount added in v5.22.0

func (s *OpenTracingLayerWebhookStore) AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)

func (*OpenTracingLayerWebhookStore) ClearCaches added in v5.22.0

func (s *OpenTracingLayerWebhookStore) ClearCaches()

func (*OpenTracingLayerWebhookStore) DeleteIncoming added in v5.22.0

func (s *OpenTracingLayerWebhookStore) DeleteIncoming(webhookId string, time int64) *model.AppError

func (*OpenTracingLayerWebhookStore) DeleteOutgoing added in v5.22.0

func (s *OpenTracingLayerWebhookStore) DeleteOutgoing(webhookId string, time int64) *model.AppError

func (*OpenTracingLayerWebhookStore) GetIncoming added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetIncomingByChannel added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetIncomingByTeam added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncomingByTeam(teamId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetIncomingByTeamByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncomingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetIncomingList added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetIncomingListByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetIncomingListByUser(userId string, offset int, limit int) ([]*model.IncomingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoing added in v5.22.0

func (*OpenTracingLayerWebhookStore) GetOutgoingByChannel added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannel(channelId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser(channelId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoingByTeam added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeam(teamId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser(teamId string, userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoingList added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) GetOutgoingListByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) GetOutgoingListByUser(userId string, offset int, limit int) ([]*model.OutgoingWebhook, *model.AppError)

func (*OpenTracingLayerWebhookStore) InvalidateWebhookCache added in v5.22.0

func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)

func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel added in v5.22.0

func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel(channelId string) *model.AppError

func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser(userId string) *model.AppError

func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel added in v5.22.0

func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelId string) *model.AppError

func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser added in v5.22.0

func (s *OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser(userId string) *model.AppError

func (*OpenTracingLayerWebhookStore) SaveIncoming added in v5.22.0

func (*OpenTracingLayerWebhookStore) SaveOutgoing added in v5.22.0

func (*OpenTracingLayerWebhookStore) UpdateIncoming added in v5.22.0

func (*OpenTracingLayerWebhookStore) UpdateOutgoing added in v5.22.0

type OrphanedRecord

type OrphanedRecord struct {
	ParentId *string
	ChildId  *string
}

type PluginStore

type PluginStore interface {
	SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, *model.AppError)
	CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
	CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)
	SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)
	Get(pluginId, key string) (*model.PluginKeyValue, *model.AppError)
	Delete(pluginId, key string) *model.AppError
	DeleteAllForPlugin(PluginId string) *model.AppError
	DeleteAllExpired() *model.AppError
	List(pluginId string, page, perPage int) ([]string, *model.AppError)
}

type PostStore

type PostStore interface {
	SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
	Save(post *model.Post) (*model.Post, *model.AppError)
	Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)
	Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)
	GetSingle(id string) (*model.Post, *model.AppError)
	Delete(postId string, time int64, deleteByID string) *model.AppError
	PermanentDeleteByUser(userId string) *model.AppError
	PermanentDeleteByChannel(channelId string) *model.AppError
	GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)
	GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)
	// @openTracingParams userId, teamId, offset, limit
	GetFlaggedPostsForTeam(userId, teamId string, offset int, limit int) (*model.PostList, *model.AppError)
	GetFlaggedPostsForChannel(userId, channelId string, offset int, limit int) (*model.PostList, *model.AppError)
	GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)
	GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)
	GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)
	GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)
	GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)
	GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)
	GetEtag(channelId string, allowFromCache bool) string
	Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)
	AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)
	AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)
	AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)
	ClearCaches()
	InvalidateLastPostTimeCache(channelId string)
	GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)
	Overwrite(post *model.Post) (*model.Post, *model.AppError)
	OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)
	GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
	GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
	GetOldest() (*model.Post, *model.AppError)
	GetMaxPostSize() int
	GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
	GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
	GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
	SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId, teamId string, isOrSearch, includeDeletedChannels bool, page, perPage int) (*model.PostSearchResults, *model.AppError)
}

type PreferenceStore

type PreferenceStore interface {
	Save(preferences *model.Preferences) *model.AppError
	GetCategory(userId string, category string) (model.Preferences, *model.AppError)
	Get(userId string, category string, name string) (*model.Preference, *model.AppError)
	GetAll(userId string) (model.Preferences, *model.AppError)
	Delete(userId, category, name string) *model.AppError
	DeleteCategory(userId string, category string) *model.AppError
	DeleteCategoryAndName(category string, name string) *model.AppError
	PermanentDeleteByUser(userId string) *model.AppError
	CleanupFlagsBatch(limit int64) (int64, *model.AppError)
}

type ReactionStore

type ReactionStore interface {
	Save(reaction *model.Reaction) (*model.Reaction, *model.AppError)
	Delete(reaction *model.Reaction) (*model.Reaction, *model.AppError)
	GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, *model.AppError)
	DeleteAllWithEmojiName(emojiName string) *model.AppError
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
	BulkGetForPosts(postIds []string) ([]*model.Reaction, *model.AppError)
}

type RelationalIntegrityCheckData

type RelationalIntegrityCheckData struct {
	ParentName   string
	ChildName    string
	ParentIdAttr string
	ChildIdAttr  string
	Records      []OrphanedRecord
}

type RoleStore

type RoleStore interface {
	Save(role *model.Role) (*model.Role, *model.AppError)
	Get(roleId string) (*model.Role, *model.AppError)
	GetAll() ([]*model.Role, *model.AppError)
	GetByName(name string) (*model.Role, *model.AppError)
	GetByNames(names []string) ([]*model.Role, *model.AppError)
	Delete(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.
	ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)

	// AllChannelSchemeRoles returns all of the roles associated to channel schemes.
	AllChannelSchemeRoles() ([]*model.Role, *model.AppError)

	// ChannelRolesUnderTeamRole returns all of the non-deleted roles that are affected by updates to the
	// given role.
	ChannelRolesUnderTeamRole(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
	UpdateExpiresAt(sessionId string, time int64) *model.AppError
	UpdateLastActivityAt(sessionId string, time int64) *model.AppError
	UpdateRoles(userId string, roles string) (string, *model.AppError)
	UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
	UpdateProps(session *model.Session) *model.AppError
	AnalyticsSessionCount() (int64, *model.AppError)
	Cleanup(expiryTime int64, batchSize int64)
}

type StatusStore

type StatusStore interface {
	SaveOrUpdate(status *model.Status) *model.AppError
	Get(userId string) (*model.Status, *model.AppError)
	GetByIds(userIds []string) ([]*model.Status, *model.AppError)
	ResetAll() *model.AppError
	GetTotalActiveUsersCount() (int64, *model.AppError)
	UpdateLastActivityAt(userId string, lastActivityAt int64) *model.AppError
}

type Store

type Store interface {
	Team() TeamStore
	Channel() ChannelStore
	Post() PostStore
	User() UserStore
	Bot() BotStore
	Audit() AuditStore
	ClusterDiscovery() ClusterDiscoveryStore
	Compliance() ComplianceStore
	Session() SessionStore
	OAuth() OAuthStore
	System() SystemStore
	Webhook() WebhookStore
	Command() CommandStore
	CommandWebhook() CommandWebhookStore
	Preference() PreferenceStore
	License() LicenseStore
	Token() TokenStore
	Emoji() EmojiStore
	Status() StatusStore
	FileInfo() FileInfoStore
	Reaction() ReactionStore
	Role() RoleStore
	Scheme() SchemeStore
	Job() JobStore
	UserAccessToken() UserAccessTokenStore
	ChannelMemberHistory() ChannelMemberHistoryStore
	Plugin() PluginStore
	TermsOfService() TermsOfServiceStore
	Group() GroupStore
	UserTermsOfService() UserTermsOfServiceStore
	LinkMetadata() LinkMetadataStore
	MarkSystemRanUnitTests()
	Close()
	LockToMaster()
	UnlockFromMaster()
	DropAllTables()
	RecycleDBConnections(d time.Duration)
	GetCurrentSchemaVersion() string
	GetDbVersion() (string, error)
	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 TeamStore

type TeamStore interface {
	Save(team *model.Team) (*model.Team, *model.AppError)
	Update(team *model.Team) (*model.Team, *model.AppError)
	Get(id string) (*model.Team, *model.AppError)
	GetByName(name string) (*model.Team, *model.AppError)
	GetByNames(name []string) ([]*model.Team, *model.AppError)
	SearchAll(term string) ([]*model.Team, *model.AppError)
	SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)
	SearchOpen(term string) ([]*model.Team, *model.AppError)
	SearchPrivate(term string) ([]*model.Team, *model.AppError)
	GetAll() ([]*model.Team, *model.AppError)
	GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)
	GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)
	GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
	GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
	GetAllTeamListing() ([]*model.Team, *model.AppError)
	GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)
	GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)
	GetByInviteId(inviteId string) (*model.Team, *model.AppError)
	PermanentDelete(teamId string) *model.AppError
	AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)
	AnalyticsPublicTeamCount() (int64, *model.AppError)
	AnalyticsPrivateTeamCount() (int64, *model.AppError)
	SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)
	SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
	UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
	UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)
	GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
	GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError)
	GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
	GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
	GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
	GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
	GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError)
	GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError)
	GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError)
	RemoveMember(teamId string, userId string) *model.AppError
	RemoveMembers(teamId string, userIds []string) *model.AppError
	RemoveAllMembersByTeam(teamId string) *model.AppError
	RemoveAllMembersByUser(userId string) *model.AppError
	UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
	GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
	MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
	ResetAllTeamSchemes() *model.AppError
	ClearAllCustomRoleAssignments() *model.AppError
	AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
	GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
	GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
	UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
	GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
	InvalidateAllTeamIdsForUser(userId string)
	ClearCaches()

	// UpdateMembersRole sets all of the given team members to admins and all of the other members of the team to
	// non-admin members.
	UpdateMembersRole(teamID string, userIDs []string) *model.AppError

	// GroupSyncedTeamCount returns the count of non-deleted group-constrained teams.
	GroupSyncedTeamCount() (int64, *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
	BotStore                  BotStore
	ChannelStore              ChannelStore
	ChannelMemberHistoryStore ChannelMemberHistoryStore
	ClusterDiscoveryStore     ClusterDiscoveryStore
	CommandStore              CommandStore
	CommandWebhookStore       CommandWebhookStore
	ComplianceStore           ComplianceStore
	EmojiStore                EmojiStore
	FileInfoStore             FileInfoStore
	GroupStore                GroupStore
	JobStore                  JobStore
	LicenseStore              LicenseStore
	LinkMetadataStore         LinkMetadataStore
	OAuthStore                OAuthStore
	PluginStore               PluginStore
	PostStore                 PostStore
	PreferenceStore           PreferenceStore
	ReactionStore             ReactionStore
	RoleStore                 RoleStore
	SchemeStore               SchemeStore
	SessionStore              SessionStore
	StatusStore               StatusStore
	SystemStore               SystemStore
	TeamStore                 TeamStore
	TermsOfServiceStore       TermsOfServiceStore
	TokenStore                TokenStore
	UserStore                 UserStore
	UserAccessTokenStore      UserAccessTokenStore
	UserTermsOfServiceStore   UserTermsOfServiceStore
	WebhookStore              WebhookStore
}

func NewTimerLayer

func NewTimerLayer(childStore Store, metrics einterfaces.MetricsInterface) *TimerLayer

func (*TimerLayer) Audit

func (s *TimerLayer) Audit() AuditStore

func (*TimerLayer) Bot

func (s *TimerLayer) Bot() BotStore

func (*TimerLayer) Channel

func (s *TimerLayer) Channel() ChannelStore

func (*TimerLayer) ChannelMemberHistory

func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore

func (*TimerLayer) Close

func (s *TimerLayer) Close()

func (*TimerLayer) ClusterDiscovery

func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore

func (*TimerLayer) Command

func (s *TimerLayer) Command() CommandStore

func (*TimerLayer) CommandWebhook

func (s *TimerLayer) CommandWebhook() CommandWebhookStore

func (*TimerLayer) Compliance

func (s *TimerLayer) Compliance() ComplianceStore

func (*TimerLayer) DropAllTables

func (s *TimerLayer) DropAllTables()

func (*TimerLayer) Emoji

func (s *TimerLayer) Emoji() EmojiStore

func (*TimerLayer) FileInfo

func (s *TimerLayer) FileInfo() FileInfoStore

func (*TimerLayer) GetCurrentSchemaVersion

func (s *TimerLayer) GetCurrentSchemaVersion() string

func (*TimerLayer) Group

func (s *TimerLayer) Group() GroupStore

func (*TimerLayer) Job

func (s *TimerLayer) Job() JobStore

func (*TimerLayer) License

func (s *TimerLayer) License() LicenseStore

func (*TimerLayer) LinkMetadata

func (s *TimerLayer) LinkMetadata() LinkMetadataStore

func (*TimerLayer) LockToMaster

func (s *TimerLayer) LockToMaster()

func (*TimerLayer) MarkSystemRanUnitTests

func (s *TimerLayer) MarkSystemRanUnitTests()

func (*TimerLayer) OAuth

func (s *TimerLayer) OAuth() OAuthStore

func (*TimerLayer) Plugin

func (s *TimerLayer) Plugin() PluginStore

func (*TimerLayer) Post

func (s *TimerLayer) Post() PostStore

func (*TimerLayer) Preference

func (s *TimerLayer) Preference() PreferenceStore

func (*TimerLayer) Reaction

func (s *TimerLayer) Reaction() ReactionStore

func (*TimerLayer) Role

func (s *TimerLayer) Role() RoleStore

func (*TimerLayer) Scheme

func (s *TimerLayer) Scheme() SchemeStore

func (*TimerLayer) Session

func (s *TimerLayer) Session() SessionStore

func (*TimerLayer) SetContext added in v5.22.0

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

func (s *TimerLayer) Team() TeamStore

func (*TimerLayer) TermsOfService

func (s *TimerLayer) TermsOfService() TermsOfServiceStore

func (*TimerLayer) Token

func (s *TimerLayer) Token() TokenStore

func (*TimerLayer) TotalMasterDbConnections

func (s *TimerLayer) TotalMasterDbConnections() int

func (*TimerLayer) TotalReadDbConnections

func (s *TimerLayer) TotalReadDbConnections() int

func (*TimerLayer) TotalSearchDbConnections

func (s *TimerLayer) TotalSearchDbConnections() int

func (*TimerLayer) UnlockFromMaster

func (s *TimerLayer) UnlockFromMaster()

func (*TimerLayer) User

func (s *TimerLayer) User() UserStore

func (*TimerLayer) UserAccessToken

func (s *TimerLayer) UserAccessToken() UserAccessTokenStore

func (*TimerLayer) UserTermsOfService

func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore

func (*TimerLayer) Webhook

func (s *TimerLayer) Webhook() WebhookStore

type TimerLayerAuditStore

type TimerLayerAuditStore struct {
	AuditStore
	Root *TimerLayer
}

func (*TimerLayerAuditStore) 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 TimerLayerBotStore

type TimerLayerBotStore struct {
	BotStore
	Root *TimerLayer
}

func (*TimerLayerBotStore) Get

func (s *TimerLayerBotStore) Get(userId string, includeDeleted bool) (*model.Bot, error)

func (*TimerLayerBotStore) GetAll

func (s *TimerLayerBotStore) GetAll(options *model.BotGetOptions) ([]*model.Bot, error)

func (*TimerLayerBotStore) PermanentDelete

func (s *TimerLayerBotStore) PermanentDelete(userId string) error

func (*TimerLayerBotStore) Save

func (s *TimerLayerBotStore) Save(bot *model.Bot) (*model.Bot, error)

func (*TimerLayerBotStore) Update

func (s *TimerLayerBotStore) Update(bot *model.Bot) (*model.Bot, error)

type TimerLayerChannelMemberHistoryStore

type TimerLayerChannelMemberHistoryStore struct {
	ChannelMemberHistoryStore
	Root *TimerLayer
}

func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring

func (s *TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring(startTime int64, endTime int64, channelId string) ([]*model.ChannelMemberHistoryResult, *model.AppError)

func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent

func (s *TimerLayerChannelMemberHistoryStore) LogJoinEvent(userId string, channelId string, joinTime int64) *model.AppError

func (*TimerLayerChannelMemberHistoryStore) LogLeaveEvent

func (s *TimerLayerChannelMemberHistoryStore) LogLeaveEvent(userId string, channelId string, leaveTime int64) *model.AppError

func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch

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

type TimerLayerChannelStore

type TimerLayerChannelStore struct {
	ChannelStore
	Root *TimerLayer
}

func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount

func (s *TimerLayerChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType string) (int64, *model.AppError)

func (*TimerLayerChannelStore) AnalyticsTypeCount

func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, *model.AppError)

func (*TimerLayerChannelStore) AutocompleteInTeam

func (s *TimerLayerChannelStore) AutocompleteInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) AutocompleteInTeamForSearch

func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamId string, userId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments

func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() *model.AppError

func (*TimerLayerChannelStore) ClearCaches

func (s *TimerLayerChannelStore) ClearCaches()

func (*TimerLayerChannelStore) CountPostsAfter added in v5.20.0

func (s *TimerLayerChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, *model.AppError)

func (*TimerLayerChannelStore) CreateDirectChannel

func (s *TimerLayerChannelStore) CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, error)

func (*TimerLayerChannelStore) Delete

func (s *TimerLayerChannelStore) Delete(channelId string, time int64) *model.AppError

func (*TimerLayerChannelStore) Get

func (s *TimerLayerChannelStore) Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetAll

func (s *TimerLayerChannelStore) GetAll(teamId string) ([]*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetAllChannelMembersForUser

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

func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel

func (s *TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)

func (*TimerLayerChannelStore) GetAllChannels

func (s *TimerLayerChannelStore) GetAllChannels(page int, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)

func (*TimerLayerChannelStore) GetAllChannelsCount

func (s *TimerLayerChannelStore) GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)

func (*TimerLayerChannelStore) GetAllChannelsForExportAfter

func (s *TimerLayerChannelStore) GetAllChannelsForExportAfter(limit int, afterId string) ([]*model.ChannelForExport, *model.AppError)

func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter

func (s *TimerLayerChannelStore) GetAllDirectChannelsForExportAfter(limit int, afterId string) ([]*model.DirectChannelForExport, *model.AppError)

func (*TimerLayerChannelStore) GetByName

func (s *TimerLayerChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetByNameIncludeDeleted

func (s *TimerLayerChannelStore) GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetByNames

func (s *TimerLayerChannelStore) GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetChannelCounts

func (s *TimerLayerChannelStore) GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)

func (*TimerLayerChannelStore) GetChannelMembersForExport

func (s *TimerLayerChannelStore) GetChannelMembersForExport(userId string, teamId string) ([]*model.ChannelMemberForExport, *model.AppError)

func (*TimerLayerChannelStore) GetChannelMembersTimezones

func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)

func (*TimerLayerChannelStore) GetChannelUnread

func (s *TimerLayerChannelStore) GetChannelUnread(channelId string, userId string) (*model.ChannelUnread, *model.AppError)

func (*TimerLayerChannelStore) GetChannels

func (s *TimerLayerChannelStore) GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetChannelsBatchForIndexing

func (s *TimerLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetChannelsByIds

func (s *TimerLayerChannelStore) GetChannelsByIds(channelIds []string, includeDeleted bool) ([]*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetChannelsByScheme

func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeId string, offset int, limit int) (model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetDeleted

func (s *TimerLayerChannelStore) GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetDeletedByName

func (s *TimerLayerChannelStore) GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetForPost

func (s *TimerLayerChannelStore) GetForPost(postId string) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetFromMaster

func (s *TimerLayerChannelStore) GetFromMaster(id string) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) GetGuestCount

func (s *TimerLayerChannelStore) GetGuestCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*TimerLayerChannelStore) GetMember

func (s *TimerLayerChannelStore) GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)

func (*TimerLayerChannelStore) GetMemberCount

func (s *TimerLayerChannelStore) GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*TimerLayerChannelStore) GetMemberCountFromCache

func (s *TimerLayerChannelStore) GetMemberCountFromCache(channelId string) int64

func (*TimerLayerChannelStore) GetMemberCountsByGroup added in v5.24.0

func (s *TimerLayerChannelStore) GetMemberCountsByGroup(channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, *model.AppError)

func (*TimerLayerChannelStore) GetMemberForPost

func (s *TimerLayerChannelStore) GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)

func (*TimerLayerChannelStore) GetMembers

func (s *TimerLayerChannelStore) GetMembers(channelId string, offset int, limit int) (*model.ChannelMembers, *model.AppError)

func (*TimerLayerChannelStore) GetMembersByIds

func (s *TimerLayerChannelStore) GetMembersByIds(channelId string, userIds []string) (*model.ChannelMembers, *model.AppError)

func (*TimerLayerChannelStore) GetMembersForUser

func (s *TimerLayerChannelStore) GetMembersForUser(teamId string, userId string) (*model.ChannelMembers, *model.AppError)

func (*TimerLayerChannelStore) GetMembersForUserWithPagination

func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, *model.AppError)

func (*TimerLayerChannelStore) GetMoreChannels

func (s *TimerLayerChannelStore) GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetPinnedPostCount

func (s *TimerLayerChannelStore) GetPinnedPostCount(channelId string, allowFromCache bool) (int64, *model.AppError)

func (*TimerLayerChannelStore) GetPinnedPosts

func (s *TimerLayerChannelStore) GetPinnedPosts(channelId string) (*model.PostList, *model.AppError)

func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam

func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetPublicChannelsForTeam

func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GetTeamChannels

func (s *TimerLayerChannelStore) GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) GroupSyncedChannelCount added in v5.22.0

func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, *model.AppError)

func (*TimerLayerChannelStore) IncrementMentionCount

func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) *model.AppError

func (*TimerLayerChannelStore) InvalidateAllChannelMembersForUser

func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)

func (*TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps

func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)

func (*TimerLayerChannelStore) InvalidateChannel

func (s *TimerLayerChannelStore) InvalidateChannel(id string)

func (*TimerLayerChannelStore) InvalidateChannelByName

func (s *TimerLayerChannelStore) InvalidateChannelByName(teamId string, name string)

func (*TimerLayerChannelStore) InvalidateGuestCount

func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)

func (*TimerLayerChannelStore) InvalidateMemberCount

func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)

func (*TimerLayerChannelStore) InvalidatePinnedPostCount

func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)

func (*TimerLayerChannelStore) IsUserInChannelUseCache

func (s *TimerLayerChannelStore) IsUserInChannelUseCache(userId string, channelId string) bool

func (*TimerLayerChannelStore) MigrateChannelMembers

func (s *TimerLayerChannelStore) MigrateChannelMembers(fromChannelId string, fromUserId string) (map[string]string, *model.AppError)

func (*TimerLayerChannelStore) MigratePublicChannels

func (s *TimerLayerChannelStore) MigratePublicChannels() error

func (*TimerLayerChannelStore) PermanentDelete

func (s *TimerLayerChannelStore) PermanentDelete(channelId string) *model.AppError

func (*TimerLayerChannelStore) PermanentDeleteByTeam

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

func (*TimerLayerChannelStore) PermanentDeleteMembersByChannel

func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelId string) *model.AppError

func (*TimerLayerChannelStore) PermanentDeleteMembersByUser

func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userId string) *model.AppError

func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers

func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelId string) *model.AppError

func (*TimerLayerChannelStore) RemoveMember

func (s *TimerLayerChannelStore) RemoveMember(channelId string, userId string) *model.AppError

func (*TimerLayerChannelStore) RemoveMembers added in v5.24.0

func (s *TimerLayerChannelStore) RemoveMembers(channelId string, userIds []string) *model.AppError

func (*TimerLayerChannelStore) ResetAllChannelSchemes

func (s *TimerLayerChannelStore) ResetAllChannelSchemes() *model.AppError

func (*TimerLayerChannelStore) Restore

func (s *TimerLayerChannelStore) Restore(channelId string, time int64) *model.AppError

func (*TimerLayerChannelStore) Save

func (s *TimerLayerChannelStore) Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, error)

func (*TimerLayerChannelStore) SaveDirectChannel

func (s *TimerLayerChannelStore) SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, error)

func (*TimerLayerChannelStore) SaveMember

func (*TimerLayerChannelStore) SaveMultipleMembers added in v5.24.0

func (s *TimerLayerChannelStore) SaveMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)

func (*TimerLayerChannelStore) SearchAllChannels

func (*TimerLayerChannelStore) SearchArchivedInTeam added in v5.20.0

func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamId string, term string, userId string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) SearchForUserInTeam

func (s *TimerLayerChannelStore) SearchForUserInTeam(userId string, teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) SearchGroupChannels

func (s *TimerLayerChannelStore) SearchGroupChannels(userId string, term string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) SearchInTeam

func (s *TimerLayerChannelStore) SearchInTeam(teamId string, term string, includeDeleted bool) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) SearchMore

func (s *TimerLayerChannelStore) SearchMore(userId string, teamId string, term string) (*model.ChannelList, *model.AppError)

func (*TimerLayerChannelStore) SetDeleteAt

func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError

func (*TimerLayerChannelStore) Update

func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError)

func (*TimerLayerChannelStore) UpdateLastViewedAt

func (s *TimerLayerChannelStore) UpdateLastViewedAt(channelIds []string, userId string) (map[string]int64, *model.AppError)

func (*TimerLayerChannelStore) UpdateLastViewedAtPost added in v5.20.0

func (s *TimerLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int) (*model.ChannelUnreadAt, *model.AppError)

func (*TimerLayerChannelStore) UpdateMember

func (*TimerLayerChannelStore) UpdateMembersRole added in v5.20.0

func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *model.AppError

func (*TimerLayerChannelStore) UpdateMultipleMembers added in v5.24.0

func (s *TimerLayerChannelStore) UpdateMultipleMembers(members []*model.ChannelMember) ([]*model.ChannelMember, *model.AppError)

func (*TimerLayerChannelStore) UserBelongsToChannels

func (s *TimerLayerChannelStore) UserBelongsToChannels(userId string, channelIds []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 added in v5.22.0

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 TimerLayerGroupStore

type TimerLayerGroupStore struct {
	GroupStore
	Root *TimerLayer
}

func (*TimerLayerGroupStore) AdminRoleGroupsForSyncableMember added in v5.20.0

func (s *TimerLayerGroupStore) AdminRoleGroupsForSyncableMember(userID string, syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers

func (s *TimerLayerGroupStore) ChannelMembersMinusGroupMembers(channelID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)

func (*TimerLayerGroupStore) ChannelMembersToAdd

func (s *TimerLayerGroupStore) ChannelMembersToAdd(since int64, channelID *string) ([]*model.UserChannelIDPair, *model.AppError)

func (*TimerLayerGroupStore) ChannelMembersToRemove

func (s *TimerLayerGroupStore) ChannelMembersToRemove(channelID *string) ([]*model.ChannelMember, *model.AppError)

func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers

func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, *model.AppError)

func (*TimerLayerGroupStore) CountGroupsByChannel

func (s *TimerLayerGroupStore) CountGroupsByChannel(channelId string, opts model.GroupSearchOpts) (int64, *model.AppError)

func (*TimerLayerGroupStore) CountGroupsByTeam

func (s *TimerLayerGroupStore) CountGroupsByTeam(teamId string, opts model.GroupSearchOpts) (int64, *model.AppError)

func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers

func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, *model.AppError)

func (*TimerLayerGroupStore) Create

func (s *TimerLayerGroupStore) Create(group *model.Group) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) CreateGroupSyncable

func (s *TimerLayerGroupStore) CreateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)

func (*TimerLayerGroupStore) Delete

func (s *TimerLayerGroupStore) Delete(groupID string) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) DeleteGroupSyncable

func (s *TimerLayerGroupStore) DeleteGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)

func (*TimerLayerGroupStore) DeleteMember

func (s *TimerLayerGroupStore) DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)

func (*TimerLayerGroupStore) DistinctGroupMemberCount added in v5.22.0

func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, *model.AppError)

func (*TimerLayerGroupStore) Get

func (s *TimerLayerGroupStore) Get(groupID string) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetAllBySource

func (s *TimerLayerGroupStore) GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId

func (s *TimerLayerGroupStore) GetAllGroupSyncablesByGroupId(groupID string, syncableType model.GroupSyncableType) ([]*model.GroupSyncable, *model.AppError)

func (*TimerLayerGroupStore) GetByIDs

func (s *TimerLayerGroupStore) GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetByName

func (s *TimerLayerGroupStore) GetByName(name string, opts model.GroupSearchOpts) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetByRemoteID

func (s *TimerLayerGroupStore) GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetByUser

func (s *TimerLayerGroupStore) GetByUser(userId string) ([]*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetGroupSyncable

func (s *TimerLayerGroupStore) GetGroupSyncable(groupID string, syncableID string, syncableType model.GroupSyncableType) (*model.GroupSyncable, *model.AppError)

func (*TimerLayerGroupStore) GetGroups

func (s *TimerLayerGroupStore) GetGroups(page int, perPage int, opts model.GroupSearchOpts) ([]*model.Group, *model.AppError)

func (*TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam added in v5.24.0

func (s *TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam(teamId string, opts model.GroupSearchOpts) (map[string][]*model.GroupWithSchemeAdmin, *model.AppError)

func (*TimerLayerGroupStore) GetGroupsByChannel

func (s *TimerLayerGroupStore) GetGroupsByChannel(channelId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)

func (*TimerLayerGroupStore) GetGroupsByTeam

func (s *TimerLayerGroupStore) GetGroupsByTeam(teamId string, opts model.GroupSearchOpts) ([]*model.GroupWithSchemeAdmin, *model.AppError)

func (*TimerLayerGroupStore) GetMemberCount

func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, *model.AppError)

func (*TimerLayerGroupStore) GetMemberUsers

func (s *TimerLayerGroupStore) GetMemberUsers(groupID string) ([]*model.User, *model.AppError)

func (*TimerLayerGroupStore) GetMemberUsersInTeam added in v5.24.0

func (s *TimerLayerGroupStore) GetMemberUsersInTeam(groupID string, teamID string) ([]*model.User, *model.AppError)

func (*TimerLayerGroupStore) GetMemberUsersNotInChannel added in v5.24.0

func (s *TimerLayerGroupStore) GetMemberUsersNotInChannel(groupID string, channelID string) ([]*model.User, *model.AppError)

func (*TimerLayerGroupStore) GetMemberUsersPage

func (s *TimerLayerGroupStore) GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)

func (*TimerLayerGroupStore) GroupChannelCount added in v5.22.0

func (s *TimerLayerGroupStore) GroupChannelCount() (int64, *model.AppError)

func (*TimerLayerGroupStore) GroupCount added in v5.22.0

func (s *TimerLayerGroupStore) GroupCount() (int64, *model.AppError)

func (*TimerLayerGroupStore) GroupCountWithAllowReference added in v5.24.0

func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, *model.AppError)

func (*TimerLayerGroupStore) GroupMemberCount added in v5.22.0

func (s *TimerLayerGroupStore) GroupMemberCount() (int64, *model.AppError)

func (*TimerLayerGroupStore) GroupTeamCount added in v5.22.0

func (s *TimerLayerGroupStore) GroupTeamCount() (int64, *model.AppError)

func (*TimerLayerGroupStore) PermanentDeleteMembersByUser added in v5.20.0

func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userId string) *model.AppError

func (*TimerLayerGroupStore) PermittedSyncableAdmins added in v5.20.0

func (s *TimerLayerGroupStore) PermittedSyncableAdmins(syncableID string, syncableType model.GroupSyncableType) ([]string, *model.AppError)

func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers

func (s *TimerLayerGroupStore) TeamMembersMinusGroupMembers(teamID string, groupIDs []string, page int, perPage int) ([]*model.UserWithGroups, *model.AppError)

func (*TimerLayerGroupStore) TeamMembersToAdd

func (s *TimerLayerGroupStore) TeamMembersToAdd(since int64, teamID *string) ([]*model.UserTeamIDPair, *model.AppError)

func (*TimerLayerGroupStore) TeamMembersToRemove

func (s *TimerLayerGroupStore) TeamMembersToRemove(teamID *string) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerGroupStore) Update

func (s *TimerLayerGroupStore) Update(group *model.Group) (*model.Group, *model.AppError)

func (*TimerLayerGroupStore) UpdateGroupSyncable

func (s *TimerLayerGroupStore) UpdateGroupSyncable(groupSyncable *model.GroupSyncable) (*model.GroupSyncable, *model.AppError)

func (*TimerLayerGroupStore) UpsertMember

func (s *TimerLayerGroupStore) UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)

type TimerLayerJobStore

type TimerLayerJobStore struct {
	JobStore
	Root *TimerLayer
}

func (*TimerLayerJobStore) Delete

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

func (*TimerLayerJobStore) 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 TimerLayerPluginStore

type TimerLayerPluginStore struct {
	PluginStore
	Root *TimerLayer
}

func (*TimerLayerPluginStore) CompareAndDelete added in v5.22.0

func (s *TimerLayerPluginStore) CompareAndDelete(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)

func (*TimerLayerPluginStore) CompareAndSet

func (s *TimerLayerPluginStore) CompareAndSet(keyVal *model.PluginKeyValue, oldValue []byte) (bool, *model.AppError)

func (*TimerLayerPluginStore) Delete

func (s *TimerLayerPluginStore) Delete(pluginId string, key string) *model.AppError

func (*TimerLayerPluginStore) DeleteAllExpired

func (s *TimerLayerPluginStore) DeleteAllExpired() *model.AppError

func (*TimerLayerPluginStore) DeleteAllForPlugin

func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginId string) *model.AppError

func (*TimerLayerPluginStore) Get

func (*TimerLayerPluginStore) List

func (s *TimerLayerPluginStore) List(pluginId string, page int, perPage int) ([]string, *model.AppError)

func (*TimerLayerPluginStore) SaveOrUpdate

func (*TimerLayerPluginStore) SetWithOptions added in v5.20.0

func (s *TimerLayerPluginStore) SetWithOptions(pluginId string, key string, value []byte, options model.PluginKVSetOptions) (bool, *model.AppError)

type TimerLayerPostStore

type TimerLayerPostStore struct {
	PostStore
	Root *TimerLayer
}

func (*TimerLayerPostStore) AnalyticsPostCount

func (s *TimerLayerPostStore) AnalyticsPostCount(teamId string, mustHaveFile bool, mustHaveHashtag bool) (int64, *model.AppError)

func (*TimerLayerPostStore) AnalyticsPostCountsByDay

func (s *TimerLayerPostStore) AnalyticsPostCountsByDay(options *model.AnalyticsPostCountsOptions) (model.AnalyticsRows, *model.AppError)

func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay

func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) (model.AnalyticsRows, *model.AppError)

func (*TimerLayerPostStore) ClearCaches

func (s *TimerLayerPostStore) ClearCaches()

func (*TimerLayerPostStore) Delete

func (s *TimerLayerPostStore) Delete(postId string, time int64, deleteByID string) *model.AppError

func (*TimerLayerPostStore) Get

func (s *TimerLayerPostStore) Get(id string, skipFetchThreads bool) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter

func (s *TimerLayerPostStore) GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)

func (*TimerLayerPostStore) GetEtag

func (s *TimerLayerPostStore) GetEtag(channelId string, allowFromCache bool) string

func (*TimerLayerPostStore) GetFlaggedPosts

func (s *TimerLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetFlaggedPostsForChannel

func (s *TimerLayerPostStore) GetFlaggedPostsForChannel(userId string, channelId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetFlaggedPostsForTeam

func (s *TimerLayerPostStore) GetFlaggedPostsForTeam(userId string, teamId string, offset int, limit int) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetMaxPostSize

func (s *TimerLayerPostStore) GetMaxPostSize() int

func (*TimerLayerPostStore) GetOldest

func (s *TimerLayerPostStore) GetOldest() (*model.Post, *model.AppError)

func (*TimerLayerPostStore) GetParentsForExportAfter

func (s *TimerLayerPostStore) GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)

func (*TimerLayerPostStore) GetPostAfterTime

func (s *TimerLayerPostStore) GetPostAfterTime(channelId string, time int64) (*model.Post, *model.AppError)

func (*TimerLayerPostStore) GetPostIdAfterTime

func (s *TimerLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, *model.AppError)

func (*TimerLayerPostStore) GetPostIdBeforeTime

func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, *model.AppError)

func (*TimerLayerPostStore) GetPosts

func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsAfter

func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsBatchForIndexing

func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)

func (*TimerLayerPostStore) GetPostsBefore

func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsByIds

func (s *TimerLayerPostStore) GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)

func (*TimerLayerPostStore) GetPostsCreatedAt

func (s *TimerLayerPostStore) GetPostsCreatedAt(channelId string, time int64) ([]*model.Post, *model.AppError)

func (*TimerLayerPostStore) GetPostsSince

func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetRepliesForExport

func (s *TimerLayerPostStore) GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)

func (*TimerLayerPostStore) GetSingle

func (s *TimerLayerPostStore) GetSingle(id string) (*model.Post, *model.AppError)

func (*TimerLayerPostStore) InvalidateLastPostTimeCache

func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)

func (*TimerLayerPostStore) Overwrite

func (s *TimerLayerPostStore) Overwrite(post *model.Post) (*model.Post, *model.AppError)

func (*TimerLayerPostStore) OverwriteMultiple added in v5.24.0

func (s *TimerLayerPostStore) OverwriteMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)

func (*TimerLayerPostStore) PermanentDeleteBatch

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

func (*TimerLayerPostStore) PermanentDeleteByChannel

func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) *model.AppError

func (*TimerLayerPostStore) PermanentDeleteByUser

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

func (*TimerLayerPostStore) Save

func (s *TimerLayerPostStore) Save(post *model.Post) (*model.Post, *model.AppError)

func (*TimerLayerPostStore) SaveMultiple added in v5.22.0

func (s *TimerLayerPostStore) SaveMultiple(posts []*model.Post) ([]*model.Post, int, *model.AppError)

func (*TimerLayerPostStore) Search

func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) SearchPostsInTeamForUser added in v5.22.0

func (s *TimerLayerPostStore) SearchPostsInTeamForUser(paramsList []*model.SearchParams, userId string, teamId string, isOrSearch bool, includeDeletedChannels bool, page int, perPage int) (*model.PostSearchResults, *model.AppError)

func (*TimerLayerPostStore) Update

func (s *TimerLayerPostStore) Update(newPost *model.Post, oldPost *model.Post) (*model.Post, *model.AppError)

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) AllChannelSchemeRoles added in v5.22.0

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

func (*TimerLayerRoleStore) ChannelHigherScopedPermissions added in v5.22.0

func (s *TimerLayerRoleStore) ChannelHigherScopedPermissions(roleNames []string) (map[string]*model.RolePermissions, *model.AppError)

func (*TimerLayerRoleStore) ChannelRolesUnderTeamRole added in v5.22.0

func (s *TimerLayerRoleStore) ChannelRolesUnderTeamRole(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 added in v5.24.0

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

func (*TimerLayerSchemeStore) CountWithoutPermission added in v5.24.0

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) UpdateExpiresAt added in v5.24.0

func (s *TimerLayerSessionStore) UpdateExpiresAt(sessionId string, time int64) *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 TimerLayerTeamStore

type TimerLayerTeamStore struct {
	TeamStore
	Root *TimerLayer
}

func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme

func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)

func (*TimerLayerTeamStore) AnalyticsPrivateTeamCount

func (s *TimerLayerTeamStore) AnalyticsPrivateTeamCount() (int64, *model.AppError)

func (*TimerLayerTeamStore) AnalyticsPublicTeamCount

func (s *TimerLayerTeamStore) AnalyticsPublicTeamCount() (int64, *model.AppError)

func (*TimerLayerTeamStore) AnalyticsTeamCount

func (s *TimerLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (int64, *model.AppError)

func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments

func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() *model.AppError

func (*TimerLayerTeamStore) ClearCaches

func (s *TimerLayerTeamStore) ClearCaches()

func (*TimerLayerTeamStore) Get

func (*TimerLayerTeamStore) GetActiveMemberCount

func (s *TimerLayerTeamStore) GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)

func (*TimerLayerTeamStore) GetAll

func (s *TimerLayerTeamStore) GetAll() ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllForExportAfter

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

func (*TimerLayerTeamStore) GetAllPage

func (s *TimerLayerTeamStore) GetAllPage(offset int, limit int) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllPrivateTeamListing

func (s *TimerLayerTeamStore) GetAllPrivateTeamListing() ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllPrivateTeamPageListing

func (s *TimerLayerTeamStore) GetAllPrivateTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllPublicTeamPageListing

func (s *TimerLayerTeamStore) GetAllPublicTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllTeamListing

func (s *TimerLayerTeamStore) GetAllTeamListing() ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetAllTeamPageListing

func (s *TimerLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetByInviteId

func (s *TimerLayerTeamStore) GetByInviteId(inviteId string) (*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetByName

func (s *TimerLayerTeamStore) GetByName(name string) (*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetByNames added in v5.24.0

func (s *TimerLayerTeamStore) GetByNames(name []string) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams

func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamId string, userId string) ([]*model.ChannelUnread, *model.AppError)

func (*TimerLayerTeamStore) GetChannelUnreadsForTeam

func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamId string, userId string) ([]*model.ChannelUnread, *model.AppError)

func (*TimerLayerTeamStore) GetMember

func (s *TimerLayerTeamStore) GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) GetMembers

func (s *TimerLayerTeamStore) GetMembers(teamId string, offset int, limit int, teamMembersGetOptions *model.TeamMembersGetOptions) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) GetMembersByIds

func (s *TimerLayerTeamStore) GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) GetTeamMembersForExport

func (s *TimerLayerTeamStore) GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)

func (*TimerLayerTeamStore) GetTeamsByScheme

func (s *TimerLayerTeamStore) GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetTeamsByUserId

func (s *TimerLayerTeamStore) GetTeamsByUserId(userId string) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) GetTeamsForUser

func (s *TimerLayerTeamStore) GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) GetTeamsForUserWithPagination

func (s *TimerLayerTeamStore) GetTeamsForUserWithPagination(userId string, page int, perPage int) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) GetTotalMemberCount

func (s *TimerLayerTeamStore) GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)

func (*TimerLayerTeamStore) GetUserTeamIds

func (s *TimerLayerTeamStore) GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)

func (*TimerLayerTeamStore) GroupSyncedTeamCount added in v5.22.0

func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, *model.AppError)

func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser

func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)

func (*TimerLayerTeamStore) MigrateTeamMembers

func (s *TimerLayerTeamStore) MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)

func (*TimerLayerTeamStore) PermanentDelete

func (s *TimerLayerTeamStore) PermanentDelete(teamId string) *model.AppError

func (*TimerLayerTeamStore) RemoveAllMembersByTeam

func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamId string) *model.AppError

func (*TimerLayerTeamStore) RemoveAllMembersByUser

func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userId string) *model.AppError

func (*TimerLayerTeamStore) RemoveMember

func (s *TimerLayerTeamStore) RemoveMember(teamId string, userId string) *model.AppError

func (*TimerLayerTeamStore) RemoveMembers added in v5.24.0

func (s *TimerLayerTeamStore) RemoveMembers(teamId string, userIds []string) *model.AppError

func (*TimerLayerTeamStore) ResetAllTeamSchemes

func (s *TimerLayerTeamStore) ResetAllTeamSchemes() *model.AppError

func (*TimerLayerTeamStore) Save

func (s *TimerLayerTeamStore) Save(team *model.Team) (*model.Team, *model.AppError)

func (*TimerLayerTeamStore) SaveMember

func (s *TimerLayerTeamStore) SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) SaveMultipleMembers added in v5.24.0

func (s *TimerLayerTeamStore) SaveMultipleMembers(members []*model.TeamMember, maxUsersPerTeam int) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) SearchAll

func (s *TimerLayerTeamStore) SearchAll(term string) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) SearchAllPaged added in v5.20.0

func (s *TimerLayerTeamStore) SearchAllPaged(term string, page int, perPage int) ([]*model.Team, int64, *model.AppError)

func (*TimerLayerTeamStore) SearchOpen

func (s *TimerLayerTeamStore) SearchOpen(term string) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) SearchPrivate

func (s *TimerLayerTeamStore) SearchPrivate(term string) ([]*model.Team, *model.AppError)

func (*TimerLayerTeamStore) Update

func (s *TimerLayerTeamStore) Update(team *model.Team) (*model.Team, *model.AppError)

func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate

func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError

func (*TimerLayerTeamStore) UpdateMember

func (s *TimerLayerTeamStore) UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) UpdateMembersRole added in v5.20.0

func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *model.AppError

func (*TimerLayerTeamStore) UpdateMultipleMembers added in v5.24.0

func (s *TimerLayerTeamStore) UpdateMultipleMembers(members []*model.TeamMember) ([]*model.TeamMember, *model.AppError)

func (*TimerLayerTeamStore) UserBelongsToTeams

func (s *TimerLayerTeamStore) UserBelongsToTeams(userId string, teamIds []string) (bool, *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) AnalyticsGetGuestCount added in v5.24.0

func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (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) AutocompleteUsersInChannel added in v5.22.0

func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)

func (*TimerLayerUserStore) ClearAllCustomRoleAssignments

func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() *model.AppError

func (*TimerLayerUserStore) ClearCaches

func (s *TimerLayerUserStore) ClearCaches()

func (*TimerLayerUserStore) Count

func (*TimerLayerUserStore) DeactivateGuests added in v5.20.0

func (s *TimerLayerUserStore) DeactivateGuests() ([]string, *model.AppError)

func (*TimerLayerUserStore) DemoteUserToGuest

func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) *model.AppError

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) GetAllNotInAuthService added in v5.24.0

func (s *TimerLayerUserStore) GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetAllProfiles

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

func (*TimerLayerUserStore) GetAllProfilesInChannel

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

func (*TimerLayerUserStore) GetAllUsingAuthService

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

func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel

func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *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) GetChannelGroupUsers

func (s *TimerLayerUserStore) GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetEtagForAllProfiles

func (s *TimerLayerUserStore) GetEtagForAllProfiles() string

func (*TimerLayerUserStore) GetEtagForProfiles

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

func (*TimerLayerUserStore) GetEtagForProfilesNotInTeam

func (s *TimerLayerUserStore) GetEtagForProfilesNotInTeam(teamId string) string

func (*TimerLayerUserStore) GetForLogin

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

func (*TimerLayerUserStore) GetKnownUsers added in v5.23.0

func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, *model.AppError)

func (*TimerLayerUserStore) GetNewUsersForTeam

func (s *TimerLayerUserStore) GetNewUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser

func (s *TimerLayerUserStore) GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*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) GetProfilesInChannel

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

func (*TimerLayerUserStore) GetProfilesInChannelByStatus

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

func (*TimerLayerUserStore) GetProfilesNotInChannel

func (s *TimerLayerUserStore) GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetProfilesNotInTeam

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

func (*TimerLayerUserStore) GetProfilesWithoutTeam

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

func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam

func (s *TimerLayerUserStore) GetRecentlyActiveUsersForTeam(teamId string, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetSystemAdminProfiles

func (s *TimerLayerUserStore) GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetTeamGroupUsers

func (s *TimerLayerUserStore) GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) GetUnreadCount

func (s *TimerLayerUserStore) GetUnreadCount(userId string) (int64, *model.AppError)

func (*TimerLayerUserStore) GetUnreadCountForChannel

func (s *TimerLayerUserStore) GetUnreadCountForChannel(userId string, channelId string) (int64, *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 added in v5.20.0

func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCache

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)

func (*TimerLayerUserStore) PermanentDelete

func (s *TimerLayerUserStore) PermanentDelete(userId string) *model.AppError

func (*TimerLayerUserStore) PromoteGuestToUser

func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) *model.AppError

func (*TimerLayerUserStore) ResetLastPictureUpdate

func (s *TimerLayerUserStore) ResetLastPictureUpdate(userId string) *model.AppError

func (*TimerLayerUserStore) Save

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

func (*TimerLayerUserStore) Search

func (s *TimerLayerUserStore) Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) SearchInChannel

func (s *TimerLayerUserStore) SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) SearchNotInChannel

func (s *TimerLayerUserStore) SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) SearchNotInTeam

func (s *TimerLayerUserStore) SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) SearchWithoutTeam

func (s *TimerLayerUserStore) SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)

func (*TimerLayerUserStore) Update

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

func (*TimerLayerUserStore) UpdateAuthData

func (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()
	InvalidateProfilesInChannelCacheByUser(userId string)
	InvalidateProfilesInChannelCache(channelId string)
	GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
	GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
	GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
	GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
	GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
	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)
	GetAllNotInAuthService(authServices []string) ([]*model.User, *model.AppError)
	GetByUsername(username string) (*model.User, *model.AppError)
	GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError)
	VerifyEmail(userId, email string) (string, *model.AppError)
	GetEtagForAllProfiles() string
	GetEtagForProfiles(teamId string) string
	UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
	GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
	PermanentDelete(userId string) *model.AppError
	AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
	GetUnreadCount(userId string) (int64, *model.AppError)
	GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
	AnalyticsGetSystemAdminCount() (int64, *model.AppError)
	AnalyticsGetGuestCount() (int64, *model.AppError)
	GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetEtagForProfilesNotInTeam(teamId string) string
	ClearAllCustomRoleAssignments() *model.AppError
	InferSystemInstallDate() (int64, *model.AppError)
	GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
	GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
	Count(options model.UserCountOptions) (int64, *model.AppError)
	GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
	GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
	PromoteGuestToUser(userID string) *model.AppError
	DemoteUserToGuest(userID string) *model.AppError
	DeactivateGuests() ([]string, *model.AppError)
	AutocompleteUsersInChannel(teamId, channelId, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, *model.AppError)
	GetKnownUsers(userID string) ([]string, *model.AppError)
}

type UserTermsOfServiceStore

type UserTermsOfServiceStore interface {
	GetByUser(userId string) (*model.UserTermsOfService, *model.AppError)
	Save(userTermsOfService *model.UserTermsOfService) (*model.UserTermsOfService, *model.AppError)
	Delete(userId, termsOfServiceId string) *model.AppError
}

type WebhookStore

type WebhookStore interface {
	SaveIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
	GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, *model.AppError)
	GetIncomingList(offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
	GetIncomingListByUser(userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
	GetIncomingByTeam(teamId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
	GetIncomingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.IncomingWebhook, *model.AppError)
	UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, *model.AppError)
	GetIncomingByChannel(channelId string) ([]*model.IncomingWebhook, *model.AppError)
	DeleteIncoming(webhookId string, time int64) *model.AppError
	PermanentDeleteIncomingByChannel(channelId string) *model.AppError
	PermanentDeleteIncomingByUser(userId string) *model.AppError

	SaveOutgoing(webhook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)
	GetOutgoing(id string) (*model.OutgoingWebhook, *model.AppError)
	GetOutgoingByChannel(channelId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	GetOutgoingByChannelByUser(channelId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	GetOutgoingList(offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	GetOutgoingListByUser(userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	GetOutgoingByTeam(teamId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	GetOutgoingByTeamByUser(teamId string, userId string, offset, limit int) ([]*model.OutgoingWebhook, *model.AppError)
	DeleteOutgoing(webhookId string, time int64) *model.AppError
	PermanentDeleteOutgoingByChannel(channelId string) *model.AppError
	PermanentDeleteOutgoingByUser(userId string) *model.AppError
	UpdateOutgoing(hook *model.OutgoingWebhook) (*model.OutgoingWebhook, *model.AppError)

	AnalyticsIncomingCount(teamId string) (int64, *model.AppError)
	AnalyticsOutgoingCount(teamId string) (int64, *model.AppError)
	InvalidateWebhookCache(webhook string)
	ClearCaches()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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