store

package
v0.0.0-...-ceb19f4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

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, *model.AppError)
	GetAll(options *model.BotGetOptions) ([]*model.Bot, *model.AppError)
	Save(bot *model.Bot) (*model.Bot, *model.AppError)
	Update(bot *model.Bot) (*model.Bot, *model.AppError)
	PermanentDelete(userId string) *model.AppError
}

type ChannelMemberHistoryStore

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

type ChannelSearchOpts

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

ChannelSearchOpts contains options for searching channels.

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

func (*ChannelSearchOpts) IsPaginated

func (c *ChannelSearchOpts) IsPaginated() bool

type ChannelStore

type ChannelStore interface {
	Save(channel *model.Channel, maxChannelsPerTeam int64) (*model.Channel, *model.AppError)
	CreateDirectChannel(userId *model.User, otherUserId *model.User) (*model.Channel, *model.AppError)
	SaveDirectChannel(channel *model.Channel, member1 *model.ChannelMember, member2 *model.ChannelMember) (*model.Channel, *model.AppError)
	Update(channel *model.Channel) (*model.Channel, *model.AppError)
	Get(id string, allowFromCache bool) (*model.Channel, *model.AppError)
	InvalidateChannel(id string)
	InvalidateChannelByName(teamId, name string)
	GetFromMaster(id string) (*model.Channel, *model.AppError)
	Delete(channelId string, time int64) *model.AppError
	Restore(channelId string, time int64) *model.AppError
	SetDeleteAt(channelId string, deleteAt int64, updateAt int64) *model.AppError
	PermanentDelete(channelId string) *model.AppError
	PermanentDeleteByTeam(teamId string) *model.AppError
	GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
	GetByNames(team_id string, names []string, allowFromCache bool) ([]*model.Channel, *model.AppError)
	GetByNameIncludeDeleted(team_id string, name string, allowFromCache bool) (*model.Channel, *model.AppError)
	GetDeletedByName(team_id string, name string) (*model.Channel, *model.AppError)
	GetDeleted(team_id string, offset int, limit int, userId string) (*model.ChannelList, *model.AppError)
	GetChannels(teamId string, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError)
	GetAllChannels(page, perPage int, opts ChannelSearchOpts) (*model.ChannelListWithTeamData, *model.AppError)
	GetAllChannelsCount(opts ChannelSearchOpts) (int64, *model.AppError)
	GetMoreChannels(teamId string, userId string, offset int, limit int) (*model.ChannelList, *model.AppError)
	GetPublicChannelsForTeam(teamId string, offset int, limit int) (*model.ChannelList, *model.AppError)
	GetPublicChannelsByIdsForTeam(teamId string, channelIds []string) (*model.ChannelList, *model.AppError)
	GetChannelCounts(teamId string, userId string) (*model.ChannelCounts, *model.AppError)
	GetTeamChannels(teamId string) (*model.ChannelList, *model.AppError)
	GetAll(teamId string) ([]*model.Channel, *model.AppError)
	GetChannelsByIds(channelIds []string) ([]*model.Channel, *model.AppError)
	GetForPost(postId string) (*model.Channel, *model.AppError)
	SaveMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
	UpdateMember(member *model.ChannelMember) (*model.ChannelMember, *model.AppError)
	GetMembers(channelId string, offset, limit int) (*model.ChannelMembers, *model.AppError)
	GetMember(channelId string, userId string) (*model.ChannelMember, *model.AppError)
	GetChannelMembersTimezones(channelId string) ([]model.StringMap, *model.AppError)
	GetAllChannelMembersForUser(userId string, allowFromCache bool, includeDeleted bool) (map[string]string, *model.AppError)
	InvalidateAllChannelMembersForUser(userId string)
	IsUserInChannelUseCache(userId string, channelId string) bool
	GetAllChannelMembersNotifyPropsForChannel(channelId string, allowFromCache bool) (map[string]model.StringMap, *model.AppError)
	InvalidateCacheForChannelMembersNotifyProps(channelId string)
	GetMemberForPost(postId string, userId string) (*model.ChannelMember, *model.AppError)
	InvalidateMemberCount(channelId string)
	GetMemberCountFromCache(channelId string) int64
	GetMemberCount(channelId string, allowFromCache bool) (int64, *model.AppError)
	InvalidatePinnedPostCount(channelId string)
	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
	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 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) (*model.Group, *model.AppError)
	GetByIDs(groupIDs []string) ([]*model.Group, *model.AppError)
	GetByRemoteID(remoteID string, groupSource model.GroupSource) (*model.Group, *model.AppError)
	GetAllBySource(groupSource model.GroupSource) ([]*model.Group, *model.AppError)
	GetByUser(userId string) ([]*model.Group, *model.AppError)
	Update(group *model.Group) (*model.Group, *model.AppError)
	Delete(groupID string) (*model.Group, *model.AppError)

	GetMemberUsers(groupID string) ([]*model.User, *model.AppError)
	GetMemberUsersPage(groupID string, page int, perPage int) ([]*model.User, *model.AppError)
	GetMemberCount(groupID string) (int64, *model.AppError)
	UpsertMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
	DeleteMember(groupID string, userID string) (*model.GroupMember, *model.AppError)
	PermanentDeleteMembersByUser(userId string) *model.AppError

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

	// TeamMembersToAdd 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)
	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)
}

type IntegrityCheckResult

type IntegrityCheckResult struct {
	Data interface{}
	Err  error
}

type JobStore

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

type LicenseStore

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

type LinkMetadataStore

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

type OAuthStore

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

type OpenTracingLayer

