timerlayer

package
v6.7.2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimerLayer

type TimerLayer struct {
	store.Store
	Metrics                   einterfaces.MetricsInterface
	AuditStore                store.AuditStore
	BotStore                  store.BotStore
	ChannelStore              store.ChannelStore
	ChannelMemberHistoryStore store.ChannelMemberHistoryStore
	ClusterDiscoveryStore     store.ClusterDiscoveryStore
	CommandStore              store.CommandStore
	CommandWebhookStore       store.CommandWebhookStore
	ComplianceStore           store.ComplianceStore
	EmojiStore                store.EmojiStore
	FileInfoStore             store.FileInfoStore
	GroupStore                store.GroupStore
	JobStore                  store.JobStore
	LicenseStore              store.LicenseStore
	LinkMetadataStore         store.LinkMetadataStore
	OAuthStore                store.OAuthStore
	PluginStore               store.PluginStore
	PostStore                 store.PostStore
	PreferenceStore           store.PreferenceStore
	ProductNoticesStore       store.ProductNoticesStore
	ReactionStore             store.ReactionStore
	RemoteClusterStore        store.RemoteClusterStore
	RetentionPolicyStore      store.RetentionPolicyStore
	RoleStore                 store.RoleStore
	SchemeStore               store.SchemeStore
	SessionStore              store.SessionStore
	SharedChannelStore        store.SharedChannelStore
	StatusStore               store.StatusStore
	SystemStore               store.SystemStore
	TeamStore                 store.TeamStore
	TermsOfServiceStore       store.TermsOfServiceStore
	ThreadStore               store.ThreadStore
	TokenStore                store.TokenStore
	UploadSessionStore        store.UploadSessionStore
	UserStore                 store.UserStore
	UserAccessTokenStore      store.UserAccessTokenStore
	UserTermsOfServiceStore   store.UserTermsOfServiceStore
	WebhookStore              store.WebhookStore
}

func New

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

func (*TimerLayer) Audit

func (s *TimerLayer) Audit() store.AuditStore

func (*TimerLayer) Bot

func (s *TimerLayer) Bot() store.BotStore

func (*TimerLayer) Channel

func (s *TimerLayer) Channel() store.ChannelStore

func (*TimerLayer) ChannelMemberHistory

func (s *TimerLayer) ChannelMemberHistory() store.ChannelMemberHistoryStore

func (*TimerLayer) Close

func (s *TimerLayer) Close()

func (*TimerLayer) ClusterDiscovery

func (s *TimerLayer) ClusterDiscovery() store.ClusterDiscoveryStore

func (*TimerLayer) Command

func (s *TimerLayer) Command() store.CommandStore

func (*TimerLayer) CommandWebhook

func (s *TimerLayer) CommandWebhook() store.CommandWebhookStore

func (*TimerLayer) Compliance

func (s *TimerLayer) Compliance() store.ComplianceStore

func (*TimerLayer) DropAllTables

func (s *TimerLayer) DropAllTables()

func (*TimerLayer) Emoji

func (s *TimerLayer) Emoji() store.EmojiStore

func (*TimerLayer) FileInfo

func (s *TimerLayer) FileInfo() store.FileInfoStore

func (*TimerLayer) Group

func (s *TimerLayer) Group() store.GroupStore

func (*TimerLayer) Job

func (s *TimerLayer) Job() store.JobStore

func (*TimerLayer) License

func (s *TimerLayer) License() store.LicenseStore

func (*TimerLayer) LinkMetadata

func (s *TimerLayer) LinkMetadata() store.LinkMetadataStore

func (*TimerLayer) LockToMaster

func (s *TimerLayer) LockToMaster()

func (*TimerLayer) MarkSystemRanUnitTests

func (s *TimerLayer) MarkSystemRanUnitTests()

func (*TimerLayer) OAuth

func (s *TimerLayer) OAuth() store.OAuthStore

func (*TimerLayer) Plugin

func (s *TimerLayer) Plugin() store.PluginStore

func (*TimerLayer) Post

func (s *TimerLayer) Post() store.PostStore

func (*TimerLayer) Preference

func (s *TimerLayer) Preference() store.PreferenceStore

func (*TimerLayer) ProductNotices

func (s *TimerLayer) ProductNotices() store.ProductNoticesStore

func (*TimerLayer) Reaction

func (s *TimerLayer) Reaction() store.ReactionStore

func (*TimerLayer) RemoteCluster

func (s *TimerLayer) RemoteCluster() store.RemoteClusterStore

func (*TimerLayer) RetentionPolicy

func (s *TimerLayer) RetentionPolicy() store.RetentionPolicyStore

func (*TimerLayer) Role

func (s *TimerLayer) Role() store.RoleStore

func (*TimerLayer) Scheme

func (s *TimerLayer) Scheme() store.SchemeStore

func (*TimerLayer) Session

func (s *TimerLayer) Session() store.SessionStore

func (*TimerLayer) SetContext

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

func (*TimerLayer) SharedChannel

func (s *TimerLayer) SharedChannel() store.SharedChannelStore

func (*TimerLayer) Status

func (s *TimerLayer) Status() store.StatusStore

func (*TimerLayer) System

func (s *TimerLayer) System() store.SystemStore

func (*TimerLayer) Team

func (s *TimerLayer) Team() store.TeamStore

func (*TimerLayer) TermsOfService

func (s *TimerLayer) TermsOfService() store.TermsOfServiceStore

func (*TimerLayer) Thread

func (s *TimerLayer) Thread() store.ThreadStore

func (*TimerLayer) Token

func (s *TimerLayer) Token() store.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) UploadSession

func (s *TimerLayer) UploadSession() store.UploadSessionStore

func (*TimerLayer) User

func (s *TimerLayer) User() store.UserStore

func (*TimerLayer) UserAccessToken

func (s *TimerLayer) UserAccessToken() store.UserAccessTokenStore

func (*TimerLayer) UserTermsOfService

func (s *TimerLayer) UserTermsOfService() store.UserTermsOfServiceStore

func (*TimerLayer) Webhook

func (s *TimerLayer) Webhook() store.WebhookStore

type TimerLayerAuditStore

type TimerLayerAuditStore struct {
	store.AuditStore
	Root *TimerLayer
}

func (*TimerLayerAuditStore) Get

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

func (*TimerLayerAuditStore) PermanentDeleteByUser

func (s *TimerLayerAuditStore) PermanentDeleteByUser(userID string) error

func (*TimerLayerAuditStore) Save

func (s *TimerLayerAuditStore) Save(audit *model.Audit) error

type TimerLayerBotStore

type TimerLayerBotStore struct {
	store.BotStore
	Root *TimerLayer
}

func (*TimerLayerBotStore) Get

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

func (*TimerLayerBotStore) GetAll

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

func (*TimerLayerBotStore) PermanentDelete

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

func (*TimerLayerBotStore) Save

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

func (*TimerLayerBotStore) Update

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

type TimerLayerChannelMemberHistoryStore

type TimerLayerChannelMemberHistoryStore struct {
	store.ChannelMemberHistoryStore
	Root *TimerLayer
}

func (*TimerLayerChannelMemberHistoryStore) DeleteOrphanedRows

func (s *TimerLayerChannelMemberHistoryStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerChannelMemberHistoryStore) GetChannelsLeftSince added in v6.5.0

func (s *TimerLayerChannelMemberHistoryStore) GetChannelsLeftSince(userID string, since int64) ([]string, error)

func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring

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

func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent

func (s *TimerLayerChannelMemberHistoryStore) LogJoinEvent(userID string, channelID string, joinTime int64) error

func (*TimerLayerChannelMemberHistoryStore) LogLeaveEvent

func (s *TimerLayerChannelMemberHistoryStore) LogLeaveEvent(userID string, channelID string, leaveTime int64) error

func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch

func (s *TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)

func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies

func (s *TimerLayerChannelMemberHistoryStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)

type TimerLayerChannelStore

type TimerLayerChannelStore struct {
	store.ChannelStore
	Root *TimerLayer
}

func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount

func (s *TimerLayerChannelStore) AnalyticsDeletedTypeCount(teamID string, channelType model.ChannelType) (int64, error)

func (*TimerLayerChannelStore) AnalyticsTypeCount

func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamID string, channelType model.ChannelType) (int64, error)

func (*TimerLayerChannelStore) Autocomplete added in v6.2.0

func (s *TimerLayerChannelStore) Autocomplete(userID string, term string, includeDeleted bool, isGuest bool) (model.ChannelListWithTeamData, error)

func (*TimerLayerChannelStore) AutocompleteInTeam

func (s *TimerLayerChannelStore) AutocompleteInTeam(teamID string, userID string, term string, includeDeleted bool, isGuest bool) (model.ChannelList, error)

func (*TimerLayerChannelStore) AutocompleteInTeamForSearch

func (s *TimerLayerChannelStore) AutocompleteInTeamForSearch(teamID string, userID string, term string, includeDeleted bool) (model.ChannelList, error)

func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments

func (s *TimerLayerChannelStore) ClearAllCustomRoleAssignments() error

func (*TimerLayerChannelStore) ClearCaches

func (s *TimerLayerChannelStore) ClearCaches()

func (*TimerLayerChannelStore) ClearSidebarOnTeamLeave

func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userID string, teamID string) error

func (*TimerLayerChannelStore) CountPostsAfter

func (s *TimerLayerChannelStore) CountPostsAfter(channelID string, timestamp int64, userID string) (int, int, error)

func (*TimerLayerChannelStore) CreateDirectChannel

func (s *TimerLayerChannelStore) CreateDirectChannel(userID *model.User, otherUserID *model.User, channelOptions ...model.ChannelOption) (*model.Channel, error)

func (*TimerLayerChannelStore) CreateInitialSidebarCategories

func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)

func (*TimerLayerChannelStore) CreateSidebarCategory

func (s *TimerLayerChannelStore) CreateSidebarCategory(userID string, teamID string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, error)

func (*TimerLayerChannelStore) Delete

func (s *TimerLayerChannelStore) Delete(channelID string, time int64) error

func (*TimerLayerChannelStore) DeleteSidebarCategory

func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryID string) error

func (*TimerLayerChannelStore) DeleteSidebarChannelsByPreferences

func (s *TimerLayerChannelStore) DeleteSidebarChannelsByPreferences(preferences model.Preferences) error

func (*TimerLayerChannelStore) Get

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

func (*TimerLayerChannelStore) GetAll

func (s *TimerLayerChannelStore) GetAll(teamID string) ([]*model.Channel, error)

func (*TimerLayerChannelStore) GetAllChannelMembersById added in v6.2.0

func (s *TimerLayerChannelStore) GetAllChannelMembersById(id string) ([]string, error)

func (*TimerLayerChannelStore) GetAllChannelMembersForUser

func (s *TimerLayerChannelStore) GetAllChannelMembersForUser(userID string, allowFromCache bool, includeDeleted bool) (map[string]string, error)

func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel

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

func (*TimerLayerChannelStore) GetAllChannels

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

func (*TimerLayerChannelStore) GetAllChannelsCount

func (s *TimerLayerChannelStore) GetAllChannelsCount(opts store.ChannelSearchOpts) (int64, error)

func (*TimerLayerChannelStore) GetAllChannelsForExportAfter

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

func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter

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

func (*TimerLayerChannelStore) GetByName

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

