timerlayer

package
v5.28.1-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: AGPL-3.0, Apache-2.0 Imports: 5 Imported by: 3

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
	RoleStore                 store.RoleStore
	SchemeStore               store.SchemeStore
	SessionStore              store.SessionStore
	StatusStore               store.StatusStore
	SystemStore               store.SystemStore
	TeamStore                 store.TeamStore
	TermsOfServiceStore       store.TermsOfServiceStore
	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) GetCurrentSchemaVersion

func (s *TimerLayer) GetCurrentSchemaVersion() string

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

type TimerLayerChannelStore

type TimerLayerChannelStore struct {
	store.ChannelStore
	Root *TimerLayer
}

func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount

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

func (*TimerLayerChannelStore) AnalyticsTypeCount

func (s *TimerLayerChannelStore) AnalyticsTypeCount(teamId string, channelType string) (int64, error)

func (*TimerLayerChannelStore) AutocompleteInTeam

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

func (*TimerLayerChannelStore) AutocompleteInTeamForSearch

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

func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerChannelStore) ClearCaches

func (s *TimerLayerChannelStore) ClearCaches()

func (*TimerLayerChannelStore) ClearSidebarOnTeamLeave

func (s *TimerLayerChannelStore) ClearSidebarOnTeamLeave(userId string, teamId string) error

func (*TimerLayerChannelStore) CountPostsAfter

func (s *TimerLayerChannelStore) CountPostsAfter(channelId string, timestamp int64, userId string) (int, error)

func (*TimerLayerChannelStore) CreateDirectChannel

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

func (*TimerLayerChannelStore) CreateInitialSidebarCategories

func (s *TimerLayerChannelStore) CreateInitialSidebarCategories(userId string, teamId string) error

func (*TimerLayerChannelStore) CreateSidebarCategory

func (s *TimerLayerChannelStore) CreateSidebarCategory(userId string, teamId string, newCategory *model.SidebarCategoryWithChannels) (*model.SidebarCategoryWithChannels, *model.AppError)

func (*TimerLayerChannelStore) Delete

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

func (*TimerLayerChannelStore) DeleteSidebarCategory

func (s *TimerLayerChannelStore) DeleteSidebarCategory(categoryId string) *model.AppError

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

func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter

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

func (*TimerLayerChannelStore) GetByName

func (s *TimerLayerChannelStore) GetByName(team_id string, name string, allowFromCache bool) (*model.Channel, 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, *model.AppError)

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

func (*TimerLayerChannelStore) GetChannels

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

func (*TimerLayerChannelStore) GetChannelsBatchForIndexing

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

func (*TimerLayerChannelStore) GetChannelsByIds

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

func (*TimerLayerChannelStore) GetChannelsByScheme

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

func (*TimerLayerChannelStore) GetDeleted

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

func (*TimerLayerChannelStore) GetDeletedByName

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

func (*TimerLayerChannelStore) GetForPost

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

func (*TimerLayerChannelStore) GetFromMaster

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

func (*TimerLayerChannelStore) GetGuestCount

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

func (*TimerLayerChannelStore) GetMember

func (s *TimerLayerChannelStore) GetMember(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(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) GetMembersByIds

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

func (*TimerLayerChannelStore) GetMembersForUser

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

func (*TimerLayerChannelStore) GetMembersForUserWithPagination

func (s *TimerLayerChannelStore) GetMembersForUserWithPagination(teamId string, userId string, page int, perPage int) (*model.ChannelMembers, 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, *model.AppError)

func (*TimerLayerChannelStore) GetSidebarCategory

func (s *TimerLayerChannelStore) GetSidebarCategory(categoryId string) (*model.SidebarCategoryWithChannels, *model.AppError)

func (*TimerLayerChannelStore) GetSidebarCategoryOrder

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

func (*TimerLayerChannelStore) GetTeamChannels

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

func (*TimerLayerChannelStore) GroupSyncedChannelCount

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

func (*TimerLayerChannelStore) IncrementMentionCount

func (s *TimerLayerChannelStore) IncrementMentionCount(channelId string, userId string) 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, *model.AppError)

func (*TimerLayerChannelStore) MigratePublicChannels

func (s *TimerLayerChannelStore) MigratePublicChannels() 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) *model.AppError

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

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

func (*TimerLayerChannelStore) SearchForUserInTeam

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

func (*TimerLayerChannelStore) SearchGroupChannels

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

func (*TimerLayerChannelStore) SearchInTeam

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