type OpenTracingLayer struct {
	Store
	AuditStore                AuditStore
	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

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

func (*OpenTracingLayer) Audit

func (s *OpenTracingLayer) Audit() AuditStore

func (*OpenTracingLayer) Bot

func (s *OpenTracingLayer) Bot() BotStore

func (*OpenTracingLayer) Channel

func (s *OpenTracingLayer) Channel() ChannelStore

func (*OpenTracingLayer) ChannelMemberHistory

func (s *OpenTracingLayer) ChannelMemberHistory() ChannelMemberHistoryStore

func (*OpenTracingLayer) Close

func (s *OpenTracingLayer) Close()

func (*OpenTracingLayer) ClusterDiscovery

func (s *OpenTracingLayer) ClusterDiscovery() ClusterDiscoveryStore

func (*OpenTracingLayer) Command

func (s *OpenTracingLayer) Command() CommandStore

func (*OpenTracingLayer) CommandWebhook

func (s *OpenTracingLayer) CommandWebhook() CommandWebhookStore

func (*OpenTracingLayer) Compliance

func (s *OpenTracingLayer) Compliance() ComplianceStore

func (*OpenTracingLayer) DropAllTables

func (s *OpenTracingLayer) DropAllTables()

func (*OpenTracingLayer) Emoji

func (s *OpenTracingLayer) Emoji() EmojiStore

func (*OpenTracingLayer) FileInfo

func (s *OpenTracingLayer) FileInfo() FileInfoStore

func (*OpenTracingLayer) GetCurrentSchemaVersion

func (s *OpenTracingLayer) GetCurrentSchemaVersion() string

func (*OpenTracingLayer) Group

func (s *OpenTracingLayer) Group() GroupStore

func (*OpenTracingLayer) Job

func (s *OpenTracingLayer) Job() JobStore

func (*OpenTracingLayer) License

func (s *OpenTracingLayer) License() LicenseStore

func (*OpenTracingLayer) LinkMetadata

func (s *OpenTracingLayer) LinkMetadata() LinkMetadataStore

func (*OpenTracingLayer) LockToMaster

func (s *OpenTracingLayer) LockToMaster()

func (*OpenTracingLayer) MarkSystemRanUnitTests

func (s *OpenTracingLayer) MarkSystemRanUnitTests()

func (*OpenTracingLayer) OAuth

func (s *OpenTracingLayer) OAuth() OAuthStore

func (*OpenTracingLayer) Plugin

func (s *OpenTracingLayer) Plugin() PluginStore

func (*OpenTracingLayer) Post

func (s *OpenTracingLayer) Post() PostStore

func (*OpenTracingLayer) Preference

func (s *OpenTracingLayer) Preference() PreferenceStore

func (*OpenTracingLayer) Reaction

func (s *OpenTracingLayer) Reaction() ReactionStore

func (*OpenTracingLayer) Role

func (s *OpenTracingLayer) Role() RoleStore

func (*OpenTracingLayer) Scheme

func (s *OpenTracingLayer) Scheme() SchemeStore

func (*OpenTracingLayer) Session

func (s *OpenTracingLayer) Session() SessionStore

func (*OpenTracingLayer) SetContext

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

func (*OpenTracingLayer) Status

func (s *OpenTracingLayer) Status() StatusStore

func (*OpenTracingLayer) System

func (s *OpenTracingLayer) System() SystemStore

func (*OpenTracingLayer) Team

func (s *OpenTracingLayer) Team() TeamStore

func (*OpenTracingLayer) TermsOfService

func (s *OpenTracingLayer) TermsOfService() TermsOfServiceStore

func (*OpenTracingLayer) Token

func (s *OpenTracingLayer) Token() TokenStore

func (*OpenTracingLayer) TotalMasterDbConnections

func (s *OpenTracingLayer) TotalMasterDbConnections() int

func (*OpenTracingLayer) TotalReadDbConnections

func (s *OpenTracingLayer) TotalReadDbConnections() int

func (*OpenTracingLayer) TotalSearchDbConnections

func (s *OpenTracingLayer) TotalSearchDbConnections() int

func (*OpenTracingLayer) UnlockFromMaster

func (s *OpenTracingLayer) UnlockFromMaster()

func (*OpenTracingLayer) User

func (s *OpenTracingLayer) User() UserStore

func (*OpenTracingLayer) UserAccessToken

func (s *OpenTracingLayer) UserAccessToken() UserAccessTokenStore

func (*OpenTracingLayer) UserTermsOfService

func (s *OpenTracingLayer) UserTermsOfService() UserTermsOfServiceStore

func (*OpenTracingLayer) Webhook

func (s *OpenTracingLayer) Webhook() WebhookStore

type OpenTracingLayerAuditStore

type OpenTracingLayerAuditStore struct {
	AuditStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerAuditStore) Get

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

func (*OpenTracingLayerAuditStore) PermanentDeleteByUser

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

func (*OpenTracingLayerAuditStore) Save

type OpenTracingLayerBotStore

type OpenTracingLayerBotStore struct {
	BotStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerBotStore) Get

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

func (*OpenTracingLayerBotStore) GetAll

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

func (*OpenTracingLayerBotStore) PermanentDelete

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

func (*OpenTracingLayerBotStore) Save

func (*OpenTracingLayerBotStore) Update

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

type OpenTracingLayerChannelMemberHistoryStore

type OpenTracingLayerChannelMemberHistoryStore struct {
	ChannelMemberHistoryStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerChannelMemberHistoryStore) GetUsersInChannelDuring

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

func (*OpenTracingLayerChannelMemberHistoryStore) LogJoinEvent

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

func (*OpenTracingLayerChannelMemberHistoryStore) LogLeaveEvent

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

func (*OpenTracingLayerChannelMemberHistoryStore) PermanentDeleteBatch

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

type OpenTracingLayerChannelStore

type OpenTracingLayerChannelStore struct {
	ChannelStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerChannelStore) AnalyticsDeletedTypeCount

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

func (*OpenTracingLayerChannelStore) AnalyticsTypeCount

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

func (*OpenTracingLayerChannelStore) AutocompleteInTeam

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

func (*OpenTracingLayerChannelStore) AutocompleteInTeamForSearch

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

func (*OpenTracingLayerChannelStore) ClearAllCustomRoleAssignments

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

func (*OpenTracingLayerChannelStore) ClearCaches

func (s *OpenTracingLayerChannelStore) ClearCaches()

func (*OpenTracingLayerChannelStore) CountPostsAfter

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

func (*OpenTracingLayerChannelStore) CreateDirectChannel

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

func (*OpenTracingLayerChannelStore) Delete

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

func (*OpenTracingLayerChannelStore) Get

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

func (*OpenTracingLayerChannelStore) GetAll

func (*OpenTracingLayerChannelStore) GetAllChannelMembersForUser

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

func (*OpenTracingLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel

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

func (*OpenTracingLayerChannelStore) GetAllChannels

func (*OpenTracingLayerChannelStore) GetAllChannelsCount

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

func (*OpenTracingLayerChannelStore) GetAllChannelsForExportAfter

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

func (*OpenTracingLayerChannelStore) GetAllDirectChannelsForExportAfter

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

func (*OpenTracingLayerChannelStore) GetByName

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

func (*OpenTracingLayerChannelStore) GetByNameIncludeDeleted

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

func (*OpenTracingLayerChannelStore) GetByNames

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

func (*OpenTracingLayerChannelStore) GetChannelCounts

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

func (*OpenTracingLayerChannelStore) GetChannelMembersForExport

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

func (*OpenTracingLayerChannelStore) GetChannelMembersTimezones

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

func (*OpenTracingLayerChannelStore) GetChannelUnread

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

func (*OpenTracingLayerChannelStore) GetChannels

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

func (*OpenTracingLayerChannelStore) GetChannelsBatchForIndexing

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

func (*OpenTracingLayerChannelStore) GetChannelsByIds

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

func (*OpenTracingLayerChannelStore) GetChannelsByScheme

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

func (*OpenTracingLayerChannelStore) GetDeleted

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

func (*OpenTracingLayerChannelStore) GetDeletedByName

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

func (*OpenTracingLayerChannelStore) GetForPost

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

func (*OpenTracingLayerChannelStore) GetFromMaster

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

func (*OpenTracingLayerChannelStore) GetGuestCount

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

func (*OpenTracingLayerChannelStore) GetMember

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

func (*OpenTracingLayerChannelStore) GetMemberCount

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

func (*OpenTracingLayerChannelStore) GetMemberCountFromCache

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

func (*OpenTracingLayerChannelStore) GetMemberForPost

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

func (*OpenTracingLayerChannelStore) GetMembers

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

func (*OpenTracingLayerChannelStore) GetMembersByIds

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

func (*OpenTracingLayerChannelStore) GetMembersForUser

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

func (*OpenTracingLayerChannelStore) GetMembersForUserWithPagination

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

func (*OpenTracingLayerChannelStore) GetMoreChannels

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

func (*OpenTracingLayerChannelStore) GetPinnedPostCount

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

func (*OpenTracingLayerChannelStore) GetPinnedPosts

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

func (*OpenTracingLayerChannelStore) GetPublicChannelsByIdsForTeam

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

func (*OpenTracingLayerChannelStore) GetPublicChannelsForTeam

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

func (*OpenTracingLayerChannelStore) GetTeamChannels

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

func (*OpenTracingLayerChannelStore) GroupSyncedChannelCount

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

func (*OpenTracingLayerChannelStore) IncrementMentionCount

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

func (*OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser

func (s *OpenTracingLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)

func (*OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps

func (s *OpenTracingLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)

func (*OpenTracingLayerChannelStore) InvalidateChannel

func (s *OpenTracingLayerChannelStore) InvalidateChannel(id string)

func (*OpenTracingLayerChannelStore) InvalidateChannelByName

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

func (*OpenTracingLayerChannelStore) InvalidateGuestCount

func (s *OpenTracingLayerChannelStore) InvalidateGuestCount(channelId string)

func (*OpenTracingLayerChannelStore) InvalidateMemberCount

func (s *OpenTracingLayerChannelStore) InvalidateMemberCount(channelId string)

func (*OpenTracingLayerChannelStore) InvalidatePinnedPostCount

func (s *OpenTracingLayerChannelStore) InvalidatePinnedPostCount(channelId string)

func (*OpenTracingLayerChannelStore) IsUserInChannelUseCache

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

func (*OpenTracingLayerChannelStore) MigrateChannelMembers

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

func (*OpenTracingLayerChannelStore) MigratePublicChannels

func (s *OpenTracingLayerChannelStore) MigratePublicChannels() error

func (*OpenTracingLayerChannelStore) PermanentDelete

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

func (*OpenTracingLayerChannelStore) PermanentDeleteByTeam

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

func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByChannel

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

func (*OpenTracingLayerChannelStore) PermanentDeleteMembersByUser

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

func (*OpenTracingLayerChannelStore) RemoveAllDeactivatedMembers

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

func (*OpenTracingLayerChannelStore) RemoveMember

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

func (*OpenTracingLayerChannelStore) ResetAllChannelSchemes

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

func (*OpenTracingLayerChannelStore) Restore

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

func (*OpenTracingLayerChannelStore) Save

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

func (*OpenTracingLayerChannelStore) SaveDirectChannel

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

func (*OpenTracingLayerChannelStore) SaveMember

func (*OpenTracingLayerChannelStore) SearchAllChannels

func (*OpenTracingLayerChannelStore) SearchArchivedInTeam

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

func (*OpenTracingLayerChannelStore) SearchForUserInTeam

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

func (*OpenTracingLayerChannelStore) SearchGroupChannels

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

func (*OpenTracingLayerChannelStore) SearchInTeam

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

func (*OpenTracingLayerChannelStore) SearchMore

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

func (*OpenTracingLayerChannelStore) SetDeleteAt

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

func (*OpenTracingLayerChannelStore) Update

func (*OpenTracingLayerChannelStore) UpdateLastViewedAt

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

func (*OpenTracingLayerChannelStore) UpdateLastViewedAtPost

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

func (*OpenTracingLayerChannelStore) UpdateMember

func (*OpenTracingLayerChannelStore) UpdateMembersRole

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

func (*OpenTracingLayerChannelStore) UserBelongsToChannels

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

type OpenTracingLayerClusterDiscoveryStore

type OpenTracingLayerClusterDiscoveryStore struct {
	ClusterDiscoveryStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerClusterDiscoveryStore) Cleanup

func (*OpenTracingLayerClusterDiscoveryStore) Delete

func (*OpenTracingLayerClusterDiscoveryStore) Exists

func (*OpenTracingLayerClusterDiscoveryStore) GetAll

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

func (*OpenTracingLayerClusterDiscoveryStore) Save

func (*OpenTracingLayerClusterDiscoveryStore) SetLastPingAt

type OpenTracingLayerCommandStore

type OpenTracingLayerCommandStore struct {
	CommandStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerCommandStore) AnalyticsCommandCount

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

func (*OpenTracingLayerCommandStore) Delete

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

func (*OpenTracingLayerCommandStore) Get

func (*OpenTracingLayerCommandStore) GetByTeam

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

func (*OpenTracingLayerCommandStore) GetByTrigger

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

func (*OpenTracingLayerCommandStore) PermanentDeleteByTeam

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

func (*OpenTracingLayerCommandStore) PermanentDeleteByUser

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

func (*OpenTracingLayerCommandStore) Save

func (*OpenTracingLayerCommandStore) Update

type OpenTracingLayerCommandWebhookStore

type OpenTracingLayerCommandWebhookStore struct {
	CommandWebhookStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerCommandWebhookStore) Cleanup

func (*OpenTracingLayerCommandWebhookStore) Get

func (*OpenTracingLayerCommandWebhookStore) Save

func (*OpenTracingLayerCommandWebhookStore) TryUse

type OpenTracingLayerComplianceStore

type OpenTracingLayerComplianceStore struct {
	ComplianceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerComplianceStore) ComplianceExport

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

func (*OpenTracingLayerComplianceStore) Get

func (*OpenTracingLayerComplianceStore) GetAll

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

func (*OpenTracingLayerComplianceStore) MessageExport

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

func (*OpenTracingLayerComplianceStore) Save

func (*OpenTracingLayerComplianceStore) Update

type OpenTracingLayerEmojiStore

type OpenTracingLayerEmojiStore struct {
	EmojiStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerEmojiStore) Delete

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

func (*OpenTracingLayerEmojiStore) Get

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

func (*OpenTracingLayerEmojiStore) GetByName

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

func (*OpenTracingLayerEmojiStore) GetList

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

func (*OpenTracingLayerEmojiStore) GetMultipleByName

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

func (*OpenTracingLayerEmojiStore) Save

func (*OpenTracingLayerEmojiStore) Search

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

type OpenTracingLayerFileInfoStore

type OpenTracingLayerFileInfoStore struct {
	FileInfoStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerFileInfoStore) AttachToPost

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

func (*OpenTracingLayerFileInfoStore) ClearCaches

func (s *OpenTracingLayerFileInfoStore) ClearCaches()

func (*OpenTracingLayerFileInfoStore) DeleteForPost

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

func (*OpenTracingLayerFileInfoStore) Get

func (*OpenTracingLayerFileInfoStore) GetByPath

func (*OpenTracingLayerFileInfoStore) GetForPost

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

func (*OpenTracingLayerFileInfoStore) GetForUser

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

func (*OpenTracingLayerFileInfoStore) GetWithOptions

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

func (*OpenTracingLayerFileInfoStore) InvalidateFileInfosForPostCache

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

func (*OpenTracingLayerFileInfoStore) PermanentDelete

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

func (*OpenTracingLayerFileInfoStore) PermanentDeleteBatch

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

func (*OpenTracingLayerFileInfoStore) PermanentDeleteByUser

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

func (*OpenTracingLayerFileInfoStore) Save

type OpenTracingLayerGroupStore

type OpenTracingLayerGroupStore struct {
	GroupStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerGroupStore) AdminRoleGroupsForSyncableMember

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

func (*OpenTracingLayerGroupStore) ChannelMembersMinusGroupMembers

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

func (*OpenTracingLayerGroupStore) ChannelMembersToAdd

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

func (*OpenTracingLayerGroupStore) ChannelMembersToRemove

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

func (*OpenTracingLayerGroupStore) CountChannelMembersMinusGroupMembers

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

func (*OpenTracingLayerGroupStore) CountGroupsByChannel

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

func (*OpenTracingLayerGroupStore) CountGroupsByTeam

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

func (*OpenTracingLayerGroupStore) CountTeamMembersMinusGroupMembers

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

func (*OpenTracingLayerGroupStore) Create

func (*OpenTracingLayerGroupStore) CreateGroupSyncable

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

func (*OpenTracingLayerGroupStore) Delete

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

func (*OpenTracingLayerGroupStore) DeleteGroupSyncable

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

func (*OpenTracingLayerGroupStore) DeleteMember

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

func (*OpenTracingLayerGroupStore) DistinctGroupMemberCount

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

func (*OpenTracingLayerGroupStore) Get

func (*OpenTracingLayerGroupStore) GetAllBySource

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

func (*OpenTracingLayerGroupStore) GetAllGroupSyncablesByGroupId

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

func (*OpenTracingLayerGroupStore) GetByIDs

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

func (*OpenTracingLayerGroupStore) GetByName

func (s *OpenTracingLayerGroupStore) GetByName(name string) (*model.Group, *model.AppError)

func (*OpenTracingLayerGroupStore) GetByRemoteID

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

func (*OpenTracingLayerGroupStore) GetByUser

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

func (*OpenTracingLayerGroupStore) GetGroupSyncable

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

func (*OpenTracingLayerGroupStore) GetGroups

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

func (*OpenTracingLayerGroupStore) GetGroupsByChannel

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

func (*OpenTracingLayerGroupStore) GetGroupsByTeam

func (*OpenTracingLayerGroupStore) GetMemberCount

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

func (*OpenTracingLayerGroupStore) GetMemberUsers

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

func (*OpenTracingLayerGroupStore) GetMemberUsersPage

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

func (*OpenTracingLayerGroupStore) GroupChannelCount

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

func (*OpenTracingLayerGroupStore) GroupCount

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

func (*OpenTracingLayerGroupStore) GroupMemberCount

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

func (*OpenTracingLayerGroupStore) GroupTeamCount

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

func (*OpenTracingLayerGroupStore) PermanentDeleteMembersByUser

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

func (*OpenTracingLayerGroupStore) PermittedSyncableAdmins

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

func (*OpenTracingLayerGroupStore) TeamMembersMinusGroupMembers

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

func (*OpenTracingLayerGroupStore) TeamMembersToAdd

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

func (*OpenTracingLayerGroupStore) TeamMembersToRemove

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

func (*OpenTracingLayerGroupStore) Update

func (*OpenTracingLayerGroupStore) UpdateGroupSyncable

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

func (*OpenTracingLayerGroupStore) UpsertMember

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

type OpenTracingLayerJobStore

type OpenTracingLayerJobStore struct {
	JobStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerJobStore) Delete

func (*OpenTracingLayerJobStore) Get

func (*OpenTracingLayerJobStore) GetAllByStatus

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

func (*OpenTracingLayerJobStore) GetAllByType

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

func (*OpenTracingLayerJobStore) GetAllByTypePage

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

func (*OpenTracingLayerJobStore) GetAllPage

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

func (*OpenTracingLayerJobStore) GetCountByStatusAndType

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

func (*OpenTracingLayerJobStore) GetNewestJobByStatusAndType

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

func (*OpenTracingLayerJobStore) Save

func (*OpenTracingLayerJobStore) UpdateOptimistically

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

func (*OpenTracingLayerJobStore) UpdateStatus

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

func (*OpenTracingLayerJobStore) UpdateStatusOptimistically

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

type OpenTracingLayerLicenseStore

type OpenTracingLayerLicenseStore struct {
	LicenseStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLicenseStore) Get

func (*OpenTracingLayerLicenseStore) Save

type OpenTracingLayerLinkMetadataStore

type OpenTracingLayerLinkMetadataStore struct {
	LinkMetadataStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerLinkMetadataStore) Get

func (*OpenTracingLayerLinkMetadataStore) Save

type OpenTracingLayerOAuthStore

type OpenTracingLayerOAuthStore struct {
	OAuthStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerOAuthStore) DeleteApp

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

func (*OpenTracingLayerOAuthStore) GetAccessData

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

func (*OpenTracingLayerOAuthStore) GetAccessDataByRefreshToken

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

func (*OpenTracingLayerOAuthStore) GetAccessDataByUserForApp

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

func (*OpenTracingLayerOAuthStore) GetApp

func (*OpenTracingLayerOAuthStore) GetAppByUser

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

func (*OpenTracingLayerOAuthStore) GetApps

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

func (*OpenTracingLayerOAuthStore) GetAuthData

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

func (*OpenTracingLayerOAuthStore) GetAuthorizedApps

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

func (*OpenTracingLayerOAuthStore) GetPreviousAccessData

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

func (*OpenTracingLayerOAuthStore) PermanentDeleteAuthDataByUser

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

func (*OpenTracingLayerOAuthStore) RemoveAccessData

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

func (*OpenTracingLayerOAuthStore) RemoveAllAccessData

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

func (*OpenTracingLayerOAuthStore) RemoveAuthData

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

func (*OpenTracingLayerOAuthStore) SaveAccessData

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

func (*OpenTracingLayerOAuthStore) SaveApp

func (*OpenTracingLayerOAuthStore) SaveAuthData

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

func (*OpenTracingLayerOAuthStore) UpdateAccessData

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

func (*OpenTracingLayerOAuthStore) UpdateApp

type OpenTracingLayerPluginStore

type OpenTracingLayerPluginStore struct {
	PluginStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPluginStore) CompareAndDelete

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

func (*OpenTracingLayerPluginStore) CompareAndSet

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

func (*OpenTracingLayerPluginStore) Delete

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

func (*OpenTracingLayerPluginStore) DeleteAllExpired

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

func (*OpenTracingLayerPluginStore) DeleteAllForPlugin

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

func (*OpenTracingLayerPluginStore) Get

func (*OpenTracingLayerPluginStore) List

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

func (*OpenTracingLayerPluginStore) SaveOrUpdate

func (*OpenTracingLayerPluginStore) SetWithOptions

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

type OpenTracingLayerPostStore

type OpenTracingLayerPostStore struct {
	PostStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPostStore) AnalyticsPostCount

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

func (*OpenTracingLayerPostStore) AnalyticsPostCountsByDay

func (*OpenTracingLayerPostStore) AnalyticsUserCountsWithPostsByDay

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

func (*OpenTracingLayerPostStore) ClearCaches

func (s *OpenTracingLayerPostStore) ClearCaches()

func (*OpenTracingLayerPostStore) Delete

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

func (*OpenTracingLayerPostStore) Get

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

func (*OpenTracingLayerPostStore) GetDirectPostParentsForExportAfter

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

func (*OpenTracingLayerPostStore) GetEtag

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

func (*OpenTracingLayerPostStore) GetFlaggedPosts

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

func (*OpenTracingLayerPostStore) GetFlaggedPostsForChannel

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

func (*OpenTracingLayerPostStore) GetFlaggedPostsForTeam

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

func (*OpenTracingLayerPostStore) GetMaxPostSize

func (s *OpenTracingLayerPostStore) GetMaxPostSize() int

func (*OpenTracingLayerPostStore) GetOldest

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

func (*OpenTracingLayerPostStore) GetParentsForExportAfter

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

func (*OpenTracingLayerPostStore) GetPostAfterTime

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

func (*OpenTracingLayerPostStore) GetPostIdAfterTime

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

func (*OpenTracingLayerPostStore) GetPostIdBeforeTime

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

func (*OpenTracingLayerPostStore) GetPosts

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

func (*OpenTracingLayerPostStore) GetPostsAfter

func (*OpenTracingLayerPostStore) GetPostsBatchForIndexing

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

func (*OpenTracingLayerPostStore) GetPostsBefore

func (*OpenTracingLayerPostStore) GetPostsByIds

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

func (*OpenTracingLayerPostStore) GetPostsCreatedAt

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

func (*OpenTracingLayerPostStore) GetPostsSince

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

func (*OpenTracingLayerPostStore) GetRepliesForExport

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

func (*OpenTracingLayerPostStore) GetSingle

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

func (*OpenTracingLayerPostStore) InvalidateLastPostTimeCache

func (s *OpenTracingLayerPostStore) InvalidateLastPostTimeCache(channelId string)

func (*OpenTracingLayerPostStore) Overwrite

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

func (*OpenTracingLayerPostStore) PermanentDeleteBatch

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

func (*OpenTracingLayerPostStore) PermanentDeleteByChannel

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

func (*OpenTracingLayerPostStore) PermanentDeleteByUser

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

func (*OpenTracingLayerPostStore) Save

func (*OpenTracingLayerPostStore) Search

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

func (*OpenTracingLayerPostStore) Update

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

type OpenTracingLayerPreferenceStore

type OpenTracingLayerPreferenceStore struct {
	PreferenceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerPreferenceStore) CleanupFlagsBatch

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

func (*OpenTracingLayerPreferenceStore) Delete

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

func (*OpenTracingLayerPreferenceStore) DeleteCategory

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

func (*OpenTracingLayerPreferenceStore) DeleteCategoryAndName

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

func (*OpenTracingLayerPreferenceStore) Get

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

func (*OpenTracingLayerPreferenceStore) GetAll

func (*OpenTracingLayerPreferenceStore) GetCategory

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

func (*OpenTracingLayerPreferenceStore) PermanentDeleteByUser

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

func (*OpenTracingLayerPreferenceStore) Save

type OpenTracingLayerReactionStore

type OpenTracingLayerReactionStore struct {
	ReactionStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerReactionStore) BulkGetForPosts

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

func (*OpenTracingLayerReactionStore) Delete

func (*OpenTracingLayerReactionStore) DeleteAllWithEmojiName

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

func (*OpenTracingLayerReactionStore) GetForPost

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

func (*OpenTracingLayerReactionStore) PermanentDeleteBatch

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

func (*OpenTracingLayerReactionStore) Save

type OpenTracingLayerRoleStore

type OpenTracingLayerRoleStore struct {
	RoleStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerRoleStore) Delete

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

func (*OpenTracingLayerRoleStore) Get

func (*OpenTracingLayerRoleStore) GetAll

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

func (*OpenTracingLayerRoleStore) GetByName

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

func (*OpenTracingLayerRoleStore) GetByNames

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

func (*OpenTracingLayerRoleStore) PermanentDeleteAll

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

func (*OpenTracingLayerRoleStore) Save

type OpenTracingLayerSchemeStore

type OpenTracingLayerSchemeStore struct {
	SchemeStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSchemeStore) Delete

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

func (*OpenTracingLayerSchemeStore) Get

func (*OpenTracingLayerSchemeStore) GetAllPage

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

func (*OpenTracingLayerSchemeStore) GetByName

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

func (*OpenTracingLayerSchemeStore) PermanentDeleteAll

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

func (*OpenTracingLayerSchemeStore) Save

type OpenTracingLayerSessionStore

type OpenTracingLayerSessionStore struct {
	SessionStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSessionStore) AnalyticsSessionCount

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

func (*OpenTracingLayerSessionStore) Cleanup

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

func (*OpenTracingLayerSessionStore) Get

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

func (*OpenTracingLayerSessionStore) GetSessions

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

func (*OpenTracingLayerSessionStore) GetSessionsWithActiveDeviceIds

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

func (*OpenTracingLayerSessionStore) PermanentDeleteSessionsByUser

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

func (*OpenTracingLayerSessionStore) Remove

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

func (*OpenTracingLayerSessionStore) RemoveAllSessions

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

func (*OpenTracingLayerSessionStore) Save

func (*OpenTracingLayerSessionStore) UpdateDeviceId

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

func (*OpenTracingLayerSessionStore) UpdateLastActivityAt

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

func (*OpenTracingLayerSessionStore) UpdateProps

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

func (*OpenTracingLayerSessionStore) UpdateRoles

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

type OpenTracingLayerStatusStore

type OpenTracingLayerStatusStore struct {
	StatusStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerStatusStore) Get

func (*OpenTracingLayerStatusStore) GetByIds

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

func (*OpenTracingLayerStatusStore) GetTotalActiveUsersCount

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

func (*OpenTracingLayerStatusStore) ResetAll

func (*OpenTracingLayerStatusStore) SaveOrUpdate

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

func (*OpenTracingLayerStatusStore) UpdateLastActivityAt

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

type OpenTracingLayerSystemStore

type OpenTracingLayerSystemStore struct {
	SystemStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerSystemStore) Get

func (*OpenTracingLayerSystemStore) GetByName

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

func (*OpenTracingLayerSystemStore) PermanentDeleteByName

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

func (*OpenTracingLayerSystemStore) Save

func (*OpenTracingLayerSystemStore) SaveOrUpdate

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

func (*OpenTracingLayerSystemStore) Update

type OpenTracingLayerTeamStore

type OpenTracingLayerTeamStore struct {
	TeamStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTeamStore) AnalyticsGetTeamCountForScheme

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

func (*OpenTracingLayerTeamStore) AnalyticsPrivateTeamCount

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

func (*OpenTracingLayerTeamStore) AnalyticsPublicTeamCount

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

func (*OpenTracingLayerTeamStore) AnalyticsTeamCount

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

func (*OpenTracingLayerTeamStore) ClearAllCustomRoleAssignments

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

func (*OpenTracingLayerTeamStore) ClearCaches

func (s *OpenTracingLayerTeamStore) ClearCaches()

func (*OpenTracingLayerTeamStore) Get

func (*OpenTracingLayerTeamStore) GetActiveMemberCount

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

func (*OpenTracingLayerTeamStore) GetAll

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

func (*OpenTracingLayerTeamStore) GetAllForExportAfter

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

func (*OpenTracingLayerTeamStore) GetAllPage

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

func (*OpenTracingLayerTeamStore) GetAllPrivateTeamListing

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

func (*OpenTracingLayerTeamStore) GetAllPrivateTeamPageListing

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

func (*OpenTracingLayerTeamStore) GetAllPublicTeamPageListing

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

func (*OpenTracingLayerTeamStore) GetAllTeamListing

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

func (*OpenTracingLayerTeamStore) GetAllTeamPageListing

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

func (*OpenTracingLayerTeamStore) GetByInviteId

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

func (*OpenTracingLayerTeamStore) GetByName

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

func (*OpenTracingLayerTeamStore) GetChannelUnreadsForAllTeams

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

func (*OpenTracingLayerTeamStore) GetChannelUnreadsForTeam

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

func (*OpenTracingLayerTeamStore) GetMember

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

func (*OpenTracingLayerTeamStore) GetMembers

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

func (*OpenTracingLayerTeamStore) GetMembersByIds

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

func (*OpenTracingLayerTeamStore) GetTeamMembersForExport

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

func (*OpenTracingLayerTeamStore) GetTeamsByScheme

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

func (*OpenTracingLayerTeamStore) GetTeamsByUserId

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

func (*OpenTracingLayerTeamStore) GetTeamsForUser

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

func (*OpenTracingLayerTeamStore) GetTeamsForUserWithPagination

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

func (*OpenTracingLayerTeamStore) GetTotalMemberCount

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

func (*OpenTracingLayerTeamStore) GetUserTeamIds

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

func (*OpenTracingLayerTeamStore) GroupSyncedTeamCount

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

func (*OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser

func (s *OpenTracingLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)

func (*OpenTracingLayerTeamStore) MigrateTeamMembers

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

func (*OpenTracingLayerTeamStore) PermanentDelete

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

func (*OpenTracingLayerTeamStore) RemoveAllMembersByTeam

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

func (*OpenTracingLayerTeamStore) RemoveAllMembersByUser

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

func (*OpenTracingLayerTeamStore) RemoveMember

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

func (*OpenTracingLayerTeamStore) ResetAllTeamSchemes

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

func (*OpenTracingLayerTeamStore) Save

func (*OpenTracingLayerTeamStore) SaveMember

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

func (*OpenTracingLayerTeamStore) SearchAll

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

func (*OpenTracingLayerTeamStore) SearchAllPaged

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

func (*OpenTracingLayerTeamStore) SearchOpen

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

func (*OpenTracingLayerTeamStore) SearchPrivate

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

func (*OpenTracingLayerTeamStore) Update

func (*OpenTracingLayerTeamStore) UpdateLastTeamIconUpdate

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

func (*OpenTracingLayerTeamStore) UpdateMember

func (*OpenTracingLayerTeamStore) UpdateMembersRole

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

func (*OpenTracingLayerTeamStore) UserBelongsToTeams

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

type OpenTracingLayerTermsOfServiceStore

type OpenTracingLayerTermsOfServiceStore struct {
	TermsOfServiceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTermsOfServiceStore) Get

func (*OpenTracingLayerTermsOfServiceStore) GetLatest

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

func (*OpenTracingLayerTermsOfServiceStore) Save

type OpenTracingLayerTokenStore

type OpenTracingLayerTokenStore struct {
	TokenStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerTokenStore) Cleanup

func (s *OpenTracingLayerTokenStore) Cleanup()

func (*OpenTracingLayerTokenStore) Delete

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

func (*OpenTracingLayerTokenStore) GetByToken

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

func (*OpenTracingLayerTokenStore) RemoveAllTokensByType

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

func (*OpenTracingLayerTokenStore) Save

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

type OpenTracingLayerUserAccessTokenStore

type OpenTracingLayerUserAccessTokenStore struct {
	UserAccessTokenStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserAccessTokenStore) Delete

func (*OpenTracingLayerUserAccessTokenStore) DeleteAllForUser

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

func (*OpenTracingLayerUserAccessTokenStore) Get

func (*OpenTracingLayerUserAccessTokenStore) GetAll

func (*OpenTracingLayerUserAccessTokenStore) GetByToken

func (*OpenTracingLayerUserAccessTokenStore) GetByUser

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

func (*OpenTracingLayerUserAccessTokenStore) Save

func (*OpenTracingLayerUserAccessTokenStore) Search

func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenDisable

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

func (*OpenTracingLayerUserAccessTokenStore) UpdateTokenEnable

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

type OpenTracingLayerUserStore

type OpenTracingLayerUserStore struct {
	UserStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserStore) AnalyticsActiveCount

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

func (*OpenTracingLayerUserStore) AnalyticsGetInactiveUsersCount

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

func (*OpenTracingLayerUserStore) AnalyticsGetSystemAdminCount

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

func (*OpenTracingLayerUserStore) ClearAllCustomRoleAssignments

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

func (*OpenTracingLayerUserStore) ClearCaches

func (s *OpenTracingLayerUserStore) ClearCaches()

func (*OpenTracingLayerUserStore) Count

func (*OpenTracingLayerUserStore) DeactivateGuests

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

func (*OpenTracingLayerUserStore) DemoteUserToGuest

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

func (*OpenTracingLayerUserStore) Get

func (*OpenTracingLayerUserStore) GetAll

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

func (*OpenTracingLayerUserStore) GetAllAfter

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

func (*OpenTracingLayerUserStore) GetAllProfiles

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

func (*OpenTracingLayerUserStore) GetAllProfilesInChannel

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

func (*OpenTracingLayerUserStore) GetAllUsingAuthService

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

func (*OpenTracingLayerUserStore) GetAnyUnreadPostCountForChannel

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

func (*OpenTracingLayerUserStore) GetByAuth

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

func (*OpenTracingLayerUserStore) GetByEmail

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

func (*OpenTracingLayerUserStore) GetByUsername

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

func (*OpenTracingLayerUserStore) GetChannelGroupUsers

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

func (*OpenTracingLayerUserStore) GetEtagForAllProfiles

func (s *OpenTracingLayerUserStore) GetEtagForAllProfiles() string

func (*OpenTracingLayerUserStore) GetEtagForProfiles

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

func (*OpenTracingLayerUserStore) GetEtagForProfilesNotInTeam

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

func (*OpenTracingLayerUserStore) GetForLogin

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

func (*OpenTracingLayerUserStore) GetNewUsersForTeam

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

func (*OpenTracingLayerUserStore) GetProfileByGroupChannelIdsForUser

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

func (*OpenTracingLayerUserStore) GetProfileByIds

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

func (*OpenTracingLayerUserStore) GetProfiles

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

func (*OpenTracingLayerUserStore) GetProfilesByUsernames

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

func (*OpenTracingLayerUserStore) GetProfilesInChannel

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

func (*OpenTracingLayerUserStore) GetProfilesInChannelByStatus

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

func (*OpenTracingLayerUserStore) GetProfilesNotInChannel

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

func (*OpenTracingLayerUserStore) GetProfilesNotInTeam

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

func (*OpenTracingLayerUserStore) GetProfilesWithoutTeam

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

func (*OpenTracingLayerUserStore) GetRecentlyActiveUsersForTeam

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

func (*OpenTracingLayerUserStore) GetSystemAdminProfiles

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

func (*OpenTracingLayerUserStore) GetTeamGroupUsers

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

func (*OpenTracingLayerUserStore) GetUnreadCount

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

func (*OpenTracingLayerUserStore) GetUnreadCountForChannel

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

func (*OpenTracingLayerUserStore) GetUsersBatchForIndexing

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

func (*OpenTracingLayerUserStore) InferSystemInstallDate

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

func (*OpenTracingLayerUserStore) InvalidateProfileCacheForUser

func (s *OpenTracingLayerUserStore) InvalidateProfileCacheForUser(userId string)

func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCache

func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCache(channelId string)

func (*OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser

func (s *OpenTracingLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)

func (*OpenTracingLayerUserStore) PermanentDelete

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

func (*OpenTracingLayerUserStore) PromoteGuestToUser

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

func (*OpenTracingLayerUserStore) ResetLastPictureUpdate

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

func (*OpenTracingLayerUserStore) Save

func (*OpenTracingLayerUserStore) Search

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

func (*OpenTracingLayerUserStore) SearchInChannel

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

func (*OpenTracingLayerUserStore) SearchNotInChannel

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

func (*OpenTracingLayerUserStore) SearchNotInTeam

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

func (*OpenTracingLayerUserStore) SearchWithoutTeam

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

func (*OpenTracingLayerUserStore) Update

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

func (*OpenTracingLayerUserStore) UpdateAuthData

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

func (*OpenTracingLayerUserStore) UpdateFailedPasswordAttempts

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

func (*OpenTracingLayerUserStore) UpdateLastPictureUpdate

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

func (*OpenTracingLayerUserStore) UpdateMfaActive

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

func (*OpenTracingLayerUserStore) UpdateMfaSecret

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

func (*OpenTracingLayerUserStore) UpdatePassword

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

func (*OpenTracingLayerUserStore) UpdateUpdateAt

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

func (*OpenTracingLayerUserStore) VerifyEmail

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

type OpenTracingLayerUserTermsOfServiceStore

type OpenTracingLayerUserTermsOfServiceStore struct {
	UserTermsOfServiceStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerUserTermsOfServiceStore) Delete

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

func (*OpenTracingLayerUserTermsOfServiceStore) GetByUser

func (*OpenTracingLayerUserTermsOfServiceStore) Save

type OpenTracingLayerWebhookStore

type OpenTracingLayerWebhookStore struct {
	WebhookStore
	Root *OpenTracingLayer
}

func (*OpenTracingLayerWebhookStore) AnalyticsIncomingCount

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

func (*OpenTracingLayerWebhookStore) AnalyticsOutgoingCount

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

func (*OpenTracingLayerWebhookStore) ClearCaches

func (s *OpenTracingLayerWebhookStore) ClearCaches()

func (*OpenTracingLayerWebhookStore) DeleteIncoming

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

func (*OpenTracingLayerWebhookStore) DeleteOutgoing

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

func (*OpenTracingLayerWebhookStore) GetIncoming

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

func (*OpenTracingLayerWebhookStore) GetIncomingByChannel

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

func (*OpenTracingLayerWebhookStore) GetIncomingByTeam

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

func (*OpenTracingLayerWebhookStore) GetIncomingByTeamByUser

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

func (*OpenTracingLayerWebhookStore) GetIncomingList

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

func (*OpenTracingLayerWebhookStore) GetIncomingListByUser

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

func (*OpenTracingLayerWebhookStore) GetOutgoing

func (*OpenTracingLayerWebhookStore) GetOutgoingByChannel

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

func (*OpenTracingLayerWebhookStore) GetOutgoingByChannelByUser

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

func (*OpenTracingLayerWebhookStore) GetOutgoingByTeam

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

func (*OpenTracingLayerWebhookStore) GetOutgoingByTeamByUser

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

func (*OpenTracingLayerWebhookStore) GetOutgoingList

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

func (*OpenTracingLayerWebhookStore) GetOutgoingListByUser

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

func (*OpenTracingLayerWebhookStore) InvalidateWebhookCache

func (s *OpenTracingLayerWebhookStore) InvalidateWebhookCache(webhook string)

func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByChannel

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

func (*OpenTracingLayerWebhookStore) PermanentDeleteIncomingByUser

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

func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByChannel

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

func (*OpenTracingLayerWebhookStore) PermanentDeleteOutgoingByUser

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

func (*OpenTracingLayerWebhookStore) SaveIncoming

func (*OpenTracingLayerWebhookStore) SaveOutgoing

func (*OpenTracingLayerWebhookStore) UpdateIncoming

func (*OpenTracingLayerWebhookStore) UpdateOutgoing

type OrphanedRecord

type OrphanedRecord struct {
	ParentId *string
	ChildId  *string
}

type 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 {
	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)
	GetPostsByIds(postIds []string) ([]*model.Post, *model.AppError)
	GetPostsBatchForIndexing(startTime int64, endTime int64, limit int) ([]*model.PostForIndexing, *model.AppError)
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
	GetOldest() (*model.Post, *model.AppError)
	GetMaxPostSize() int
	GetParentsForExportAfter(limit int, afterId string) ([]*model.PostForExport, *model.AppError)
	GetRepliesForExport(parentId string) ([]*model.ReplyForExport, *model.AppError)
	GetDirectPostParentsForExportAfter(limit int, afterId string) ([]*model.DirectPostForExport, *model.AppError)
}

type PreferenceStore

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

type ReactionStore

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

type RelationalIntegrityCheckData

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

type RoleStore

type RoleStore interface {
	Save(role *model.Role) (*model.Role, *model.AppError)
	Get(roleId string) (*model.Role, *model.AppError)
	GetAll() ([]*model.Role, *model.AppError)
	GetByName(name string) (*model.Role, *model.AppError)
	GetByNames(names []string) ([]*model.Role, *model.AppError)
	Delete(roldId string) (*model.Role, *model.AppError)
	PermanentDeleteAll() *model.AppError
}

type SchemeStore

type SchemeStore interface {
	Save(scheme *model.Scheme) (*model.Scheme, *model.AppError)
	Get(schemeId string) (*model.Scheme, *model.AppError)
	GetByName(schemeName string) (*model.Scheme, *model.AppError)
	GetAllPage(scope string, offset int, limit int) ([]*model.Scheme, *model.AppError)
	Delete(schemeId string) (*model.Scheme, *model.AppError)
	PermanentDeleteAll() *model.AppError
}

type SessionStore

type SessionStore interface {
	Get(sessionIdOrToken string) (*model.Session, *model.AppError)
	Save(session *model.Session) (*model.Session, *model.AppError)
	GetSessions(userId string) ([]*model.Session, *model.AppError)
	GetSessionsWithActiveDeviceIds(userId string) ([]*model.Session, *model.AppError)
	Remove(sessionIdOrToken string) *model.AppError
	RemoveAllSessions() *model.AppError
	PermanentDeleteSessionsByUser(teamId string) *model.AppError
	UpdateLastActivityAt(sessionId string, time int64) *model.AppError
	UpdateRoles(userId string, roles string) (string, *model.AppError)
	UpdateDeviceId(id string, deviceId string, expiresAt int64) (string, *model.AppError)
	UpdateProps(session *model.Session) *model.AppError
	AnalyticsSessionCount() (int64, *model.AppError)
	Cleanup(expiryTime int64, batchSize int64)
}

type StatusStore

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

type Store

type Store interface {
	Team() TeamStore
	Channel() ChannelStore
	Post() PostStore
	User() UserStore
	Bot() BotStore
	Audit() AuditStore
	ClusterDiscovery() ClusterDiscoveryStore
	Compliance() ComplianceStore
	Session() SessionStore
	OAuth() OAuthStore
	System() SystemStore
	Webhook() WebhookStore
	Command() CommandStore
	CommandWebhook() CommandWebhookStore
	Preference() PreferenceStore
	License() LicenseStore
	Token() TokenStore
	Emoji() EmojiStore
	Status() StatusStore
	FileInfo() FileInfoStore
	Reaction() ReactionStore
	Role() RoleStore
	Scheme() SchemeStore
	Job() JobStore
	UserAccessToken() UserAccessTokenStore
	ChannelMemberHistory() ChannelMemberHistoryStore
	Plugin() PluginStore
	TermsOfService() TermsOfServiceStore
	Group() GroupStore
	UserTermsOfService() UserTermsOfServiceStore
	LinkMetadata() LinkMetadataStore
	MarkSystemRanUnitTests()
	Close()
	LockToMaster()
	UnlockFromMaster()
	DropAllTables()
	GetCurrentSchemaVersion() string
	TotalMasterDbConnections() int
	TotalReadDbConnections() int
	TotalSearchDbConnections() int
	CheckIntegrity() <-chan IntegrityCheckResult
	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)
	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)
	SaveMember(member *model.TeamMember, maxUsersPerTeam int) (*model.TeamMember, *model.AppError)
	UpdateMember(member *model.TeamMember) (*model.TeamMember, *model.AppError)
	GetMember(teamId string, userId string) (*model.TeamMember, *model.AppError)
	GetMembers(teamId string, offset int, limit int, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
	GetMembersByIds(teamId string, userIds []string, restrictions *model.ViewUsersRestrictions) ([]*model.TeamMember, *model.AppError)
	GetTotalMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
	GetActiveMemberCount(teamId string, restrictions *model.ViewUsersRestrictions) (int64, *model.AppError)
	GetTeamsForUser(userId string) ([]*model.TeamMember, *model.AppError)
	GetTeamsForUserWithPagination(userId string, page, perPage int) ([]*model.TeamMember, *model.AppError)
	GetChannelUnreadsForAllTeams(excludeTeamId, userId string) ([]*model.ChannelUnread, *model.AppError)
	GetChannelUnreadsForTeam(teamId, userId string) ([]*model.ChannelUnread, *model.AppError)
	RemoveMember(teamId string, userId string) *model.AppError
	RemoveAllMembersByTeam(teamId string) *model.AppError
	RemoveAllMembersByUser(userId string) *model.AppError
	UpdateLastTeamIconUpdate(teamId string, curTime int64) *model.AppError
	GetTeamsByScheme(schemeId string, offset int, limit int) ([]*model.Team, *model.AppError)
	MigrateTeamMembers(fromTeamId string, fromUserId string) (map[string]string, *model.AppError)
	ResetAllTeamSchemes() *model.AppError
	ClearAllCustomRoleAssignments() *model.AppError
	AnalyticsGetTeamCountForScheme(schemeId string) (int64, *model.AppError)
	GetAllForExportAfter(limit int, afterId string) ([]*model.TeamForExport, *model.AppError)
	GetTeamMembersForExport(userId string) ([]*model.TeamMemberForExport, *model.AppError)
	UserBelongsToTeams(userId string, teamIds []string) (bool, *model.AppError)
	GetUserTeamIds(userId string, allowFromCache bool) ([]string, *model.AppError)
	InvalidateAllTeamIdsForUser(userId string)
	ClearCaches()

	// 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

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, *model.AppError)

func (*TimerLayerBotStore) GetAll

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

func (*TimerLayerBotStore) PermanentDelete

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

func (*TimerLayerBotStore) Save

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

func (*TimerLayerBotStore) Update

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

type TimerLayerChannelMemberHistoryStore

type TimerLayerChannelMemberHistoryStore struct {
	ChannelMemberHistoryStore
	Root *TimerLayer
}

func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring

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

func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent

func (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

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, *model.AppError)

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) ([]*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) 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

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) 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, *model.AppError)

func (*TimerLayerChannelStore) SaveDirectChannel

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

func (*TimerLayerChannelStore) SaveMember

func (*TimerLayerChannelStore) SearchAllChannels

func (*TimerLayerChannelStore) SearchArchivedInTeam

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

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

func (*TimerLayerChannelStore) UpdateMember

func (*TimerLayerChannelStore) UpdateMembersRole

func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) *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

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

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

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) (*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) 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) GetMemberUsersPage

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