func (*TimerLayerChannelStore) GetByNameIncludeDeleted

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

func (*TimerLayerChannelStore) GetByNames

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

func (*TimerLayerChannelStore) GetChannelCounts

func (s *TimerLayerChannelStore) GetChannelCounts(teamID string, userID string) (*model.ChannelCounts, error)

func (*TimerLayerChannelStore) GetChannelMembersForExport

func (s *TimerLayerChannelStore) GetChannelMembersForExport(userID string, teamID string) ([]*model.ChannelMemberForExport, error)

func (*TimerLayerChannelStore) GetChannelMembersTimezones

func (s *TimerLayerChannelStore) GetChannelMembersTimezones(channelID string) ([]model.StringMap, error)

func (*TimerLayerChannelStore) GetChannelUnread

func (s *TimerLayerChannelStore) GetChannelUnread(channelID string, userID string) (*model.ChannelUnread, error)

func (*TimerLayerChannelStore) GetChannels

func (s *TimerLayerChannelStore) GetChannels(teamID string, userID string, opts *model.ChannelSearchOpts) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetChannelsBatchForIndexing

func (s *TimerLayerChannelStore) GetChannelsBatchForIndexing(startTime int64, startChannelID string, limit int) ([]*model.Channel, error)

func (*TimerLayerChannelStore) GetChannelsByIds

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

func (*TimerLayerChannelStore) GetChannelsByScheme

func (s *TimerLayerChannelStore) GetChannelsByScheme(schemeID string, offset int, limit int) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetChannelsByUser added in v6.2.0

func (s *TimerLayerChannelStore) GetChannelsByUser(userID string, includeDeleted bool, lastDeleteAt int, pageSize int, fromChannelID string) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetChannelsWithCursor added in v6.5.0

func (s *TimerLayerChannelStore) GetChannelsWithCursor(teamId string, userId string, opts *model.ChannelSearchOpts, afterChannelID string) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetChannelsWithTeamDataByIds added in v6.2.0

func (s *TimerLayerChannelStore) GetChannelsWithTeamDataByIds(channelIds []string, includeDeleted bool) ([]*model.ChannelWithTeamData, error)

func (*TimerLayerChannelStore) GetDeleted

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

func (*TimerLayerChannelStore) GetDeletedByName

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

func (*TimerLayerChannelStore) GetFileCount added in v6.7.0

func (s *TimerLayerChannelStore) GetFileCount(channelID string) (int64, error)

func (*TimerLayerChannelStore) GetForPost

func (s *TimerLayerChannelStore) GetForPost(postID string) (*model.Channel, error)

func (*TimerLayerChannelStore) GetGuestCount

func (s *TimerLayerChannelStore) GetGuestCount(channelID string, allowFromCache bool) (int64, error)

func (*TimerLayerChannelStore) GetMany added in v6.7.0

func (s *TimerLayerChannelStore) GetMany(ids []string, allowFromCache bool) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetMember

func (s *TimerLayerChannelStore) GetMember(ctx context.Context, channelID string, userID string) (*model.ChannelMember, error)

func (*TimerLayerChannelStore) GetMemberCount

func (s *TimerLayerChannelStore) GetMemberCount(channelID string, allowFromCache bool) (int64, error)

func (*TimerLayerChannelStore) GetMemberCountFromCache

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

func (*TimerLayerChannelStore) GetMemberCountsByGroup

func (s *TimerLayerChannelStore) GetMemberCountsByGroup(ctx context.Context, channelID string, includeTimezones bool) ([]*model.ChannelMemberCountByGroup, error)

func (*TimerLayerChannelStore) GetMemberForPost

func (s *TimerLayerChannelStore) GetMemberForPost(postID string, userID string) (*model.ChannelMember, error)

func (*TimerLayerChannelStore) GetMembers

func (s *TimerLayerChannelStore) GetMembers(channelID string, offset int, limit int) (model.ChannelMembers, error)

func (*TimerLayerChannelStore) GetMembersByChannelIds

func (s *TimerLayerChannelStore) GetMembersByChannelIds(channelIds []string, userID string) (model.ChannelMembers, error)

func (*TimerLayerChannelStore) GetMembersByIds

func (s *TimerLayerChannelStore) GetMembersByIds(channelID string, userIds []string) (model.ChannelMembers, error)

func (*TimerLayerChannelStore) GetMembersForUser

func (s *TimerLayerChannelStore) GetMembersForUser(teamID string, userID string) (model.ChannelMembers, error)

func (*TimerLayerChannelStore) GetMembersForUserWithCursor added in v6.5.0

func (s *TimerLayerChannelStore) GetMembersForUserWithCursor(userID string, afterChannel string, afterUser string, limit int, lastUpdateAt int) (model.ChannelMembers, error)

func (*TimerLayerChannelStore) GetMembersForUserWithPagination

func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(userID string, page int, perPage int) (model.ChannelMembersWithTeamData, error)

func (*TimerLayerChannelStore) GetMembersInfoByChannelIds added in v6.5.0

func (s *TimerLayerChannelStore) GetMembersInfoByChannelIds(channelIDs []string) (map[string][]*model.User, error)

func (*TimerLayerChannelStore) GetMoreChannels

func (s *TimerLayerChannelStore) GetMoreChannels(teamID string, userID string, offset int, limit int) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetPinnedPostCount

func (s *TimerLayerChannelStore) GetPinnedPostCount(channelID string, allowFromCache bool) (int64, error)

func (*TimerLayerChannelStore) GetPinnedPosts

func (s *TimerLayerChannelStore) GetPinnedPosts(channelID string) (*model.PostList, error)

func (*TimerLayerChannelStore) GetPrivateChannelsForTeam

func (s *TimerLayerChannelStore) GetPrivateChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam

func (s *TimerLayerChannelStore) GetPublicChannelsByIdsForTeam(teamID string, channelIds []string) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetPublicChannelsForTeam

func (s *TimerLayerChannelStore) GetPublicChannelsForTeam(teamID string, offset int, limit int) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetSidebarCategories

func (s *TimerLayerChannelStore) GetSidebarCategories(userID string, teamID string) (*model.OrderedSidebarCategories, error)

func (*TimerLayerChannelStore) GetSidebarCategory

func (s *TimerLayerChannelStore) GetSidebarCategory(categoryID string) (*model.SidebarCategoryWithChannels, error)

func (*TimerLayerChannelStore) GetSidebarCategoryOrder

func (s *TimerLayerChannelStore) GetSidebarCategoryOrder(userID string, teamID string) ([]string, error)

func (*TimerLayerChannelStore) GetTeamChannels

func (s *TimerLayerChannelStore) GetTeamChannels(teamID string) (model.ChannelList, error)

func (*TimerLayerChannelStore) GetTeamForChannel

func (s *TimerLayerChannelStore) GetTeamForChannel(channelID string) (*model.Team, error)

func (*TimerLayerChannelStore) GetTeamMembersForChannel added in v6.2.0

func (s *TimerLayerChannelStore) GetTeamMembersForChannel(channelID string) ([]string, error)

func (*TimerLayerChannelStore) GroupSyncedChannelCount

func (s *TimerLayerChannelStore) GroupSyncedChannelCount() (int64, error)

func (*TimerLayerChannelStore) IncrementMentionCount

func (s *TimerLayerChannelStore) IncrementMentionCount(channelID string, userIDs []string, isRoot bool) error

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

func (*TimerLayerChannelStore) PermanentDelete

func (s *TimerLayerChannelStore) PermanentDelete(channelID string) error

func (*TimerLayerChannelStore) PermanentDeleteByTeam

func (s *TimerLayerChannelStore) PermanentDeleteByTeam(teamID string) error

func (*TimerLayerChannelStore) PermanentDeleteMembersByChannel

func (s *TimerLayerChannelStore) PermanentDeleteMembersByChannel(channelID string) error

func (*TimerLayerChannelStore) PermanentDeleteMembersByUser

func (s *TimerLayerChannelStore) PermanentDeleteMembersByUser(userID string) error

func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers

func (s *TimerLayerChannelStore) RemoveAllDeactivatedMembers(channelID string) error

func (*TimerLayerChannelStore) RemoveMember

func (s *TimerLayerChannelStore) RemoveMember(channelID string, userID string) error

func (*TimerLayerChannelStore) RemoveMembers

func (s *TimerLayerChannelStore) RemoveMembers(channelID string, userIds []string) error

func (*TimerLayerChannelStore) ResetAllChannelSchemes

func (s *TimerLayerChannelStore) ResetAllChannelSchemes() error

func (*TimerLayerChannelStore) Restore

func (s *TimerLayerChannelStore) Restore(channelID string, time int64) error

func (*TimerLayerChannelStore) Save

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

func (*TimerLayerChannelStore) SaveDirectChannel

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

func (*TimerLayerChannelStore) SaveMember

func (*TimerLayerChannelStore) SaveMultipleMembers

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

func (*TimerLayerChannelStore) SearchAllChannels

func (*TimerLayerChannelStore) SearchArchivedInTeam

func (s *TimerLayerChannelStore) SearchArchivedInTeam(teamID string, term string, userID string) (model.ChannelList, error)

func (*TimerLayerChannelStore) SearchForUserInTeam

func (s *TimerLayerChannelStore) SearchForUserInTeam(userID string, teamID string, term string, includeDeleted bool) (model.ChannelList, error)

func (*TimerLayerChannelStore) SearchGroupChannels

func (s *TimerLayerChannelStore) SearchGroupChannels(userID string, term string) (model.ChannelList, error)

func (*TimerLayerChannelStore) SearchInTeam

func (s *TimerLayerChannelStore) SearchInTeam(teamID string, term string, includeDeleted bool) (model.ChannelList, error)

func (*TimerLayerChannelStore) SearchMore

func (s *TimerLayerChannelStore) SearchMore(userID string, teamID string, term string) (model.ChannelList, error)

func (*TimerLayerChannelStore) SetDeleteAt

func (s *TimerLayerChannelStore) SetDeleteAt(channelID string, deleteAt int64, updateAt int64) error

func (*TimerLayerChannelStore) SetShared

func (s *TimerLayerChannelStore) SetShared(channelId string, shared bool) error

func (*TimerLayerChannelStore) Update

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

func (*TimerLayerChannelStore) UpdateLastViewedAt

func (s *TimerLayerChannelStore) UpdateLastViewedAt(channelIds []string, userID string) (map[string]int64, error)

func (*TimerLayerChannelStore) UpdateLastViewedAtPost

func (s *TimerLayerChannelStore) UpdateLastViewedAtPost(unreadPost *model.Post, userID string, mentionCount int, mentionCountRoot int, setUnreadCountRoot bool) (*model.ChannelUnreadAt, error)

func (*TimerLayerChannelStore) UpdateMember

func (s *TimerLayerChannelStore) UpdateMember(member *model.ChannelMember) (*model.ChannelMember, error)

func (*TimerLayerChannelStore) UpdateMemberNotifyProps added in v6.1.0

func (s *TimerLayerChannelStore) UpdateMemberNotifyProps(channelID string, userID string, props map[string]string) (*model.ChannelMember, error)

func (*TimerLayerChannelStore) UpdateMembersRole

func (s *TimerLayerChannelStore) UpdateMembersRole(channelID string, userIDs []string) error

func (*TimerLayerChannelStore) UpdateMultipleMembers

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