func (*TimerLayerChannelStore) SearchMore

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

func (*TimerLayerChannelStore) SetDeleteAt

func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, updateAt int64) 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) (*model.ChannelUnreadAt, error)

func (*TimerLayerChannelStore) UpdateMember

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

func (*TimerLayerChannelStore) UpdateMembersRole

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

func (*TimerLayerChannelStore) UpdateMultipleMembers

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

func (*TimerLayerChannelStore) UpdateSidebarCategories

func (s *TimerLayerChannelStore) UpdateSidebarCategories(userId string, teamId string, categories []*model.SidebarCategoryWithChannels) ([]*model.SidebarCategoryWithChannels, *model.AppError)

func (*TimerLayerChannelStore) UpdateSidebarCategoryOrder

func (s *TimerLayerChannelStore) UpdateSidebarCategoryOrder(userId string, teamId string, categoryOrder []string) *model.AppError

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

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 (s *TimerLayerComplianceStore) ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, error)

func (*TimerLayerComplianceStore) Get

func (*TimerLayerComplianceStore) GetAll

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

func (*TimerLayerComplianceStore) MessageExport

func (s *TimerLayerComplianceStore) MessageExport(after int64, limit int) ([]*model.MessageExport, error)

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(id string, allowFromCache bool) (*model.Emoji, error)

func (*TimerLayerEmojiStore) GetByName

func (s *TimerLayerEmojiStore) GetByName(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) DeleteForPost

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

func (*TimerLayerFileInfoStore) Get

func (*TimerLayerFileInfoStore) GetByPath

func (s *TimerLayerFileInfoStore) GetByPath(path string) (*model.FileInfo, 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) 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

type TimerLayerGroupStore

type TimerLayerGroupStore struct {
	store.GroupStore
	Root *TimerLayer
}

func (*TimerLayerGroupStore) AdminRoleGroupsForSyncableMember

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

func (*TimerLayerGroupStore) ChannelMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) ChannelMembersToAdd

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

func (*TimerLayerGroupStore) ChannelMembersToRemove

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

func (*TimerLayerGroupStore) CountChannelMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) CountGroupsByChannel

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

func (*TimerLayerGroupStore) CountGroupsByTeam

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

func (*TimerLayerGroupStore) CountTeamMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) Create

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

func (*TimerLayerGroupStore) CreateGroupSyncable

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

func (*TimerLayerGroupStore) Delete

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

func (*TimerLayerGroupStore) DeleteGroupSyncable

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

func (*TimerLayerGroupStore) DeleteMember

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

func (*TimerLayerGroupStore) DistinctGroupMemberCount

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

func (*TimerLayerGroupStore) Get

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

func (*TimerLayerGroupStore) GetAllBySource

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

func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId

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

func (*TimerLayerGroupStore) GetByIDs

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

func (*TimerLayerGroupStore) GetByName

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

func (*TimerLayerGroupStore) GetByRemoteID

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

func (*TimerLayerGroupStore) GetByUser

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

func (*TimerLayerGroupStore) GetGroupSyncable

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

func (*TimerLayerGroupStore) GetGroups

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

func (*TimerLayerGroupStore) GetGroupsAssociatedToChannelsByTeam

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

func (*TimerLayerGroupStore) GetGroupsByChannel

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

func (*TimerLayerGroupStore) GetGroupsByTeam

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

func (*TimerLayerGroupStore) GetMemberCount

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

func (*TimerLayerGroupStore) GetMemberUsers

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

func (*TimerLayerGroupStore) GetMemberUsersInTeam

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

func (*TimerLayerGroupStore) GetMemberUsersNotInChannel

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

func (*TimerLayerGroupStore) GetMemberUsersPage

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

func (*TimerLayerGroupStore) GroupChannelCount

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

func (*TimerLayerGroupStore) GroupCount

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

func (*TimerLayerGroupStore) GroupCountWithAllowReference

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

func (*TimerLayerGroupStore) GroupMemberCount

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

func (*TimerLayerGroupStore) GroupTeamCount

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

func (*TimerLayerGroupStore) PermanentDeleteMembersByUser

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

func (*TimerLayerGroupStore) PermittedSyncableAdmins

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

func (*TimerLayerGroupStore) TeamMembersMinusGroupMembers

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

func (*TimerLayerGroupStore) TeamMembersToAdd

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

func (*TimerLayerGroupStore) TeamMembersToRemove

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

func (*TimerLayerGroupStore) Update

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