func (*TimerLayerGroupStore) GroupChannelCount

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

func (*TimerLayerGroupStore) GroupCount

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

func (*TimerLayerGroupStore) GroupMemberCount

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

func (*TimerLayerGroupStore) GroupTeamCount

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

func (*TimerLayerGroupStore) PermanentDeleteMembersByUser

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

func (*TimerLayerGroupStore) PermittedSyncableAdmins

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

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

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

func (s *TimerLayerPostStore) Search(teamId string, userId string, params *model.SearchParams) (*model.PostList, *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) Delete

func (s *TimerLayerRoleStore) Delete(roldId 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) Delete

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

func (*TimerLayerSchemeStore) Get

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

func (*TimerLayerSchemeStore) GetAllPage

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

func (*TimerLayerSchemeStore) GetByName

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

func (*TimerLayerSchemeStore) PermanentDeleteAll

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

func (*TimerLayerSchemeStore) Save

type TimerLayerSessionStore

type TimerLayerSessionStore struct {
	SessionStore
	Root *TimerLayer
}

func (*TimerLayerSessionStore) AnalyticsSessionCount

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

func (*TimerLayerSessionStore) Cleanup

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

func (*TimerLayerSessionStore) Get

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

func (*TimerLayerSessionStore) GetSessions

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