func (*TimerLayerChannelStore) UpdateSidebarCategories

func (*TimerLayerChannelStore) UpdateSidebarCategoryOrder

func (s *TimerLayerChannelStore) UpdateSidebarCategoryOrder(userID string, teamID string, categoryOrder []string) error

func (*TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove

func (s *TimerLayerChannelStore) UpdateSidebarChannelCategoryOnMove(channel *model.Channel, newTeamID string) error

func (*TimerLayerChannelStore) UpdateSidebarChannelsByPreferences

func (s *TimerLayerChannelStore) UpdateSidebarChannelsByPreferences(preferences model.Preferences) error

func (*TimerLayerChannelStore) UserBelongsToChannels

func (s *TimerLayerChannelStore) UserBelongsToChannels(userID string, channelIds []string) (bool, error)

type TimerLayerClusterDiscoveryStore

type TimerLayerClusterDiscoveryStore struct {
	store.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, error)

func (*TimerLayerClusterDiscoveryStore) Save

func (*TimerLayerClusterDiscoveryStore) SetLastPingAt

func (s *TimerLayerClusterDiscoveryStore) SetLastPingAt(discovery *model.ClusterDiscovery) error

type TimerLayerCommandStore

type TimerLayerCommandStore struct {
	store.CommandStore
	Root *TimerLayer
}

func (*TimerLayerCommandStore) AnalyticsCommandCount

func (s *TimerLayerCommandStore) AnalyticsCommandCount(teamID string) (int64, error)

func (*TimerLayerCommandStore) Delete

func (s *TimerLayerCommandStore) Delete(commandID string, time int64) error

func (*TimerLayerCommandStore) Get

func (*TimerLayerCommandStore) GetByTeam

func (s *TimerLayerCommandStore) GetByTeam(teamID string) ([]*model.Command, error)

func (*TimerLayerCommandStore) GetByTrigger

func (s *TimerLayerCommandStore) GetByTrigger(teamID string, trigger string) (*model.Command, error)

func (*TimerLayerCommandStore) PermanentDeleteByTeam

func (s *TimerLayerCommandStore) PermanentDeleteByTeam(teamID string) error

func (*TimerLayerCommandStore) PermanentDeleteByUser

func (s *TimerLayerCommandStore) PermanentDeleteByUser(userID string) error

func (*TimerLayerCommandStore) Save

func (s *TimerLayerCommandStore) Save(webhook *model.Command) (*model.Command, error)

func (*TimerLayerCommandStore) Update

func (s *TimerLayerCommandStore) Update(hook *model.Command) (*model.Command, error)

type TimerLayerCommandWebhookStore

type TimerLayerCommandWebhookStore struct {
	store.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) error

type TimerLayerComplianceStore

type TimerLayerComplianceStore struct {
	store.ComplianceStore
	Root *TimerLayer
}

func (*TimerLayerComplianceStore) ComplianceExport

func (*TimerLayerComplianceStore) Get

func (*TimerLayerComplianceStore) GetAll

func (s *TimerLayerComplianceStore) GetAll(offset int, limit int) (model.Compliances, error)

func (*TimerLayerComplianceStore) MessageExport

func (*TimerLayerComplianceStore) Save

func (*TimerLayerComplianceStore) Update

func (s *TimerLayerComplianceStore) Update(compliance *model.Compliance) (*model.Compliance, error)

type TimerLayerEmojiStore

type TimerLayerEmojiStore struct {
	store.EmojiStore
	Root *TimerLayer
}

func (*TimerLayerEmojiStore) Delete

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

func (*TimerLayerEmojiStore) Get

func (s *TimerLayerEmojiStore) Get(ctx context.Context, id string, allowFromCache bool) (*model.Emoji, error)

func (*TimerLayerEmojiStore) GetByName

func (s *TimerLayerEmojiStore) GetByName(ctx context.Context, name string, allowFromCache bool) (*model.Emoji, error)

func (*TimerLayerEmojiStore) GetList

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

func (*TimerLayerEmojiStore) GetMultipleByName

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

func (*TimerLayerEmojiStore) Save

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

func (*TimerLayerEmojiStore) Search

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

type TimerLayerFileInfoStore

type TimerLayerFileInfoStore struct {
	store.FileInfoStore
	Root *TimerLayer
}

func (*TimerLayerFileInfoStore) AttachToPost

func (s *TimerLayerFileInfoStore) AttachToPost(fileID string, postID string, creatorID string) error

func (*TimerLayerFileInfoStore) ClearCaches

func (s *TimerLayerFileInfoStore) ClearCaches()

func (*TimerLayerFileInfoStore) CountAll

func (s *TimerLayerFileInfoStore) CountAll() (int64, error)

func (*TimerLayerFileInfoStore) DeleteForPost

func (s *TimerLayerFileInfoStore) DeleteForPost(postID string) (string, error)

func (*TimerLayerFileInfoStore) Get

func (*TimerLayerFileInfoStore) GetByIds

func (s *TimerLayerFileInfoStore) GetByIds(ids []string) ([]*model.FileInfo, error)

func (*TimerLayerFileInfoStore) GetByPath

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

func (*TimerLayerFileInfoStore) GetFilesBatchForIndexing

func (s *TimerLayerFileInfoStore) GetFilesBatchForIndexing(startTime int64, startFileID string, limit int) ([]*model.FileForIndexing, error)

func (*TimerLayerFileInfoStore) GetForPost

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

func (*TimerLayerFileInfoStore) GetForUser

func (s *TimerLayerFileInfoStore) GetForUser(userID string) ([]*model.FileInfo, error)

func (*TimerLayerFileInfoStore) GetFromMaster

func (s *TimerLayerFileInfoStore) GetFromMaster(id string) (*model.FileInfo, error)

func (*TimerLayerFileInfoStore) GetWithOptions

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

func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache

func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postID string, deleted bool)

func (*TimerLayerFileInfoStore) PermanentDelete

func (s *TimerLayerFileInfoStore) PermanentDelete(fileID string) error

func (*TimerLayerFileInfoStore) PermanentDeleteBatch

func (s *TimerLayerFileInfoStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)

func (*TimerLayerFileInfoStore) PermanentDeleteByUser

func (s *TimerLayerFileInfoStore) PermanentDeleteByUser(userID string) (int64, error)

func (*TimerLayerFileInfoStore) Save

func (*TimerLayerFileInfoStore) Search

func (s *TimerLayerFileInfoStore) Search(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.FileInfoList, error)

func (*TimerLayerFileInfoStore) SetContent

func (s *TimerLayerFileInfoStore) SetContent(fileID string, content string) error

func (*TimerLayerFileInfoStore) Upsert

type TimerLayerGroupStore

type TimerLayerGroupStore struct {
	store.GroupStore
	Root *TimerLayer
}

func (*TimerLayerGroupStore) AdminRoleGroupsForSyncableMember

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

func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) ChannelMembersToAdd

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

func (*TimerLayerGroupStore) ChannelMembersToRemove

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

func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers

func (s *TimerLayerGroupStore) CountChannelMembersMinusGroupMembers(channelID string, groupIDs []string) (int64, error)

func (*TimerLayerGroupStore) CountGroupsByChannel

func (s *TimerLayerGroupStore) CountGroupsByChannel(channelID string, opts model.GroupSearchOpts) (int64, error)

func (*TimerLayerGroupStore) CountGroupsByTeam

func (s *TimerLayerGroupStore) CountGroupsByTeam(teamID string, opts model.GroupSearchOpts) (int64, error)

func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers

func (s *TimerLayerGroupStore) CountTeamMembersMinusGroupMembers(teamID string, groupIDs []string) (int64, error)

func (*TimerLayerGroupStore) Create

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

func (*TimerLayerGroupStore) CreateGroupSyncable

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

func (*TimerLayerGroupStore) CreateWithUserIds added in v6.5.0

func (s *TimerLayerGroupStore) CreateWithUserIds(group *model.GroupWithUserIds) (*model.Group, error)

func (*TimerLayerGroupStore) Delete

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

func (*TimerLayerGroupStore) DeleteGroupSyncable

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

func (*TimerLayerGroupStore) DeleteMember

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

func (*TimerLayerGroupStore) DeleteMembers added in v6.5.0

func (s *TimerLayerGroupStore) DeleteMembers(groupID string, userIDs []string) ([]*model.GroupMember, error)

func (*TimerLayerGroupStore) DistinctGroupMemberCount

func (s *TimerLayerGroupStore) DistinctGroupMemberCount() (int64, error)

func (*TimerLayerGroupStore) Get

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

func (*TimerLayerGroupStore) GetAllBySource

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

func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId

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

func (*TimerLayerGroupStore) GetByIDs

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

func (*TimerLayerGroupStore) GetByName

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

func (*TimerLayerGroupStore) GetByRemoteID

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

func (*TimerLayerGroupStore) GetByUser

func (s *TimerLayerGroupStore) GetByUser(userID string) ([]*model.Group, error)

func (*TimerLayerGroupStore) GetGroupSyncable

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

func (*TimerLayerGroupStore) GetGroups

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

func (*TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam

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

func (*TimerLayerGroupStore) GetGroupsByChannel

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

func (*TimerLayerGroupStore) GetGroupsByTeam

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

func (*TimerLayerGroupStore) GetMember added in v6.5.0

func (s *TimerLayerGroupStore) GetMember(groupID string, userID string) (*model.GroupMember, error)

func (*TimerLayerGroupStore) GetMemberCount

func (s *TimerLayerGroupStore) GetMemberCount(groupID string) (int64, error)

func (*TimerLayerGroupStore) GetMemberUsers

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

func (*TimerLayerGroupStore) GetMemberUsersInTeam

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

func (*TimerLayerGroupStore) GetMemberUsersNotInChannel

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

func (*TimerLayerGroupStore) GetMemberUsersPage

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

func (*TimerLayerGroupStore) GetNonMemberUsersPage added in v6.5.0

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

func (*TimerLayerGroupStore) GroupChannelCount

func (s *TimerLayerGroupStore) GroupChannelCount() (int64, error)

func (*TimerLayerGroupStore) GroupCount

func (s *TimerLayerGroupStore) GroupCount() (int64, error)

func (*TimerLayerGroupStore) GroupCountBySource added in v6.7.0

func (s *TimerLayerGroupStore) GroupCountBySource(source model.GroupSource) (int64, error)

func (*TimerLayerGroupStore) GroupCountWithAllowReference

func (s *TimerLayerGroupStore) GroupCountWithAllowReference() (int64, error)

func (*TimerLayerGroupStore) GroupMemberCount

func (s *TimerLayerGroupStore) GroupMemberCount() (int64, error)

func (*TimerLayerGroupStore) GroupTeamCount

func (s *TimerLayerGroupStore) GroupTeamCount() (int64, error)

func (*TimerLayerGroupStore) PermanentDeleteMembersByUser

func (s *TimerLayerGroupStore) PermanentDeleteMembersByUser(userID string) error

func (*TimerLayerGroupStore) PermittedSyncableAdmins

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

func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) TeamMembersToAdd

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

func (*TimerLayerGroupStore) TeamMembersToRemove

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

func (*TimerLayerGroupStore) Update

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

func (*TimerLayerGroupStore) UpdateGroupSyncable

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

func (*TimerLayerGroupStore) UpsertMember

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