func (*TimerLayerGroupStore) UpdateGroupSyncable

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

func (*TimerLayerGroupStore) UpsertMember

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

type TimerLayerJobStore

type TimerLayerJobStore struct {
	store.JobStore
	Root *TimerLayer
}

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

func (s *TimerLayerJobStore) GetAllByTypePage(jobType 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) 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, *model.AppError)

func (*TimerLayerPostStore) AnalyticsPostCountsByDay

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

func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay

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

func (*TimerLayerPostStore) ClearCaches

func (s *TimerLayerPostStore) ClearCaches()

func (*TimerLayerPostStore) Delete

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

func (*TimerLayerPostStore) Get

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

func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter

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

func (*TimerLayerPostStore) GetEtag

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

func (*TimerLayerPostStore) GetFlaggedPosts

func (s *TimerLayerPostStore) GetFlaggedPosts(userId string, offset int, limit int) (*model.PostList, 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) GetMaxPostSize

func (s *TimerLayerPostStore) GetMaxPostSize() int

func (*TimerLayerPostStore) GetOldest

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

func (*TimerLayerPostStore) GetOldestEntityCreationTime

func (s *TimerLayerPostStore) GetOldestEntityCreationTime() (int64, *model.AppError)

func (*TimerLayerPostStore) GetParentsForExportAfter

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

func (*TimerLayerPostStore) GetPostAfterTime

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

func (*TimerLayerPostStore) GetPostIdAfterTime

func (s *TimerLayerPostStore) GetPostIdAfterTime(channelId string, time int64) (string, error)

func (*TimerLayerPostStore) GetPostIdBeforeTime

func (s *TimerLayerPostStore) GetPostIdBeforeTime(channelId string, time int64) (string, error)

func (*TimerLayerPostStore) GetPosts

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

func (*TimerLayerPostStore) GetPostsAfter

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

func (*TimerLayerPostStore) GetPostsBatchForIndexing

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

func (*TimerLayerPostStore) GetPostsBefore

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

func (*TimerLayerPostStore) GetPostsByIds

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

func (*TimerLayerPostStore) GetPostsCreatedAt

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

func (*TimerLayerPostStore) GetPostsSince

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

func (*TimerLayerPostStore) GetRepliesForExport

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

func (*TimerLayerPostStore) GetSingle

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

func (*TimerLayerPostStore) InvalidateLastPostTimeCache

func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)

func (*TimerLayerPostStore) Overwrite

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

func (*TimerLayerPostStore) OverwriteMultiple

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

func (*TimerLayerPostStore) PermanentDeleteBatch

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

func (*TimerLayerPostStore) PermanentDeleteByChannel

func (s *TimerLayerPostStore) PermanentDeleteByChannel(channelId string) 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, *model.AppError)

func (*TimerLayerPostStore) SearchPostsInTeamForUser

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

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

func (s *TimerLayerReactionStore) GetForPost(postId string, allowFromCache bool) ([]*model.Reaction, 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 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(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)

func (*TimerLayerSessionStore) Get

func (s *TimerLayerSessionStore) Get(sessionIdOrToken string) (*model.Session, 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 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) 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) AnalyticsPrivateTeamCount

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

func (*TimerLayerTeamStore) AnalyticsPublicTeamCount

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

func (*TimerLayerTeamStore) AnalyticsTeamCount

func (s *TimerLayerTeamStore) AnalyticsTeamCount(includeDeleted bool) (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) ([]*model.Team, error)

func (*TimerLayerTeamStore) GetAllPrivateTeamListing

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

func (*TimerLayerTeamStore) GetAllPrivateTeamPageListing

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

func (*TimerLayerTeamStore) GetAllPublicTeamPageListing

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

func (*TimerLayerTeamStore) GetAllTeamListing

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

func (*TimerLayerTeamStore) GetAllTeamPageListing

func (s *TimerLayerTeamStore) GetAllTeamPageListing(offset int, limit int) ([]*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) GetMember