func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds

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

func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser

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

func (*TimerLayerSessionStore) Remove

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

func (*TimerLayerSessionStore) RemoveAllSessions

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

func (*TimerLayerSessionStore) Save

func (*TimerLayerSessionStore) UpdateDeviceId

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

func (*TimerLayerSessionStore) UpdateLastActivityAt

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

func (*TimerLayerSessionStore) UpdateProps

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

func (*TimerLayerSessionStore) UpdateRoles

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

type TimerLayerStatusStore

type TimerLayerStatusStore struct {
	StatusStore
	Root *TimerLayer
}

func (*TimerLayerStatusStore) Get

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

func (*TimerLayerStatusStore) GetByIds

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

func (*TimerLayerStatusStore) GetTotalActiveUsersCount

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

func (*TimerLayerStatusStore) ResetAll

func (s *TimerLayerStatusStore) ResetAll() *model.AppError

func (*TimerLayerStatusStore) SaveOrUpdate

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

func (*TimerLayerStatusStore) UpdateLastActivityAt

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

type TimerLayerSystemStore

type TimerLayerSystemStore struct {
	SystemStore
	Root *TimerLayer
}

func (*TimerLayerSystemStore) Get

func (*TimerLayerSystemStore) GetByName

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

func (*TimerLayerSystemStore) PermanentDeleteByName

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