func (*TimerLayerGroupStore) UpsertMembers added in v6.5.0

func (s *TimerLayerGroupStore) UpsertMembers(groupID string, userIDs []string) ([]*model.GroupMember, error)

type TimerLayerJobStore

type TimerLayerJobStore struct {
	store.JobStore
	Root *TimerLayer
}

func (*TimerLayerJobStore) Cleanup added in v6.1.0

func (s *TimerLayerJobStore) Cleanup(expiryTime int64, batchSize int) error

func (*TimerLayerJobStore) Delete

func (s *TimerLayerJobStore) Delete(id string) (string, error)

func (*TimerLayerJobStore) Get

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

func (*TimerLayerJobStore) GetAllByStatus

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

func (*TimerLayerJobStore) GetAllByType

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

func (*TimerLayerJobStore) GetAllByTypeAndStatus added in v6.5.0

func (s *TimerLayerJobStore) GetAllByTypeAndStatus(jobType string, status string) ([]*model.Job, error)

func (*TimerLayerJobStore) GetAllByTypePage

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

func (*TimerLayerJobStore) GetAllByTypesPage

func (s *TimerLayerJobStore) GetAllByTypesPage(jobTypes []string, offset int, limit int) ([]*model.Job, error)

func (*TimerLayerJobStore) GetAllPage

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

func (*TimerLayerJobStore) GetCountByStatusAndType

func (s *TimerLayerJobStore) GetCountByStatusAndType(status string, jobType string) (int64, error)

func (*TimerLayerJobStore) GetNewestJobByStatusAndType

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

func (*TimerLayerJobStore) GetNewestJobByStatusesAndType

func (s *TimerLayerJobStore) GetNewestJobByStatusesAndType(statuses []string, jobType string) (*model.Job, error)

func (*TimerLayerJobStore) Save

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

func (*TimerLayerJobStore) UpdateOptimistically

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

func (*TimerLayerJobStore) UpdateStatus

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

func (*TimerLayerJobStore) UpdateStatusOptimistically

func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus string, newStatus string) (bool, error)

type TimerLayerLicenseStore

type TimerLayerLicenseStore struct {
	store.LicenseStore
	Root *TimerLayer
}

func (*TimerLayerLicenseStore) Get

func (*TimerLayerLicenseStore) GetAll

func (s *TimerLayerLicenseStore) GetAll() ([]*model.LicenseRecord, error)

func (*TimerLayerLicenseStore) Save

type TimerLayerLinkMetadataStore

type TimerLayerLinkMetadataStore struct {
	store.LinkMetadataStore
	Root *TimerLayer
}

func (*TimerLayerLinkMetadataStore) Get

func (s *TimerLayerLinkMetadataStore) Get(url string, timestamp int64) (*model.LinkMetadata, error)

func (*TimerLayerLinkMetadataStore) Save

type TimerLayerOAuthStore

type TimerLayerOAuthStore struct {
	store.OAuthStore
	Root *TimerLayer
}

func (*TimerLayerOAuthStore) DeleteApp

func (s *TimerLayerOAuthStore) DeleteApp(id string) error

func (*TimerLayerOAuthStore) GetAccessData

func (s *TimerLayerOAuthStore) GetAccessData(token string) (*model.AccessData, error)

func (*TimerLayerOAuthStore) GetAccessDataByRefreshToken

func (s *TimerLayerOAuthStore) GetAccessDataByRefreshToken(token string) (*model.AccessData, error)

func (*TimerLayerOAuthStore) GetAccessDataByUserForApp

func (s *TimerLayerOAuthStore) GetAccessDataByUserForApp(userID string, clientId string) ([]*model.AccessData, error)

func (*TimerLayerOAuthStore) GetApp

func (s *TimerLayerOAuthStore) GetApp(id string) (*model.OAuthApp, error)

func (*TimerLayerOAuthStore) GetAppByUser

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

func (*TimerLayerOAuthStore) GetApps

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

func (*TimerLayerOAuthStore) GetAuthData

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

func (*TimerLayerOAuthStore) GetAuthorizedApps

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

func (*TimerLayerOAuthStore) GetPreviousAccessData

func (s *TimerLayerOAuthStore) GetPreviousAccessData(userID string, clientId string) (*model.AccessData, error)

func (*TimerLayerOAuthStore) PermanentDeleteAuthDataByUser

func (s *TimerLayerOAuthStore) PermanentDeleteAuthDataByUser(userID string) error

func (*TimerLayerOAuthStore) RemoveAccessData

func (s *TimerLayerOAuthStore) RemoveAccessData(token string) error

func (*TimerLayerOAuthStore) RemoveAllAccessData

func (s *TimerLayerOAuthStore) RemoveAllAccessData() error

func (*TimerLayerOAuthStore) RemoveAuthData

func (s *TimerLayerOAuthStore) RemoveAuthData(code string) error

func (*TimerLayerOAuthStore) SaveAccessData

func (s *TimerLayerOAuthStore) SaveAccessData(accessData *model.AccessData) (*model.AccessData, error)

func (*TimerLayerOAuthStore) SaveApp

func (s *TimerLayerOAuthStore) SaveApp(app *model.OAuthApp) (*model.OAuthApp, error)

func (*TimerLayerOAuthStore) SaveAuthData

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

func (*TimerLayerOAuthStore) UpdateAccessData

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

func (*TimerLayerOAuthStore) UpdateApp

func (s *TimerLayerOAuthStore) UpdateApp(app *model.OAuthApp) (*model.OAuthApp, error)

type TimerLayerPluginStore

type TimerLayerPluginStore struct {
	store.PluginStore
	Root *TimerLayer
}

func (*TimerLayerPluginStore) CompareAndDelete

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

func (*TimerLayerPluginStore) CompareAndSet

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

func (*TimerLayerPluginStore) Delete

func (s *TimerLayerPluginStore) Delete(pluginID string, key string) error

func (*TimerLayerPluginStore) DeleteAllExpired

func (s *TimerLayerPluginStore) DeleteAllExpired() error

func (*TimerLayerPluginStore) DeleteAllForPlugin

func (s *TimerLayerPluginStore) DeleteAllForPlugin(PluginID string) error

func (*TimerLayerPluginStore) Get

func (s *TimerLayerPluginStore) Get(pluginID string, key string) (*model.PluginKeyValue, error)

func (*TimerLayerPluginStore) List

func (s *TimerLayerPluginStore) List(pluginID string, page int, perPage int) ([]string, error)

func (*TimerLayerPluginStore) SaveOrUpdate

func (s *TimerLayerPluginStore) SaveOrUpdate(keyVal *model.PluginKeyValue) (*model.PluginKeyValue, error)

func (*TimerLayerPluginStore) SetWithOptions

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

type TimerLayerPostStore

type TimerLayerPostStore struct {
	store.PostStore
	Root *TimerLayer
}

func (*TimerLayerPostStore) AnalyticsPostCount

func (s *TimerLayerPostStore) AnalyticsPostCount(teamID string, mustHaveFile bool, mustHaveHashtag bool) (int64, error)

func (*TimerLayerPostStore) AnalyticsPostCountsByDay

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

func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay

func (s *TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay(teamID string) (model.AnalyticsRows, error)

func (*TimerLayerPostStore) ClearCaches

func (s *TimerLayerPostStore) ClearCaches()

func (*TimerLayerPostStore) Delete

func (s *TimerLayerPostStore) Delete(postID string, time int64, deleteByID string) error

func (*TimerLayerPostStore) DeleteOrphanedRows

func (s *TimerLayerPostStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerPostStore) Get

func (s *TimerLayerPostStore) Get(ctx context.Context, id string, opts model.GetPostsOptions, userID string, sanitizeOptions map[string]bool) (*model.PostList, error)

func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter

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

func (*TimerLayerPostStore) GetEtag

func (s *TimerLayerPostStore) GetEtag(channelID string, allowFromCache bool, collapsedThreads bool) string

func (*TimerLayerPostStore) GetFlaggedPosts

func (s *TimerLayerPostStore) GetFlaggedPosts(userID string, offset int, limit int) (*model.PostList, error)

func (*TimerLayerPostStore) GetFlaggedPostsForChannel

func (s *TimerLayerPostStore) GetFlaggedPostsForChannel(userID string, channelID string, offset int, limit int) (*model.PostList, error)

func (*TimerLayerPostStore) GetFlaggedPostsForTeam

func (s *TimerLayerPostStore) GetFlaggedPostsForTeam(userID string, teamID string, offset int, limit int) (*model.PostList, error)

func (*TimerLayerPostStore) GetLastPostRowCreateAt added in v6.5.0

func (s *TimerLayerPostStore) GetLastPostRowCreateAt() (int64, error)

func (*TimerLayerPostStore) GetMaxPostSize

func (s *TimerLayerPostStore) GetMaxPostSize() int

func (*TimerLayerPostStore) GetOldest

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

func (*TimerLayerPostStore) GetOldestEntityCreationTime

func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, error)

func (*TimerLayerPostStore) GetParentsForExportAfter

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

func (*TimerLayerPostStore) GetPostAfterTime

func (s *TimerLayerPostStore) GetPostAfterTime(channelID string, time int64, collapsedThreads bool) (*model.Post, error)

func (*TimerLayerPostStore) GetPostIdAfterTime

func (s *TimerLayerPostStore) GetPostIdAfterTime(channelID string, time int64, collapsedThreads bool) (string, error)

func (*TimerLayerPostStore) GetPostIdBeforeTime

func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelID string, time int64, collapsedThreads bool) (string, error)

func (*TimerLayerPostStore) GetPosts

func (s *TimerLayerPostStore) GetPosts(options model.GetPostsOptions, allowFromCache bool, sanitizeOptions map[string]bool) (*model.PostList, error)

func (*TimerLayerPostStore) GetPostsAfter

func (s *TimerLayerPostStore) GetPostsAfter(options model.GetPostsOptions, sanitizeOptions map[string]bool) (*model.PostList, error)

func (*TimerLayerPostStore) GetPostsBatchForIndexing

func (s *TimerLayerPostStore) GetPostsBatchForIndexing(startTime int64, startPostID string, limit int) ([]*model.PostForIndexing, error)

func (*TimerLayerPostStore) GetPostsBefore

func (s *TimerLayerPostStore) GetPostsBefore(options model.GetPostsOptions, sanitizeOptions map[string]bool) (*model.PostList, error)

func (*TimerLayerPostStore) GetPostsByIds

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

func (*TimerLayerPostStore) GetPostsCreatedAt

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

func (*TimerLayerPostStore) GetPostsSince

func (s *TimerLayerPostStore) GetPostsSince(options model.GetPostsSinceOptions, allowFromCache bool, sanitizeOptions map[string]bool) (*model.PostList, error)

func (*TimerLayerPostStore) GetPostsSinceForSync

func (*TimerLayerPostStore) GetRepliesForExport

func (s *TimerLayerPostStore) GetRepliesForExport(parentID string) ([]*model.ReplyForExport, error)

func (*TimerLayerPostStore) GetSingle

func (s *TimerLayerPostStore) GetSingle(id string, inclDeleted bool) (*model.Post, error)

func (*TimerLayerPostStore) HasAutoResponsePostByUserSince

func (s *TimerLayerPostStore) HasAutoResponsePostByUserSince(options model.GetPostsSinceOptions, userId string) (bool, error)