func (s *TimerLayerTeamStore) GetMember(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(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(term string, opts *model.TeamSearch) ([]*model.Team, error)

func (*TimerLayerTeamStore) SearchAllPaged

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

func (*TimerLayerTeamStore) SearchOpen

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

func (*TimerLayerTeamStore) SearchPrivate

func (s *TimerLayerTeamStore) SearchPrivate(term string) ([]*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 TimerLayerTokenStore

type TimerLayerTokenStore struct {
	store.TokenStore
	Root *TimerLayer
}

func (*TimerLayerTokenStore) Cleanup

func (s *TimerLayerTokenStore) Cleanup()

func (*TimerLayerTokenStore) Delete

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

func (*TimerLayerUserStore) AnalyticsGetExternalUsers

func (s *TimerLayerUserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, *model.AppError)

func (*TimerLayerUserStore) AnalyticsGetGuestCount

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

func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount

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

func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount

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

func (*TimerLayerUserStore) AutocompleteUsersInChannel

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

func (*TimerLayerUserStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerUserStore) ClearCaches

func (s *TimerLayerUserStore) ClearCaches()

func (*TimerLayerUserStore) Count

func (*TimerLayerUserStore) DeactivateGuests

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

func (*TimerLayerUserStore) DemoteUserToGuest

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

func (*TimerLayerUserStore) Get

func (*TimerLayerUserStore) GetAll

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

func (*TimerLayerUserStore) GetAllAfter

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

func (*TimerLayerUserStore) GetAllNotInAuthService

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

func (*TimerLayerUserStore) GetAllProfiles

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

func (*TimerLayerUserStore) GetAllProfilesInChannel

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

func (*TimerLayerUserStore) GetAllUsingAuthService

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

func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel

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

func (*TimerLayerUserStore) GetByAuth

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

func (*TimerLayerUserStore) GetByEmail

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

func (*TimerLayerUserStore) GetByUsername

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

func (*TimerLayerUserStore) GetChannelGroupUsers

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

func (*TimerLayerUserStore) GetEtagForAllProfiles

func (s *TimerLayerUserStore) GetEtagForAllProfiles() string

func (*TimerLayerUserStore) GetEtagForProfiles

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

func (*TimerLayerUserStore) GetEtagForProfilesNotInTeam

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

func (*TimerLayerUserStore) GetForLogin

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

func (*TimerLayerUserStore) GetKnownUsers

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

func (*TimerLayerUserStore) GetNewUsersForTeam

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

func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser

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

func (*TimerLayerUserStore) GetProfileByIds

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

func (*TimerLayerUserStore) GetProfiles

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

func (*TimerLayerUserStore) GetProfilesByUsernames

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

func (*TimerLayerUserStore) GetProfilesInChannel

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

func (*TimerLayerUserStore) GetProfilesInChannelByStatus

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

func (*TimerLayerUserStore) GetProfilesNotInChannel

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

func (*TimerLayerUserStore) GetProfilesNotInTeam

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

func (*TimerLayerUserStore) GetProfilesWithoutTeam

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

func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam

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

func (*TimerLayerUserStore) GetSystemAdminProfiles

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

func (*TimerLayerUserStore) GetTeamGroupUsers

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

func (*TimerLayerUserStore) GetUnreadCount

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

func (*TimerLayerUserStore) GetUnreadCountForChannel

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

func (*TimerLayerUserStore) GetUsersBatchForIndexing

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

func (*TimerLayerUserStore) InferSystemInstallDate

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

func (*TimerLayerUserStore) InvalidateProfileCacheForUser

func (s *TimerLayerUserStore) InvalidateProfileCacheForUser(userId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCache

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)

func (*TimerLayerUserStore) PermanentDelete

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

func (*TimerLayerUserStore) PromoteGuestToUser

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

func (*TimerLayerUserStore) ResetLastPictureUpdate

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

func (*TimerLayerUserStore) Save

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

func (*TimerLayerUserStore) Search

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

func (*TimerLayerUserStore) SearchInChannel

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

func (*TimerLayerUserStore) SearchInGroup

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

func (*TimerLayerUserStore) SearchNotInChannel

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

func (*TimerLayerUserStore) SearchNotInTeam

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

func (*TimerLayerUserStore) SearchWithoutTeam

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

func (*TimerLayerUserStore) Update

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

func (*TimerLayerUserStore) UpdateAuthData

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

func (*TimerLayerUserStore) UpdateFailedPasswordAttempts

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

func (*TimerLayerUserStore) UpdateLastPictureUpdate

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

func (*TimerLayerUserStore) UpdateMfaActive

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

func (*TimerLayerUserStore) UpdateMfaSecret

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

func (*TimerLayerUserStore) UpdatePassword

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

func (*TimerLayerUserStore) UpdateUpdateAt

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

func (*TimerLayerUserStore) VerifyEmail

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

type TimerLayerUserTermsOfServiceStore

type TimerLayerUserTermsOfServiceStore struct {
	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