func (*TimerLayerSystemStore) Save

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

func (*TimerLayerSystemStore) SaveOrUpdate

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

func (*TimerLayerSystemStore) Update

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

type 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) GetChannelUnreadsForAllTeams

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

func (*TimerLayerTeamStore) GetChannelUnreadsForTeam

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

func (*TimerLayerTeamStore) GetMember

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

func (*TimerLayerTeamStore) GetMembers

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

func (*TimerLayerTeamStore) GetMembersByIds

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

func (*TimerLayerTeamStore) GetTeamMembersForExport

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

func (*TimerLayerTeamStore) GetTeamsByScheme

func (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

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

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

func (*TimerLayerTeamStore) SearchAllPaged

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

func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) *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) AnalyticsGetInactiveUsersCount

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

func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount

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

func (*TimerLayerUserStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerUserStore) ClearCaches

func (s *TimerLayerUserStore) ClearCaches()

func (*TimerLayerUserStore) Count

func (*TimerLayerUserStore) DeactivateGuests

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

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)
	GetByUsername(username string) (*model.User, *model.AppError)
	GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError)
	VerifyEmail(userId, email string) (string, *model.AppError)
	GetEtagForAllProfiles() string
	GetEtagForProfiles(teamId string) string
	UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
	GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
	PermanentDelete(userId string) *model.AppError
	AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
	GetUnreadCount(userId string) (int64, *model.AppError)
	GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
	AnalyticsGetSystemAdminCount() (int64, *model.AppError)
	GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetEtagForProfilesNotInTeam(teamId string) string
	ClearAllCustomRoleAssignments() *model.AppError
	InferSystemInstallDate() (int64, *model.AppError)
	GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
	GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
	Count(options model.UserCountOptions) (int64, *model.AppError)
	GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
	GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
	PromoteGuestToUser(userID string) *model.AppError
	DemoteUserToGuest(userID string) *model.AppError
	DeactivateGuests() ([]string, *model.AppError)
}

type UserTermsOfServiceStore

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

type WebhookStore

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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