func (*TimerLayerPostStore) InvalidateLastPostTimeCache

func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelID string)

func (*TimerLayerPostStore) Overwrite

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

func (*TimerLayerPostStore) OverwriteMultiple

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

func (*TimerLayerPostStore) PermanentDeleteBatch

func (s *TimerLayerPostStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)

func (*TimerLayerPostStore) PermanentDeleteBatchForRetentionPolicies

func (s *TimerLayerPostStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)

func (*TimerLayerPostStore) PermanentDeleteByChannel

func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelID string) error

func (*TimerLayerPostStore) PermanentDeleteByUser

func (s *TimerLayerPostStore) PermanentDeleteByUser(userID string) error

func (*TimerLayerPostStore) Save

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

func (*TimerLayerPostStore) SaveMultiple

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

func (*TimerLayerPostStore) Search

func (s *TimerLayerPostStore) Search(teamID string, userID string, params *model.SearchParams) (*model.PostList, error)

func (*TimerLayerPostStore) SearchPostsForUser added in v6.1.0

func (s *TimerLayerPostStore) SearchPostsForUser(paramsList []*model.SearchParams, userID string, teamID string, page int, perPage int) (*model.PostSearchResults, error)

func (*TimerLayerPostStore) Update

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

type TimerLayerPreferenceStore

type TimerLayerPreferenceStore struct {
	store.PreferenceStore
	Root *TimerLayer
}

func (*TimerLayerPreferenceStore) CleanupFlagsBatch

func (s *TimerLayerPreferenceStore) CleanupFlagsBatch(limit int64) (int64, error)

func (*TimerLayerPreferenceStore) Delete

func (s *TimerLayerPreferenceStore) Delete(userID string, category string, name string) error

func (*TimerLayerPreferenceStore) DeleteCategory

func (s *TimerLayerPreferenceStore) DeleteCategory(userID string, category string) error

func (*TimerLayerPreferenceStore) DeleteCategoryAndName

func (s *TimerLayerPreferenceStore) DeleteCategoryAndName(category string, name string) error

func (*TimerLayerPreferenceStore) DeleteOrphanedRows

func (s *TimerLayerPreferenceStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerPreferenceStore) Get

func (s *TimerLayerPreferenceStore) Get(userID string, category string, name string) (*model.Preference, error)

func (*TimerLayerPreferenceStore) GetAll

func (*TimerLayerPreferenceStore) GetCategory

func (s *TimerLayerPreferenceStore) GetCategory(userID string, category string) (model.Preferences, error)

func (*TimerLayerPreferenceStore) PermanentDeleteByUser

func (s *TimerLayerPreferenceStore) PermanentDeleteByUser(userID string) error

func (*TimerLayerPreferenceStore) Save

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

type TimerLayerProductNoticesStore

type TimerLayerProductNoticesStore struct {
	store.ProductNoticesStore
	Root *TimerLayer
}

func (*TimerLayerProductNoticesStore) Clear

func (s *TimerLayerProductNoticesStore) Clear(notices []string) error

func (*TimerLayerProductNoticesStore) ClearOldNotices

func (s *TimerLayerProductNoticesStore) ClearOldNotices(currentNotices model.ProductNotices) error

func (*TimerLayerProductNoticesStore) GetViews

func (*TimerLayerProductNoticesStore) View

func (s *TimerLayerProductNoticesStore) View(userID string, notices []string) error

type TimerLayerReactionStore

type TimerLayerReactionStore struct {
	store.ReactionStore
	Root *TimerLayer
}

func (*TimerLayerReactionStore) BulkGetForPosts

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

func (*TimerLayerReactionStore) Delete

func (s *TimerLayerReactionStore) Delete(reaction *model.Reaction) (*model.Reaction, error)

func (*TimerLayerReactionStore) DeleteAllWithEmojiName

func (s *TimerLayerReactionStore) DeleteAllWithEmojiName(emojiName string) error

func (*TimerLayerReactionStore) DeleteOrphanedRows

func (s *TimerLayerReactionStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerReactionStore) GetForPost

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

func (*TimerLayerReactionStore) GetForPostSince

func (s *TimerLayerReactionStore) GetForPostSince(postId string, since int64, excludeRemoteId string, inclDeleted bool) ([]*model.Reaction, error)

func (*TimerLayerReactionStore) GetTopForTeamSince added in v6.7.0

func (s *TimerLayerReactionStore) GetTopForTeamSince(teamID string, userID string, since int64, offset int, limit int) (*model.TopReactionList, error)

func (*TimerLayerReactionStore) GetTopForUserSince added in v6.7.0

func (s *TimerLayerReactionStore) GetTopForUserSince(userID string, teamID string, since int64, offset int, limit int) (*model.TopReactionList, error)

func (*TimerLayerReactionStore) PermanentDeleteBatch

func (s *TimerLayerReactionStore) PermanentDeleteBatch(endTime int64, limit int64) (int64, error)

func (*TimerLayerReactionStore) Save

func (s *TimerLayerReactionStore) Save(reaction *model.Reaction) (*model.Reaction, error)

type TimerLayerRemoteClusterStore

type TimerLayerRemoteClusterStore struct {
	store.RemoteClusterStore
	Root *TimerLayer
}

func (*TimerLayerRemoteClusterStore) Delete

func (s *TimerLayerRemoteClusterStore) Delete(remoteClusterId string) (bool, error)

func (*TimerLayerRemoteClusterStore) Get

func (s *TimerLayerRemoteClusterStore) Get(remoteClusterId string) (*model.RemoteCluster, error)

func (*TimerLayerRemoteClusterStore) GetAll

func (*TimerLayerRemoteClusterStore) Save

func (*TimerLayerRemoteClusterStore) SetLastPingAt

func (s *TimerLayerRemoteClusterStore) SetLastPingAt(remoteClusterId string) error

func (*TimerLayerRemoteClusterStore) Update

func (*TimerLayerRemoteClusterStore) UpdateTopics

func (s *TimerLayerRemoteClusterStore) UpdateTopics(remoteClusterId string, topics string) (*model.RemoteCluster, error)

type TimerLayerRetentionPolicyStore

type TimerLayerRetentionPolicyStore struct {
	store.RetentionPolicyStore
	Root *TimerLayer
}

func (*TimerLayerRetentionPolicyStore) AddChannels

func (s *TimerLayerRetentionPolicyStore) AddChannels(policyId string, channelIds []string) error

func (*TimerLayerRetentionPolicyStore) AddTeams

func (s *TimerLayerRetentionPolicyStore) AddTeams(policyId string, teamIds []string) error

func (*TimerLayerRetentionPolicyStore) Delete

func (*TimerLayerRetentionPolicyStore) DeleteOrphanedRows

func (s *TimerLayerRetentionPolicyStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerRetentionPolicyStore) Get

func (*TimerLayerRetentionPolicyStore) GetAll

func (*TimerLayerRetentionPolicyStore) GetChannelPoliciesCountForUser

func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesCountForUser(userID string) (int64, error)

func (*TimerLayerRetentionPolicyStore) GetChannelPoliciesForUser

func (s *TimerLayerRetentionPolicyStore) GetChannelPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForChannel, error)

func (*TimerLayerRetentionPolicyStore) GetChannels

func (s *TimerLayerRetentionPolicyStore) GetChannels(policyId string, offset int, limit int) (model.ChannelListWithTeamData, error)

func (*TimerLayerRetentionPolicyStore) GetChannelsCount

func (s *TimerLayerRetentionPolicyStore) GetChannelsCount(policyId string) (int64, error)

func (*TimerLayerRetentionPolicyStore) GetCount

func (s *TimerLayerRetentionPolicyStore) GetCount() (int64, error)

func (*TimerLayerRetentionPolicyStore) GetTeamPoliciesCountForUser

func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesCountForUser(userID string) (int64, error)

func (*TimerLayerRetentionPolicyStore) GetTeamPoliciesForUser

func (s *TimerLayerRetentionPolicyStore) GetTeamPoliciesForUser(userID string, offset int, limit int) ([]*model.RetentionPolicyForTeam, error)

func (*TimerLayerRetentionPolicyStore) GetTeams

func (s *TimerLayerRetentionPolicyStore) GetTeams(policyId string, offset int, limit int) ([]*model.Team, error)

func (*TimerLayerRetentionPolicyStore) GetTeamsCount

func (s *TimerLayerRetentionPolicyStore) GetTeamsCount(policyId string) (int64, error)

func (*TimerLayerRetentionPolicyStore) RemoveChannels

func (s *TimerLayerRetentionPolicyStore) RemoveChannels(policyId string, channelIds []string) error

func (*TimerLayerRetentionPolicyStore) RemoveTeams

func (s *TimerLayerRetentionPolicyStore) RemoveTeams(policyId string, teamIds []string) error

type TimerLayerRoleStore

type TimerLayerRoleStore struct {
	store.RoleStore
	Root *TimerLayer
}

func (*TimerLayerRoleStore) AllChannelSchemeRoles

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

func (*TimerLayerRoleStore) ChannelHigherScopedPermissions

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

func (*TimerLayerRoleStore) ChannelRolesUnderTeamRole

func (s *TimerLayerRoleStore) ChannelRolesUnderTeamRole(roleName string) ([]*model.Role, error)

func (*TimerLayerRoleStore) Delete

func (s *TimerLayerRoleStore) Delete(roleID string) (*model.Role, error)

func (*TimerLayerRoleStore) Get

func (s *TimerLayerRoleStore) Get(roleID string) (*model.Role, error)

func (*TimerLayerRoleStore) GetAll

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

func (*TimerLayerRoleStore) GetByName

func (s *TimerLayerRoleStore) GetByName(ctx context.Context, name string) (*model.Role, error)

func (*TimerLayerRoleStore) GetByNames

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

func (*TimerLayerRoleStore) PermanentDeleteAll

func (s *TimerLayerRoleStore) PermanentDeleteAll() error

func (*TimerLayerRoleStore) Save

func (s *TimerLayerRoleStore) Save(role *model.Role) (*model.Role, error)

type TimerLayerSchemeStore

type TimerLayerSchemeStore struct {
	store.SchemeStore
	Root *TimerLayer
}

func (*TimerLayerSchemeStore) CountByScope

func (s *TimerLayerSchemeStore) CountByScope(scope string) (int64, error)

func (*TimerLayerSchemeStore) CountWithoutPermission

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

func (*TimerLayerSchemeStore) Delete

func (s *TimerLayerSchemeStore) Delete(schemeID string) (*model.Scheme, error)

func (*TimerLayerSchemeStore) Get

func (s *TimerLayerSchemeStore) Get(schemeID string) (*model.Scheme, error)

func (*TimerLayerSchemeStore) GetAllPage

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

func (*TimerLayerSchemeStore) GetByName

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

func (*TimerLayerSchemeStore) PermanentDeleteAll

func (s *TimerLayerSchemeStore) PermanentDeleteAll() error

func (*TimerLayerSchemeStore) Save

func (s *TimerLayerSchemeStore) Save(scheme *model.Scheme) (*model.Scheme, error)

type TimerLayerSessionStore

type TimerLayerSessionStore struct {
	store.SessionStore
	Root *TimerLayer
}

func (*TimerLayerSessionStore) AnalyticsSessionCount

func (s *TimerLayerSessionStore) AnalyticsSessionCount() (int64, error)

func (*TimerLayerSessionStore) Cleanup

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

func (*TimerLayerSessionStore) Get

func (s *TimerLayerSessionStore) Get(ctx context.Context, sessionIDOrToken string) (*model.Session, error)

func (*TimerLayerSessionStore) GetLastSessionRowCreateAt added in v6.5.0

func (s *TimerLayerSessionStore) GetLastSessionRowCreateAt() (int64, error)

func (*TimerLayerSessionStore) GetSessions

func (s *TimerLayerSessionStore) GetSessions(userID string) ([]*model.Session, error)

func (*TimerLayerSessionStore) GetSessionsExpired

func (s *TimerLayerSessionStore) GetSessionsExpired(thresholdMillis int64, mobileOnly bool, unnotifiedOnly bool) ([]*model.Session, error)

func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds

func (s *TimerLayerSessionStore) GetSessionsWithActiveDeviceIds(userID string) ([]*model.Session, error)

func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser

func (s *TimerLayerSessionStore) PermanentDeleteSessionsByUser(teamID string) error

func (*TimerLayerSessionStore) Remove

func (s *TimerLayerSessionStore) Remove(sessionIDOrToken string) error

func (*TimerLayerSessionStore) RemoveAllSessions

func (s *TimerLayerSessionStore) RemoveAllSessions() error

func (*TimerLayerSessionStore) Save

func (s *TimerLayerSessionStore) Save(session *model.Session) (*model.Session, error)

func (*TimerLayerSessionStore) UpdateDeviceId

func (s *TimerLayerSessionStore) UpdateDeviceId(id string, deviceID string, expiresAt int64) (string, error)

func (*TimerLayerSessionStore) UpdateExpiredNotify

func (s *TimerLayerSessionStore) UpdateExpiredNotify(sessionid string, notified bool) error

func (*TimerLayerSessionStore) UpdateExpiresAt

func (s *TimerLayerSessionStore) UpdateExpiresAt(sessionID string, time int64) error

func (*TimerLayerSessionStore) UpdateLastActivityAt

func (s *TimerLayerSessionStore) UpdateLastActivityAt(sessionID string, time int64) error

func (*TimerLayerSessionStore) UpdateProps

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

func (*TimerLayerSessionStore) UpdateRoles

func (s *TimerLayerSessionStore) UpdateRoles(userID string, roles string) (string, error)

type TimerLayerSharedChannelStore

type TimerLayerSharedChannelStore struct {
	store.SharedChannelStore
	Root *TimerLayer
}

func (*TimerLayerSharedChannelStore) Delete

func (s *TimerLayerSharedChannelStore) Delete(channelId string) (bool, error)

func (*TimerLayerSharedChannelStore) DeleteRemote

func (s *TimerLayerSharedChannelStore) DeleteRemote(remoteId string) (bool, error)

func (*TimerLayerSharedChannelStore) Get

func (*TimerLayerSharedChannelStore) GetAll

func (*TimerLayerSharedChannelStore) GetAllCount

func (*TimerLayerSharedChannelStore) GetAttachment

func (s *TimerLayerSharedChannelStore) GetAttachment(fileId string, remoteId string) (*model.SharedChannelAttachment, error)

func (*TimerLayerSharedChannelStore) GetRemote

func (*TimerLayerSharedChannelStore) GetRemoteByIds

func (s *TimerLayerSharedChannelStore) GetRemoteByIds(channelId string, remoteId string) (*model.SharedChannelRemote, error)

func (*TimerLayerSharedChannelStore) GetRemoteForUser

func (s *TimerLayerSharedChannelStore) GetRemoteForUser(remoteId string, userId string) (*model.RemoteCluster, error)

func (*TimerLayerSharedChannelStore) GetRemotes

func (*TimerLayerSharedChannelStore) GetRemotesStatus

func (s *TimerLayerSharedChannelStore) GetRemotesStatus(channelId string) ([]*model.SharedChannelRemoteStatus, error)

func (*TimerLayerSharedChannelStore) GetSingleUser

func (s *TimerLayerSharedChannelStore) GetSingleUser(userID string, channelID string, remoteID string) (*model.SharedChannelUser, error)

func (*TimerLayerSharedChannelStore) GetUsersForSync

func (s *TimerLayerSharedChannelStore) GetUsersForSync(filter model.GetUsersForSyncFilter) ([]*model.User, error)

func (*TimerLayerSharedChannelStore) GetUsersForUser

func (s *TimerLayerSharedChannelStore) GetUsersForUser(userID string) ([]*model.SharedChannelUser, error)

func (*TimerLayerSharedChannelStore) HasChannel

func (s *TimerLayerSharedChannelStore) HasChannel(channelID string) (bool, error)

func (*TimerLayerSharedChannelStore) HasRemote

func (s *TimerLayerSharedChannelStore) HasRemote(channelID string, remoteId string) (bool, error)

func (*TimerLayerSharedChannelStore) Save

func (*TimerLayerSharedChannelStore) SaveAttachment

func (*TimerLayerSharedChannelStore) SaveRemote

func (*TimerLayerSharedChannelStore) SaveUser

func (*TimerLayerSharedChannelStore) Update

func (*TimerLayerSharedChannelStore) UpdateAttachmentLastSyncAt

func (s *TimerLayerSharedChannelStore) UpdateAttachmentLastSyncAt(id string, syncTime int64) error

func (*TimerLayerSharedChannelStore) UpdateRemote

func (*TimerLayerSharedChannelStore) UpdateRemoteCursor

func (s *TimerLayerSharedChannelStore) UpdateRemoteCursor(id string, cursor model.GetPostsSinceForSyncCursor) error

func (*TimerLayerSharedChannelStore) UpdateUserLastSyncAt

func (s *TimerLayerSharedChannelStore) UpdateUserLastSyncAt(userID string, channelID string, remoteID string) error

func (*TimerLayerSharedChannelStore) UpsertAttachment

func (s *TimerLayerSharedChannelStore) UpsertAttachment(remote *model.SharedChannelAttachment) (string, error)

type TimerLayerStatusStore

type TimerLayerStatusStore struct {
	store.StatusStore
	Root *TimerLayer
}

func (*TimerLayerStatusStore) Get

func (s *TimerLayerStatusStore) Get(userID string) (*model.Status, error)

func (*TimerLayerStatusStore) GetByIds

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

func (*TimerLayerStatusStore) GetTotalActiveUsersCount

func (s *TimerLayerStatusStore) GetTotalActiveUsersCount() (int64, error)

func (*TimerLayerStatusStore) ResetAll

func (s *TimerLayerStatusStore) ResetAll() error

func (*TimerLayerStatusStore) SaveOrUpdate

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

func (*TimerLayerStatusStore) UpdateExpiredDNDStatuses

func (s *TimerLayerStatusStore) UpdateExpiredDNDStatuses() ([]*model.Status, error)

func (*TimerLayerStatusStore) UpdateLastActivityAt

func (s *TimerLayerStatusStore) UpdateLastActivityAt(userID string, lastActivityAt int64) error

type TimerLayerSystemStore

type TimerLayerSystemStore struct {
	store.SystemStore
	Root *TimerLayer
}

func (*TimerLayerSystemStore) Get

func (*TimerLayerSystemStore) GetByName

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

func (*TimerLayerSystemStore) InsertIfExists

func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.System, error)

func (*TimerLayerSystemStore) PermanentDeleteByName

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

func (*TimerLayerSystemStore) Save

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

func (*TimerLayerSystemStore) SaveOrUpdate

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

func (*TimerLayerSystemStore) SaveOrUpdateWithWarnMetricHandling

func (s *TimerLayerSystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error

func (*TimerLayerSystemStore) Update

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

type TimerLayerTeamStore

type TimerLayerTeamStore struct {
	store.TeamStore
	Root *TimerLayer
}

func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme

func (s *TimerLayerTeamStore) AnalyticsGetTeamCountForScheme(schemeID string) (int64, error)

func (*TimerLayerTeamStore) AnalyticsTeamCount

func (s *TimerLayerTeamStore) AnalyticsTeamCount(opts *model.TeamSearch) (int64, error)

func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments

func (s *TimerLayerTeamStore) ClearAllCustomRoleAssignments() error

func (*TimerLayerTeamStore) ClearCaches

func (s *TimerLayerTeamStore) ClearCaches()

func (*TimerLayerTeamStore) Get

func (s *TimerLayerTeamStore) Get(id string) (*model.Team, error)

func (*TimerLayerTeamStore) GetActiveMemberCount

func (s *TimerLayerTeamStore) GetActiveMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)

func (*TimerLayerTeamStore) GetAll

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

func (*TimerLayerTeamStore) GetAllForExportAfter

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

func (*TimerLayerTeamStore) GetAllPage

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

func (*TimerLayerTeamStore) GetAllPrivateTeamListing

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

func (*TimerLayerTeamStore) GetAllTeamListing

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

func (*TimerLayerTeamStore) GetByInviteId

func (s *TimerLayerTeamStore) GetByInviteId(inviteID string) (*model.Team, error)

func (*TimerLayerTeamStore) GetByName

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

func (*TimerLayerTeamStore) GetByNames

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

func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams

func (s *TimerLayerTeamStore) GetChannelUnreadsForAllTeams(excludeTeamID string, userID string) ([]*model.ChannelUnread, error)

func (*TimerLayerTeamStore) GetChannelUnreadsForTeam

func (s *TimerLayerTeamStore) GetChannelUnreadsForTeam(teamID string, userID string) ([]*model.ChannelUnread, error)

func (*TimerLayerTeamStore) GetCommonTeamIDsForTwoUsers

func (s *TimerLayerTeamStore) GetCommonTeamIDsForTwoUsers(userID string, otherUserID string) ([]string, error)

func (*TimerLayerTeamStore) GetMany added in v6.7.0

func (s *TimerLayerTeamStore) GetMany(ids []string) ([]*model.Team, error)

func (*TimerLayerTeamStore) GetMember

func (s *TimerLayerTeamStore) GetMember(ctx context.Context, teamID string, userID string) (*model.TeamMember, error)

func (*TimerLayerTeamStore) GetMembers

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

func (*TimerLayerTeamStore) GetMembersByIds

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

func (*TimerLayerTeamStore) GetTeamMembersForExport

func (s *TimerLayerTeamStore) GetTeamMembersForExport(userID string) ([]*model.TeamMemberForExport, error)

func (*TimerLayerTeamStore) GetTeamsByScheme

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

func (*TimerLayerTeamStore) GetTeamsByUserId

func (s *TimerLayerTeamStore) GetTeamsByUserId(userID string) ([]*model.Team, error)

func (*TimerLayerTeamStore) GetTeamsForUser

func (s *TimerLayerTeamStore) GetTeamsForUser(ctx context.Context, userID string) ([]*model.TeamMember, error)

func (*TimerLayerTeamStore) GetTeamsForUserWithPagination

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

func (*TimerLayerTeamStore) GetTotalMemberCount

func (s *TimerLayerTeamStore) GetTotalMemberCount(teamID string, restrictions *model.ViewUsersRestrictions) (int64, error)

func (*TimerLayerTeamStore) GetUserTeamIds

func (s *TimerLayerTeamStore) GetUserTeamIds(userID string, allowFromCache bool) ([]string, error)

func (*TimerLayerTeamStore) GroupSyncedTeamCount

func (s *TimerLayerTeamStore) GroupSyncedTeamCount() (int64, error)

func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser

func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userID string)

func (*TimerLayerTeamStore) MigrateTeamMembers

func (s *TimerLayerTeamStore) MigrateTeamMembers(fromTeamID string, fromUserID string) (map[string]string, error)

func (*TimerLayerTeamStore) PermanentDelete

func (s *TimerLayerTeamStore) PermanentDelete(teamID string) error

func (*TimerLayerTeamStore) RemoveAllMembersByTeam

func (s *TimerLayerTeamStore) RemoveAllMembersByTeam(teamID string) error

func (*TimerLayerTeamStore) RemoveAllMembersByUser

func (s *TimerLayerTeamStore) RemoveAllMembersByUser(userID string) error

func (*TimerLayerTeamStore) RemoveMember

func (s *TimerLayerTeamStore) RemoveMember(teamID string, userID string) error

func (*TimerLayerTeamStore) RemoveMembers

func (s *TimerLayerTeamStore) RemoveMembers(teamID string, userIds []string) error

func (*TimerLayerTeamStore) ResetAllTeamSchemes

func (s *TimerLayerTeamStore) ResetAllTeamSchemes() error

func (*TimerLayerTeamStore) Save

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

func (*TimerLayerTeamStore) SaveMember

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

func (*TimerLayerTeamStore) SaveMultipleMembers

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

func (*TimerLayerTeamStore) SearchAll

func (s *TimerLayerTeamStore) SearchAll(opts *model.TeamSearch) ([]*model.Team, error)

func (*TimerLayerTeamStore) SearchAllPaged

func (s *TimerLayerTeamStore) SearchAllPaged(opts *model.TeamSearch) ([]*model.Team, int64, error)

func (*TimerLayerTeamStore) SearchOpen

func (s *TimerLayerTeamStore) SearchOpen(opts *model.TeamSearch) ([]*model.Team, error)

func (*TimerLayerTeamStore) SearchPrivate

func (s *TimerLayerTeamStore) SearchPrivate(opts *model.TeamSearch) ([]*model.Team, error)

func (*TimerLayerTeamStore) Update

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

func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate

func (s *TimerLayerTeamStore) UpdateLastTeamIconUpdate(teamID string, curTime int64) error

func (*TimerLayerTeamStore) UpdateMember

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

func (*TimerLayerTeamStore) UpdateMembersRole

func (s *TimerLayerTeamStore) UpdateMembersRole(teamID string, userIDs []string) error

func (*TimerLayerTeamStore) UpdateMultipleMembers

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

func (*TimerLayerTeamStore) UserBelongsToTeams

func (s *TimerLayerTeamStore) UserBelongsToTeams(userID string, teamIds []string) (bool, error)

type TimerLayerTermsOfServiceStore

type TimerLayerTermsOfServiceStore struct {
	store.TermsOfServiceStore
	Root *TimerLayer
}

func (*TimerLayerTermsOfServiceStore) Get

func (s *TimerLayerTermsOfServiceStore) Get(id string, allowFromCache bool) (*model.TermsOfService, error)

func (*TimerLayerTermsOfServiceStore) GetLatest

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

func (*TimerLayerTermsOfServiceStore) Save

type TimerLayerThreadStore

type TimerLayerThreadStore struct {
	store.ThreadStore
	Root *TimerLayer
}

func (*TimerLayerThreadStore) DeleteMembershipForUser

func (s *TimerLayerThreadStore) DeleteMembershipForUser(userId string, postID string) error

func (*TimerLayerThreadStore) DeleteOrphanedRows

func (s *TimerLayerThreadStore) DeleteOrphanedRows(limit int) (int64, error)

func (*TimerLayerThreadStore) Get

func (*TimerLayerThreadStore) GetMembershipForUser

func (s *TimerLayerThreadStore) GetMembershipForUser(userId string, postID string) (*model.ThreadMembership, error)

func (*TimerLayerThreadStore) GetMembershipsForUser

func (s *TimerLayerThreadStore) GetMembershipsForUser(userId string, teamID string) ([]*model.ThreadMembership, error)

func (*TimerLayerThreadStore) GetPosts

func (s *TimerLayerThreadStore) GetPosts(threadID string, since int64) ([]*model.Post, error)

func (*TimerLayerThreadStore) GetTeamsUnreadForUser added in v6.5.0

func (s *TimerLayerThreadStore) GetTeamsUnreadForUser(userID string, teamIDs []string) (map[string]*model.TeamUnread, error)

func (*TimerLayerThreadStore) GetThreadFollowers

func (s *TimerLayerThreadStore) GetThreadFollowers(threadID string, fetchOnlyActive bool) ([]string, error)

func (*TimerLayerThreadStore) GetThreadForUser

func (s *TimerLayerThreadStore) GetThreadForUser(teamID string, threadMembership *model.ThreadMembership, extended bool) (*model.ThreadResponse, error)

func (*TimerLayerThreadStore) GetThreadUnreadReplyCount added in v6.5.0

func (s *TimerLayerThreadStore) GetThreadUnreadReplyCount(threadMembership *model.ThreadMembership) (int64, error)

func (*TimerLayerThreadStore) GetThreadsForUser

func (s *TimerLayerThreadStore) GetThreadsForUser(userId string, teamID string, opts model.GetUserThreadsOpts) ([]*model.ThreadResponse, error)

func (*TimerLayerThreadStore) GetTotalThreads added in v6.6.0

func (s *TimerLayerThreadStore) GetTotalThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error)

func (*TimerLayerThreadStore) GetTotalUnreadMentions added in v6.6.0

func (s *TimerLayerThreadStore) GetTotalUnreadMentions(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error)

func (*TimerLayerThreadStore) GetTotalUnreadThreads added in v6.6.0

func (s *TimerLayerThreadStore) GetTotalUnreadThreads(userId string, teamID string, opts model.GetUserThreadsOpts) (int64, error)

func (*TimerLayerThreadStore) MaintainMembership

func (s *TimerLayerThreadStore) MaintainMembership(userID string, postID string, opts store.ThreadMembershipOpts) (*model.ThreadMembership, error)

func (*TimerLayerThreadStore) MarkAllAsRead

func (s *TimerLayerThreadStore) MarkAllAsRead(userID string, threadIds []string) error

func (*TimerLayerThreadStore) MarkAllAsReadByChannels added in v6.5.0

func (s *TimerLayerThreadStore) MarkAllAsReadByChannels(userID string, channelIDs []string) error

func (*TimerLayerThreadStore) MarkAllAsReadByTeam added in v6.5.0

func (s *TimerLayerThreadStore) MarkAllAsReadByTeam(userID string, teamID string) error

func (*TimerLayerThreadStore) MarkAsRead

func (s *TimerLayerThreadStore) MarkAsRead(userID string, threadID string, timestamp int64) error

func (*TimerLayerThreadStore) PermanentDeleteBatchForRetentionPolicies

func (s *TimerLayerThreadStore) PermanentDeleteBatchForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)

func (*TimerLayerThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies

func (s *TimerLayerThreadStore) PermanentDeleteBatchThreadMembershipsForRetentionPolicies(now int64, globalPolicyEndTime int64, limit int64, cursor model.RetentionPolicyCursor) (int64, model.RetentionPolicyCursor, error)

func (*TimerLayerThreadStore) UpdateMembership

func (s *TimerLayerThreadStore) UpdateMembership(membership *model.ThreadMembership) (*model.ThreadMembership, error)

type TimerLayerTokenStore

type TimerLayerTokenStore struct {
	store.TokenStore
	Root *TimerLayer
}

func (*TimerLayerTokenStore) Cleanup

func (s *TimerLayerTokenStore) Cleanup(expiryTime int64)

func (*TimerLayerTokenStore) Delete

func (s *TimerLayerTokenStore) Delete(token string) error

func (*TimerLayerTokenStore) GetAllTokensByType

func (s *TimerLayerTokenStore) GetAllTokensByType(tokenType string) ([]*model.Token, error)

func (*TimerLayerTokenStore) GetByToken

func (s *TimerLayerTokenStore) GetByToken(token string) (*model.Token, error)

func (*TimerLayerTokenStore) RemoveAllTokensByType

func (s *TimerLayerTokenStore) RemoveAllTokensByType(tokenType string) error

func (*TimerLayerTokenStore) Save

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

type TimerLayerUploadSessionStore

type TimerLayerUploadSessionStore struct {
	store.UploadSessionStore
	Root *TimerLayer
}

func (*TimerLayerUploadSessionStore) Delete

func (*TimerLayerUploadSessionStore) Get

func (*TimerLayerUploadSessionStore) GetForUser

func (s *TimerLayerUploadSessionStore) GetForUser(userID string) ([]*model.UploadSession, error)

func (*TimerLayerUploadSessionStore) Save

func (*TimerLayerUploadSessionStore) Update

type TimerLayerUserAccessTokenStore

type TimerLayerUserAccessTokenStore struct {
	store.UserAccessTokenStore
	Root *TimerLayer
}

func (*TimerLayerUserAccessTokenStore) Delete

func (s *TimerLayerUserAccessTokenStore) Delete(tokenID string) error

func (*TimerLayerUserAccessTokenStore) DeleteAllForUser

func (s *TimerLayerUserAccessTokenStore) DeleteAllForUser(userID string) error

func (*TimerLayerUserAccessTokenStore) Get

func (*TimerLayerUserAccessTokenStore) GetAll

func (s *TimerLayerUserAccessTokenStore) GetAll(offset int, limit int) ([]*model.UserAccessToken, error)

func (*TimerLayerUserAccessTokenStore) GetByToken

func (s *TimerLayerUserAccessTokenStore) GetByToken(tokenString string) (*model.UserAccessToken, error)

func (*TimerLayerUserAccessTokenStore) GetByUser

func (s *TimerLayerUserAccessTokenStore) GetByUser(userID string, page int, perPage int) ([]*model.UserAccessToken, error)

func (*TimerLayerUserAccessTokenStore) Save

func (*TimerLayerUserAccessTokenStore) Search

func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable

func (s *TimerLayerUserAccessTokenStore) UpdateTokenDisable(tokenID string) error

func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable

func (s *TimerLayerUserAccessTokenStore) UpdateTokenEnable(tokenID string) error

type TimerLayerUserStore

type TimerLayerUserStore struct {
	store.UserStore
	Root *TimerLayer
}

func (*TimerLayerUserStore) AnalyticsActiveCount

func (s *TimerLayerUserStore) AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, error)

func (*TimerLayerUserStore) AnalyticsActiveCountForPeriod

func (s *TimerLayerUserStore) AnalyticsActiveCountForPeriod(startTime int64, endTime int64, options model.UserCountOptions) (int64, error)

func (*TimerLayerUserStore) AnalyticsGetExternalUsers

func (s *TimerLayerUserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, error)

func (*TimerLayerUserStore) AnalyticsGetGuestCount

func (s *TimerLayerUserStore) AnalyticsGetGuestCount() (int64, error)

func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount

func (s *TimerLayerUserStore) AnalyticsGetInactiveUsersCount() (int64, error)

func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount

func (s *TimerLayerUserStore) AnalyticsGetSystemAdminCount() (int64, error)

func (*TimerLayerUserStore) AutocompleteUsersInChannel

func (s *TimerLayerUserStore) AutocompleteUsersInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) (*model.UserAutocompleteInChannel, error)

func (*TimerLayerUserStore) ClearAllCustomRoleAssignments

func (s *TimerLayerUserStore) ClearAllCustomRoleAssignments() error

func (*TimerLayerUserStore) ClearCaches

func (s *TimerLayerUserStore) ClearCaches()

func (*TimerLayerUserStore) Count

func (s *TimerLayerUserStore) Count(options model.UserCountOptions) (int64, error)

func (*TimerLayerUserStore) DeactivateGuests

func (s *TimerLayerUserStore) DeactivateGuests() ([]string, error)

func (*TimerLayerUserStore) DemoteUserToGuest

func (s *TimerLayerUserStore) DemoteUserToGuest(userID string) (*model.User, error)

func (*TimerLayerUserStore) Get

func (*TimerLayerUserStore) GetAll

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

func (*TimerLayerUserStore) GetAllAfter

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

func (*TimerLayerUserStore) GetAllNotInAuthService

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

func (*TimerLayerUserStore) GetAllProfiles

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

func (*TimerLayerUserStore) GetAllProfilesInChannel

func (s *TimerLayerUserStore) GetAllProfilesInChannel(ctx context.Context, channelID string, allowFromCache bool) (map[string]*model.User, error)

func (*TimerLayerUserStore) GetAllUsingAuthService

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

func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel

func (s *TimerLayerUserStore) GetAnyUnreadPostCountForChannel(userID string, channelID string) (int64, error)

func (*TimerLayerUserStore) GetByAuth

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

func (*TimerLayerUserStore) GetByEmail

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

func (*TimerLayerUserStore) GetByUsername

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

func (*TimerLayerUserStore) GetChannelGroupUsers

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

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

func (*TimerLayerUserStore) GetKnownUsers

func (s *TimerLayerUserStore) GetKnownUsers(userID string) ([]string, error)

func (*TimerLayerUserStore) GetMany

func (s *TimerLayerUserStore) GetMany(ctx context.Context, ids []string) ([]*model.User, error)

func (*TimerLayerUserStore) GetNewUsersForTeam

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

func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser

func (s *TimerLayerUserStore) GetProfileByGroupChannelIdsForUser(userID string, channelIds []string) (map[string][]*model.User, error)

func (*TimerLayerUserStore) GetProfileByIds

func (s *TimerLayerUserStore) GetProfileByIds(ctx context.Context, userIds []string, options *store.UserGetByIdsOpts, allowFromCache bool) ([]*model.User, error)

func (*TimerLayerUserStore) GetProfiles

func (s *TimerLayerUserStore) GetProfiles(options *model.UserGetOptions) ([]*model.User, error)

func (*TimerLayerUserStore) GetProfilesByUsernames

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

func (*TimerLayerUserStore) GetProfilesInChannel

func (s *TimerLayerUserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*model.User, error)

func (*TimerLayerUserStore) GetProfilesInChannelByStatus

func (s *TimerLayerUserStore) GetProfilesInChannelByStatus(options *model.UserGetOptions) ([]*model.User, error)

func (*TimerLayerUserStore) GetProfilesNotInChannel

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

func (*TimerLayerUserStore) GetProfilesNotInTeam

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

func (*TimerLayerUserStore) GetProfilesWithoutTeam

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

func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam

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

func (*TimerLayerUserStore) GetSystemAdminProfiles

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

func (*TimerLayerUserStore) GetTeamGroupUsers

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

func (*TimerLayerUserStore) GetUnreadCount

func (s *TimerLayerUserStore) GetUnreadCount(userID string) (int64, error)

func (*TimerLayerUserStore) GetUnreadCountForChannel

func (s *TimerLayerUserStore) GetUnreadCountForChannel(userID string, channelID string) (int64, error)

func (*TimerLayerUserStore) GetUsersBatchForIndexing

func (s *TimerLayerUserStore) GetUsersBatchForIndexing(startTime int64, startFileID string, limit int) ([]*model.UserForIndexing, error)

func (*TimerLayerUserStore) GetUsersWithInvalidEmails added in v6.5.0

func (s *TimerLayerUserStore) GetUsersWithInvalidEmails(page int, perPage int, restrictedDomains string) ([]*model.User, error)

func (*TimerLayerUserStore) InferSystemInstallDate

func (s *TimerLayerUserStore) InferSystemInstallDate() (int64, error)

func (*TimerLayerUserStore) InsertUsers added in v6.5.0

func (s *TimerLayerUserStore) InsertUsers(users []*model.User) error

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

func (s *TimerLayerUserStore) IsEmpty(excludeBots bool) (bool, error)

func (*TimerLayerUserStore) PermanentDelete

func (s *TimerLayerUserStore) PermanentDelete(userID string) error

func (*TimerLayerUserStore) PromoteGuestToUser

func (s *TimerLayerUserStore) PromoteGuestToUser(userID string) error

func (*TimerLayerUserStore) ResetAuthDataToEmailForUsers

func (s *TimerLayerUserStore) ResetAuthDataToEmailForUsers(service string, userIDs []string, includeDeleted bool, dryRun bool) (int, error)

func (*TimerLayerUserStore) ResetLastPictureUpdate

func (s *TimerLayerUserStore) ResetLastPictureUpdate(userID string) error

func (*TimerLayerUserStore) Save

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

func (*TimerLayerUserStore) Search

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

func (*TimerLayerUserStore) SearchInChannel

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

func (*TimerLayerUserStore) SearchInGroup

func (s *TimerLayerUserStore) SearchInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)

func (*TimerLayerUserStore) SearchNotInChannel

func (s *TimerLayerUserStore) SearchNotInChannel(teamID string, channelID string, term string, options *model.UserSearchOptions) ([]*model.User, error)

func (*TimerLayerUserStore) SearchNotInGroup added in v6.5.0

func (s *TimerLayerUserStore) SearchNotInGroup(groupID string, term string, options *model.UserSearchOptions) ([]*model.User, error)

func (*TimerLayerUserStore) SearchNotInTeam

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

func (*TimerLayerUserStore) SearchWithoutTeam

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

func (*TimerLayerUserStore) Update

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

func (*TimerLayerUserStore) UpdateAuthData

func (s *TimerLayerUserStore) UpdateAuthData(userID string, service string, authData *string, email string, resetMfa bool) (string, error)

func (*TimerLayerUserStore) UpdateFailedPasswordAttempts

func (s *TimerLayerUserStore) UpdateFailedPasswordAttempts(userID string, attempts int) error

func (*TimerLayerUserStore) UpdateLastPictureUpdate

func (s *TimerLayerUserStore) UpdateLastPictureUpdate(userID string) error

func (*TimerLayerUserStore) UpdateMfaActive

func (s *TimerLayerUserStore) UpdateMfaActive(userID string, active bool) error

func (*TimerLayerUserStore) UpdateMfaSecret

func (s *TimerLayerUserStore) UpdateMfaSecret(userID string, secret string) error

func (*TimerLayerUserStore) UpdateNotifyProps

func (s *TimerLayerUserStore) UpdateNotifyProps(userID string, props map[string]string) error

func (*TimerLayerUserStore) UpdatePassword

func (s *TimerLayerUserStore) UpdatePassword(userID string, newPassword string) error

func (*TimerLayerUserStore) UpdateUpdateAt

func (s *TimerLayerUserStore) UpdateUpdateAt(userID string) (int64, error)

func (*TimerLayerUserStore) VerifyEmail

func (s *TimerLayerUserStore) VerifyEmail(userID string, email string) (string, error)

type TimerLayerUserTermsOfServiceStore

type TimerLayerUserTermsOfServiceStore struct {
	store.UserTermsOfServiceStore
	Root *TimerLayer
}

func (*TimerLayerUserTermsOfServiceStore) Delete

func (s *TimerLayerUserTermsOfServiceStore) Delete(userID string, termsOfServiceId string) error

func (*TimerLayerUserTermsOfServiceStore) GetByUser

func (*TimerLayerUserTermsOfServiceStore) Save

type TimerLayerWebhookStore

type TimerLayerWebhookStore struct {
	store.WebhookStore
	Root *TimerLayer
}

func (*TimerLayerWebhookStore) AnalyticsIncomingCount

func (s *TimerLayerWebhookStore) AnalyticsIncomingCount(teamID string) (int64, error)

func (*TimerLayerWebhookStore) AnalyticsOutgoingCount

func (s *TimerLayerWebhookStore) AnalyticsOutgoingCount(teamID string) (int64, error)

func (*TimerLayerWebhookStore) ClearCaches

func (s *TimerLayerWebhookStore) ClearCaches()

func (*TimerLayerWebhookStore) DeleteIncoming

func (s *TimerLayerWebhookStore) DeleteIncoming(webhookID string, time int64) error

func (*TimerLayerWebhookStore) DeleteOutgoing

func (s *TimerLayerWebhookStore) DeleteOutgoing(webhookID string, time int64) error

func (*TimerLayerWebhookStore) GetIncoming

func (s *TimerLayerWebhookStore) GetIncoming(id string, allowFromCache bool) (*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetIncomingByChannel

func (s *TimerLayerWebhookStore) GetIncomingByChannel(channelID string) ([]*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetIncomingByTeam

func (s *TimerLayerWebhookStore) GetIncomingByTeam(teamID string, offset int, limit int) ([]*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetIncomingByTeamByUser

func (s *TimerLayerWebhookStore) GetIncomingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetIncomingList

func (s *TimerLayerWebhookStore) GetIncomingList(offset int, limit int) ([]*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetIncomingListByUser

func (s *TimerLayerWebhookStore) GetIncomingListByUser(userID string, offset int, limit int) ([]*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoing

func (s *TimerLayerWebhookStore) GetOutgoing(id string) (*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingByChannel

func (s *TimerLayerWebhookStore) GetOutgoingByChannel(channelID string, offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser

func (s *TimerLayerWebhookStore) GetOutgoingByChannelByUser(channelID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingByTeam

func (s *TimerLayerWebhookStore) GetOutgoingByTeam(teamID string, offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser

func (s *TimerLayerWebhookStore) GetOutgoingByTeamByUser(teamID string, userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingList

func (s *TimerLayerWebhookStore) GetOutgoingList(offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) GetOutgoingListByUser

func (s *TimerLayerWebhookStore) GetOutgoingListByUser(userID string, offset int, limit int) ([]*model.OutgoingWebhook, error)

func (*TimerLayerWebhookStore) InvalidateWebhookCache

func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)

func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel

func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByChannel(channelID string) error

func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser

func (s *TimerLayerWebhookStore) PermanentDeleteIncomingByUser(userID string) error

func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel

func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel(channelID string) error

func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser

func (s *TimerLayerWebhookStore) PermanentDeleteOutgoingByUser(userID string) error

func (*TimerLayerWebhookStore) SaveIncoming

func (*TimerLayerWebhookStore) SaveOutgoing

func (*TimerLayerWebhookStore) UpdateIncoming

func (s *TimerLayerWebhookStore) UpdateIncoming(webhook *model.IncomingWebhook) (*model.IncomingWebhook, error)

func (*TimerLayerWebhookStore) UpdateOutgoing

Jump to

Keyboard shortcuts

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