store

package
v5.18.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 62

Documentation

Index

Constants

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

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

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

	FEATURE_TOGGLE_PREFIX = "feature_enabled_"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditStore

type AuditStore interface {
	Save(audit *model.Audit) *model.AppError
	Get(user_id string, offset int, limit int) (model.Audits, *model.AppError)
	PermanentDeleteByUser(userId string) *model.AppError
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
}

type BotStore

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

type ChannelMemberHistoryStore

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

type ChannelSearchOpts

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

ChannelSearchOpts contains options for searching channels.

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

func (*ChannelSearchOpts) IsPaginated

func (c *ChannelSearchOpts) IsPaginated() bool

type ChannelStore

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

type ClusterDiscoveryStore

type ClusterDiscoveryStore interface {
	Save(discovery *model.ClusterDiscovery) *model.AppError
	Delete(discovery *model.ClusterDiscovery) (bool, *model.AppError)
	Exists(discovery *model.ClusterDiscovery) (bool, *model.AppError)
	GetAll(discoveryType, clusterName string) ([]*model.ClusterDiscovery, *model.AppError)
	SetLastPingAt(discovery *model.ClusterDiscovery) *model.AppError
	Cleanup() *model.AppError
}

type CommandStore

type CommandStore interface {
	Save(webhook *model.Command) (*model.Command, *model.AppError)
	GetByTrigger(teamId string, trigger string) (*model.Command, *model.AppError)
	Get(id string) (*model.Command, *model.AppError)
	GetByTeam(teamId string) ([]*model.Command, *model.AppError)
	Delete(commandId string, time int64) *model.AppError
	PermanentDeleteByTeam(teamId string) *model.AppError
	PermanentDeleteByUser(userId string) *model.AppError
	Update(hook *model.Command) (*model.Command, *model.AppError)
	AnalyticsCommandCount(teamId string) (int64, *model.AppError)
}

type CommandWebhookStore

type CommandWebhookStore interface {
	Save(webhook *model.CommandWebhook) (*model.CommandWebhook, *model.AppError)
	Get(id string) (*model.CommandWebhook, *model.AppError)
	TryUse(id string, limit int) *model.AppError
	Cleanup()
}

type ComplianceStore

type ComplianceStore interface {
	Save(compliance *model.Compliance) (*model.Compliance, *model.AppError)
	Update(compliance *model.Compliance) (*model.Compliance, *model.AppError)
	Get(id string) (*model.Compliance, *model.AppError)
	GetAll(offset, limit int) (model.Compliances, *model.AppError)
	ComplianceExport(compliance *model.Compliance) ([]*model.CompliancePost, *model.AppError)
	MessageExport(after int64, limit int) ([]*model.MessageExport, *model.AppError)
}

type EmojiStore

type EmojiStore interface {
	Save(emoji *model.Emoji) (*model.Emoji, *model.AppError)
	Get(id string, allowFromCache bool) (*model.Emoji, *model.AppError)
	GetByName(name string, allowFromCache bool) (*model.Emoji, *model.AppError)
	GetMultipleByName(names []string) ([]*model.Emoji, *model.AppError)
	GetList(offset, limit int, sort string) ([]*model.Emoji, *model.AppError)
	Delete(emoji *model.Emoji, time int64) *model.AppError
	Search(name string, prefixOnly bool, limit int) ([]*model.Emoji, *model.AppError)
}

type FileInfoStore

type FileInfoStore interface {
	Save(info *model.FileInfo) (*model.FileInfo, *model.AppError)
	Get(id string) (*model.FileInfo, *model.AppError)
	GetByPath(path string) (*model.FileInfo, *model.AppError)
	GetForPost(postId string, readFromMaster, includeDeleted, allowFromCache bool) ([]*model.FileInfo, *model.AppError)
	GetForUser(userId string) ([]*model.FileInfo, *model.AppError)
	InvalidateFileInfosForPostCache(postId string)
	AttachToPost(fileId string, postId string, creatorId string) *model.AppError
	DeleteForPost(postId string) (string, *model.AppError)
	PermanentDelete(fileId string) *model.AppError
	PermanentDeleteBatch(endTime int64, limit int64) (int64, *model.AppError)
	PermanentDeleteByUser(userId string) (int64, *model.AppError)
	ClearCaches()
}

type GroupStore

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

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

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

	TeamMembersToAdd(since int64) ([]*model.UserTeamIDPair, *model.AppError)
	ChannelMembersToAdd(since int64) ([]*model.UserChannelIDPair, *model.AppError)

	TeamMembersToRemove() ([]*model.TeamMember, *model.AppError)
	ChannelMembersToRemove() ([]*model.ChannelMember, *model.AppError)

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

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

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

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

type IntegrityCheckResult

type IntegrityCheckResult struct {
	Data interface{}
	Err  error
}

type JobStore

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

type LicenseStore

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

type LinkMetadataStore

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

type OAuthStore

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

type OrphanedRecord

type OrphanedRecord struct {
	ParentId string
	ChildId  string
}

type PluginStore

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

type PostStore

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

type PreferenceStore

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

type ReactionStore

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

type RelationalIntegrityCheckData

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

type RoleStore

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

type SchemeStore

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

type SessionStore

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

type StatusStore

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

type Store

type Store interface {
	Team() TeamStore
	Channel() ChannelStore
	Post() PostStore
	User() UserStore
	Bot() BotStore
	Audit() AuditStore
	ClusterDiscovery() ClusterDiscoveryStore
	Compliance() ComplianceStore
	Session() SessionStore
	OAuth() OAuthStore
	System() SystemStore
	Webhook() WebhookStore
	Command() CommandStore
	CommandWebhook() CommandWebhookStore
	Preference() PreferenceStore
	License() LicenseStore
	Token() TokenStore
	Emoji() EmojiStore
	Status() StatusStore
	FileInfo() FileInfoStore
	Reaction() ReactionStore
	Role() RoleStore
	Scheme() SchemeStore
	Job() JobStore
	UserAccessToken() UserAccessTokenStore
	ChannelMemberHistory() ChannelMemberHistoryStore
	Plugin() PluginStore
	TermsOfService() TermsOfServiceStore
	Group() GroupStore
	UserTermsOfService() UserTermsOfServiceStore
	LinkMetadata() LinkMetadataStore
	MarkSystemRanUnitTests()
	Close()
	LockToMaster()
	UnlockFromMaster()
	DropAllTables()
	GetCurrentSchemaVersion() string
	TotalMasterDbConnections() int
	TotalReadDbConnections() int
	TotalSearchDbConnections() int
	CheckIntegrity() <-chan IntegrityCheckResult
}

type StoreResult

type StoreResult struct {
	Data interface{}
	Err  *model.AppError
}

type SystemStore

type SystemStore interface {
	Save(system *model.System) *model.AppError
	SaveOrUpdate(system *model.System) *model.AppError
	Update(system *model.System) *model.AppError
	Get() (model.StringMap, *model.AppError)
	GetByName(name string) (*model.System, *model.AppError)
	PermanentDeleteByName(name string) (*model.System, *model.AppError)
}

type TeamStore

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

type TermsOfServiceStore

type TermsOfServiceStore interface {
	Save(termsOfService *model.TermsOfService) (*model.TermsOfService, *model.AppError)
	GetLatest(allowFromCache bool) (*model.TermsOfService, *model.AppError)
	Get(id string, allowFromCache bool) (*model.TermsOfService, *model.AppError)
}

type TimerLayer

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

func NewTimerLayer

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

func (*TimerLayer) Audit

func (s *TimerLayer) Audit() AuditStore

func (*TimerLayer) Bot

func (s *TimerLayer) Bot() BotStore

func (*TimerLayer) Channel

func (s *TimerLayer) Channel() ChannelStore

func (*TimerLayer) ChannelMemberHistory

func (s *TimerLayer) ChannelMemberHistory() ChannelMemberHistoryStore

func (*TimerLayer) Close

func (s *TimerLayer) Close()

func (*TimerLayer) ClusterDiscovery

func (s *TimerLayer) ClusterDiscovery() ClusterDiscoveryStore

func (*TimerLayer) Command

func (s *TimerLayer) Command() CommandStore

func (*TimerLayer) CommandWebhook

func (s *TimerLayer) CommandWebhook() CommandWebhookStore

func (*TimerLayer) Compliance

func (s *TimerLayer) Compliance() ComplianceStore

func (*TimerLayer) DropAllTables

func (s *TimerLayer) DropAllTables()

func (*TimerLayer) Emoji

func (s *TimerLayer) Emoji() EmojiStore

func (*TimerLayer) FileInfo

func (s *TimerLayer) FileInfo() FileInfoStore

func (*TimerLayer) GetCurrentSchemaVersion

func (s *TimerLayer) GetCurrentSchemaVersion() string

func (*TimerLayer) Group

func (s *TimerLayer) Group() GroupStore

func (*TimerLayer) Job

func (s *TimerLayer) Job() JobStore

func (*TimerLayer) License

func (s *TimerLayer) License() LicenseStore

func (*TimerLayer) LinkMetadata

func (s *TimerLayer) LinkMetadata() LinkMetadataStore

func (*TimerLayer) LockToMaster

func (s *TimerLayer) LockToMaster()

func (*TimerLayer) MarkSystemRanUnitTests

func (s *TimerLayer) MarkSystemRanUnitTests()

func (*TimerLayer) OAuth

func (s *TimerLayer) OAuth() OAuthStore

func (*TimerLayer) Plugin

func (s *TimerLayer) Plugin() PluginStore

func (*TimerLayer) Post

func (s *TimerLayer) Post() PostStore

func (*TimerLayer) Preference

func (s *TimerLayer) Preference() PreferenceStore

func (*TimerLayer) Reaction

func (s *TimerLayer) Reaction() ReactionStore

func (*TimerLayer) Role

func (s *TimerLayer) Role() RoleStore

func (*TimerLayer) Scheme

func (s *TimerLayer) Scheme() SchemeStore

func (*TimerLayer) Session

func (s *TimerLayer) Session() SessionStore

func (*TimerLayer) Status

func (s *TimerLayer) Status() StatusStore

func (*TimerLayer) System

func (s *TimerLayer) System() SystemStore

func (*TimerLayer) Team

func (s *TimerLayer) Team() TeamStore

func (*TimerLayer) TermsOfService

func (s *TimerLayer) TermsOfService() TermsOfServiceStore

func (*TimerLayer) Token

func (s *TimerLayer) Token() TokenStore

func (*TimerLayer) TotalMasterDbConnections

func (s *TimerLayer) TotalMasterDbConnections() int

func (*TimerLayer) TotalReadDbConnections

func (s *TimerLayer) TotalReadDbConnections() int

func (*TimerLayer) TotalSearchDbConnections

func (s *TimerLayer) TotalSearchDbConnections() int

func (*TimerLayer) UnlockFromMaster

func (s *TimerLayer) UnlockFromMaster()

func (*TimerLayer) User

func (s *TimerLayer) User() UserStore

func (*TimerLayer) UserAccessToken

func (s *TimerLayer) UserAccessToken() UserAccessTokenStore

func (*TimerLayer) UserTermsOfService

func (s *TimerLayer) UserTermsOfService() UserTermsOfServiceStore

func (*TimerLayer) Webhook

func (s *TimerLayer) Webhook() WebhookStore

type TimerLayerAuditStore

type TimerLayerAuditStore struct {
	AuditStore
	Root *TimerLayer
}

func (*TimerLayerAuditStore) Get

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

func (*TimerLayerAuditStore) PermanentDeleteBatch

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

func (*TimerLayerAuditStore) PermanentDeleteByUser

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

func (*TimerLayerAuditStore) Save

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

type TimerLayerBotStore

type TimerLayerBotStore struct {
	BotStore
	Root *TimerLayer
}

func (*TimerLayerBotStore) Get

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

func (*TimerLayerBotStore) GetAll

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

func (*TimerLayerBotStore) PermanentDelete

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

func (*TimerLayerBotStore) Save

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

func (*TimerLayerBotStore) Update

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

type TimerLayerChannelMemberHistoryStore

type TimerLayerChannelMemberHistoryStore struct {
	ChannelMemberHistoryStore
	Root *TimerLayer
}

func (*TimerLayerChannelMemberHistoryStore) GetUsersInChannelDuring

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

func (*TimerLayerChannelMemberHistoryStore) LogJoinEvent

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

func (*TimerLayerChannelMemberHistoryStore) LogLeaveEvent

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

func (*TimerLayerChannelMemberHistoryStore) PermanentDeleteBatch

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

type TimerLayerChannelStore

type TimerLayerChannelStore struct {
	ChannelStore
	Root *TimerLayer
}

func (*TimerLayerChannelStore) AnalyticsDeletedTypeCount

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

func (*TimerLayerChannelStore) AnalyticsTypeCount

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

func (*TimerLayerChannelStore) AutocompleteInTeam

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

func (*TimerLayerChannelStore) AutocompleteInTeamForSearch

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

func (*TimerLayerChannelStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerChannelStore) ClearCaches

func (s *TimerLayerChannelStore) ClearCaches()

func (*TimerLayerChannelStore) CreateDirectChannel

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

func (*TimerLayerChannelStore) Delete

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

func (*TimerLayerChannelStore) Get

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

func (*TimerLayerChannelStore) GetAll

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

func (*TimerLayerChannelStore) GetAllChannelMembersForUser

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

func (*TimerLayerChannelStore) GetAllChannelMembersNotifyPropsForChannel

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

func (*TimerLayerChannelStore) GetAllChannels

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

func (*TimerLayerChannelStore) GetAllChannelsCount

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

func (*TimerLayerChannelStore) GetAllChannelsForExportAfter

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

func (*TimerLayerChannelStore) GetAllDirectChannelsForExportAfter

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

func (*TimerLayerChannelStore) GetByName

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

func (*TimerLayerChannelStore) GetByNameIncludeDeleted

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

func (*TimerLayerChannelStore) GetByNames

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

func (*TimerLayerChannelStore) GetChannelCounts

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

func (*TimerLayerChannelStore) GetChannelMembersForExport

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

func (*TimerLayerChannelStore) GetChannelMembersTimezones

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

func (*TimerLayerChannelStore) GetChannelUnread

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

func (*TimerLayerChannelStore) GetChannels

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

func (*TimerLayerChannelStore) GetChannelsBatchForIndexing

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

func (*TimerLayerChannelStore) GetChannelsByIds

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

func (*TimerLayerChannelStore) GetChannelsByScheme

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

func (*TimerLayerChannelStore) GetDeleted

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

func (*TimerLayerChannelStore) GetDeletedByName

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

func (*TimerLayerChannelStore) GetForPost

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

func (*TimerLayerChannelStore) GetFromMaster

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

func (*TimerLayerChannelStore) GetGuestCount

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

func (*TimerLayerChannelStore) GetGuestCountFromCache

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

func (*TimerLayerChannelStore) GetMember

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

func (*TimerLayerChannelStore) GetMemberCount

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

func (*TimerLayerChannelStore) GetMemberCountFromCache

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

func (*TimerLayerChannelStore) GetMemberForPost

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

func (*TimerLayerChannelStore) GetMembers

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

func (*TimerLayerChannelStore) GetMembersByIds

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

func (*TimerLayerChannelStore) GetMembersForUser

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

func (*TimerLayerChannelStore) GetMembersForUserWithPagination

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

func (*TimerLayerChannelStore) GetMoreChannels

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

func (*TimerLayerChannelStore) GetPinnedPostCount

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

func (*TimerLayerChannelStore) GetPinnedPostCountFromCache

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

func (*TimerLayerChannelStore) GetPinnedPosts

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

func (*TimerLayerChannelStore) GetPublicChannelsByIdsForTeam

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

func (*TimerLayerChannelStore) GetPublicChannelsForTeam

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

func (*TimerLayerChannelStore) GetTeamChannels

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

func (*TimerLayerChannelStore) IncrementMentionCount

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

func (*TimerLayerChannelStore) InvalidateAllChannelMembersForUser

func (s *TimerLayerChannelStore) InvalidateAllChannelMembersForUser(userId string)

func (*TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps

func (s *TimerLayerChannelStore) InvalidateCacheForChannelMembersNotifyProps(channelId string)

func (*TimerLayerChannelStore) InvalidateChannel

func (s *TimerLayerChannelStore) InvalidateChannel(id string)

func (*TimerLayerChannelStore) InvalidateChannelByName

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

func (*TimerLayerChannelStore) InvalidateGuestCount

func (s *TimerLayerChannelStore) InvalidateGuestCount(channelId string)

func (*TimerLayerChannelStore) InvalidateMemberCount

func (s *TimerLayerChannelStore) InvalidateMemberCount(channelId string)

func (*TimerLayerChannelStore) InvalidatePinnedPostCount

func (s *TimerLayerChannelStore) InvalidatePinnedPostCount(channelId string)

func (*TimerLayerChannelStore) IsUserInChannelUseCache

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

func (*TimerLayerChannelStore) MigrateChannelMembers

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

func (*TimerLayerChannelStore) MigratePublicChannels

func (s *TimerLayerChannelStore) MigratePublicChannels() error

func (*TimerLayerChannelStore) PermanentDelete

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

func (*TimerLayerChannelStore) PermanentDeleteByTeam

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

func (*TimerLayerChannelStore) PermanentDeleteMembersByChannel

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

func (*TimerLayerChannelStore) PermanentDeleteMembersByUser

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

func (*TimerLayerChannelStore) RemoveAllDeactivatedMembers

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

func (*TimerLayerChannelStore) RemoveMember

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

func (*TimerLayerChannelStore) ResetAllChannelSchemes

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

func (*TimerLayerChannelStore) Restore

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

func (*TimerLayerChannelStore) Save

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

func (*TimerLayerChannelStore) SaveDirectChannel

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

func (*TimerLayerChannelStore) SaveMember

func (*TimerLayerChannelStore) SearchAllChannels

func (*TimerLayerChannelStore) SearchForUserInTeam

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

func (*TimerLayerChannelStore) SearchGroupChannels

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

func (*TimerLayerChannelStore) SearchInTeam

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

func (*TimerLayerChannelStore) SearchMore

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

func (*TimerLayerChannelStore) SetDeleteAt

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

func (*TimerLayerChannelStore) Update

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

func (*TimerLayerChannelStore) UpdateLastViewedAt

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

func (*TimerLayerChannelStore) UpdateMember

func (*TimerLayerChannelStore) UserBelongsToChannels

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

type TimerLayerClusterDiscoveryStore

type TimerLayerClusterDiscoveryStore struct {
	ClusterDiscoveryStore
	Root *TimerLayer
}

func (*TimerLayerClusterDiscoveryStore) Cleanup

func (*TimerLayerClusterDiscoveryStore) Delete

func (*TimerLayerClusterDiscoveryStore) Exists

func (*TimerLayerClusterDiscoveryStore) GetAll

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

func (*TimerLayerClusterDiscoveryStore) Save

func (*TimerLayerClusterDiscoveryStore) SetLastPingAt

type TimerLayerCommandStore

type TimerLayerCommandStore struct {
	CommandStore
	Root *TimerLayer
}

func (*TimerLayerCommandStore) AnalyticsCommandCount

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

func (*TimerLayerCommandStore) Delete

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

func (*TimerLayerCommandStore) Get

func (*TimerLayerCommandStore) GetByTeam

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

func (*TimerLayerCommandStore) GetByTrigger

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

func (*TimerLayerCommandStore) PermanentDeleteByTeam

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

func (*TimerLayerCommandStore) PermanentDeleteByUser

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

func (*TimerLayerCommandStore) Save

func (*TimerLayerCommandStore) Update

type TimerLayerCommandWebhookStore

type TimerLayerCommandWebhookStore struct {
	CommandWebhookStore
	Root *TimerLayer
}

func (*TimerLayerCommandWebhookStore) Cleanup

func (s *TimerLayerCommandWebhookStore) Cleanup()

func (*TimerLayerCommandWebhookStore) Get

func (*TimerLayerCommandWebhookStore) Save

func (*TimerLayerCommandWebhookStore) TryUse

func (s *TimerLayerCommandWebhookStore) TryUse(id string, limit int) *model.AppError

type TimerLayerComplianceStore

type TimerLayerComplianceStore struct {
	ComplianceStore
	Root *TimerLayer
}

func (*TimerLayerComplianceStore) ComplianceExport

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

func (*TimerLayerComplianceStore) Get

func (*TimerLayerComplianceStore) GetAll

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

func (*TimerLayerComplianceStore) MessageExport

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

func (*TimerLayerComplianceStore) Save

func (*TimerLayerComplianceStore) Update

type TimerLayerEmojiStore

type TimerLayerEmojiStore struct {
	EmojiStore
	Root *TimerLayer
}

func (*TimerLayerEmojiStore) Delete

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

func (*TimerLayerEmojiStore) Get

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

func (*TimerLayerEmojiStore) GetByName

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

func (*TimerLayerEmojiStore) GetList

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

func (*TimerLayerEmojiStore) GetMultipleByName

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

func (*TimerLayerEmojiStore) Save

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

func (*TimerLayerEmojiStore) Search

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

type TimerLayerFileInfoStore

type TimerLayerFileInfoStore struct {
	FileInfoStore
	Root *TimerLayer
}

func (*TimerLayerFileInfoStore) AttachToPost

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

func (*TimerLayerFileInfoStore) ClearCaches

func (s *TimerLayerFileInfoStore) ClearCaches()

func (*TimerLayerFileInfoStore) DeleteForPost

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

func (*TimerLayerFileInfoStore) Get

func (*TimerLayerFileInfoStore) GetByPath

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

func (*TimerLayerFileInfoStore) GetForPost

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

func (*TimerLayerFileInfoStore) GetForUser

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

func (*TimerLayerFileInfoStore) InvalidateFileInfosForPostCache

func (s *TimerLayerFileInfoStore) InvalidateFileInfosForPostCache(postId string)

func (*TimerLayerFileInfoStore) PermanentDelete

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

func (*TimerLayerFileInfoStore) PermanentDeleteBatch

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

func (*TimerLayerFileInfoStore) PermanentDeleteByUser

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

func (*TimerLayerFileInfoStore) Save

type TimerLayerGroupStore

type TimerLayerGroupStore struct {
	GroupStore
	Root *TimerLayer
}

func (*TimerLayerGroupStore) 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) ([]*model.UserChannelIDPair, *model.AppError)

func (*TimerLayerGroupStore) ChannelMembersToRemove

func (s *TimerLayerGroupStore) ChannelMembersToRemove() ([]*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) Get

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

func (*TimerLayerGroupStore) GetAllBySource

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

func (*TimerLayerGroupStore) GetAllGroupSyncablesByGroupId

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

func (*TimerLayerGroupStore) GetByIDs

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

func (*TimerLayerGroupStore) GetByName

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

func (*TimerLayerGroupStore) GetByRemoteID

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

func (*TimerLayerGroupStore) GetByUser

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

func (*TimerLayerGroupStore) GetGroupSyncable

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

func (*TimerLayerGroupStore) GetGroups

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

func (*TimerLayerGroupStore) GetGroupsByChannel

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

func (*TimerLayerGroupStore) GetGroupsByTeam

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

func (*TimerLayerGroupStore) GetMemberCount

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

func (*TimerLayerGroupStore) GetMemberUsers

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

func (*TimerLayerGroupStore) GetMemberUsersPage

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

func (*TimerLayerGroupStore) 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) ([]*model.UserTeamIDPair, *model.AppError)

func (*TimerLayerGroupStore) TeamMembersToRemove

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

func (*TimerLayerGroupStore) Update

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

func (*TimerLayerGroupStore) UpdateGroupSyncable

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

func (*TimerLayerGroupStore) UpsertMember

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

type TimerLayerJobStore

type TimerLayerJobStore struct {
	JobStore
	Root *TimerLayer
}

func (*TimerLayerJobStore) Delete

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

func (*TimerLayerJobStore) Get

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

func (*TimerLayerJobStore) GetAllByStatus

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

func (*TimerLayerJobStore) GetAllByType

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

func (*TimerLayerJobStore) GetAllByTypePage

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

func (*TimerLayerJobStore) GetAllPage

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

func (*TimerLayerJobStore) GetCountByStatusAndType

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

func (*TimerLayerJobStore) GetNewestJobByStatusAndType

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

func (*TimerLayerJobStore) Save

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

func (*TimerLayerJobStore) UpdateOptimistically

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

func (*TimerLayerJobStore) UpdateStatus

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

func (*TimerLayerJobStore) UpdateStatusOptimistically

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

type TimerLayerLicenseStore

type TimerLayerLicenseStore struct {
	LicenseStore
	Root *TimerLayer
}

func (*TimerLayerLicenseStore) Get

func (*TimerLayerLicenseStore) Save

type TimerLayerLinkMetadataStore

type TimerLayerLinkMetadataStore struct {
	LinkMetadataStore
	Root *TimerLayer
}

func (*TimerLayerLinkMetadataStore) Get

func (*TimerLayerLinkMetadataStore) Save

type TimerLayerOAuthStore

type TimerLayerOAuthStore struct {
	OAuthStore
	Root *TimerLayer
}

func (*TimerLayerOAuthStore) DeleteApp

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

func (*TimerLayerOAuthStore) GetAccessData

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

func (*TimerLayerOAuthStore) GetAccessDataByRefreshToken

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

func (*TimerLayerOAuthStore) GetAccessDataByUserForApp

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

func (*TimerLayerOAuthStore) GetApp

func (*TimerLayerOAuthStore) GetAppByUser

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

func (*TimerLayerOAuthStore) GetApps

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

func (*TimerLayerOAuthStore) GetAuthData

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

func (*TimerLayerOAuthStore) GetAuthorizedApps

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

func (*TimerLayerOAuthStore) GetPreviousAccessData

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

func (*TimerLayerOAuthStore) PermanentDeleteAuthDataByUser

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

func (*TimerLayerOAuthStore) RemoveAccessData

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

func (*TimerLayerOAuthStore) RemoveAllAccessData

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

func (*TimerLayerOAuthStore) RemoveAuthData

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

func (*TimerLayerOAuthStore) SaveAccessData

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

func (*TimerLayerOAuthStore) SaveApp

func (*TimerLayerOAuthStore) SaveAuthData

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

func (*TimerLayerOAuthStore) UpdateAccessData

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

func (*TimerLayerOAuthStore) UpdateApp

type TimerLayerPluginStore

type TimerLayerPluginStore struct {
	PluginStore
	Root *TimerLayer
}

func (*TimerLayerPluginStore) CompareAndSet

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

func (*TimerLayerPluginStore) Delete

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

func (*TimerLayerPluginStore) DeleteAllExpired

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

func (*TimerLayerPluginStore) DeleteAllForPlugin

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

func (*TimerLayerPluginStore) Get

func (*TimerLayerPluginStore) List

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

func (*TimerLayerPluginStore) SaveOrUpdate

type TimerLayerPostStore

type TimerLayerPostStore struct {
	PostStore
	Root *TimerLayer
}

func (*TimerLayerPostStore) AnalyticsPostCount

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

func (*TimerLayerPostStore) AnalyticsPostCountsByDay

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

func (*TimerLayerPostStore) AnalyticsUserCountsWithPostsByDay

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

func (*TimerLayerPostStore) ClearCaches

func (s *TimerLayerPostStore) ClearCaches()

func (*TimerLayerPostStore) Delete

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

func (*TimerLayerPostStore) Get

func (*TimerLayerPostStore) GetDirectPostParentsForExportAfter

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

func (*TimerLayerPostStore) GetEtag

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

func (*TimerLayerPostStore) GetFlaggedPosts

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

func (*TimerLayerPostStore) GetFlaggedPostsForChannel

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

func (*TimerLayerPostStore) GetFlaggedPostsForTeam

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

func (*TimerLayerPostStore) GetMaxPostSize

func (s *TimerLayerPostStore) GetMaxPostSize() int

func (*TimerLayerPostStore) GetOldest

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

func (*TimerLayerPostStore) GetParentsForExportAfter

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

func (*TimerLayerPostStore) GetPostAfterTime

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

func (*TimerLayerPostStore) GetPostIdAfterTime

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

func (*TimerLayerPostStore) GetPostIdBeforeTime

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

func (*TimerLayerPostStore) GetPosts

func (s *TimerLayerPostStore) GetPosts(channelId string, offset int, limit int, allowFromCache bool) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsAfter

func (s *TimerLayerPostStore) GetPostsAfter(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsBatchForIndexing

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

func (*TimerLayerPostStore) GetPostsBefore

func (s *TimerLayerPostStore) GetPostsBefore(channelId string, postId string, numPosts int, offset int) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetPostsByIds

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

func (*TimerLayerPostStore) GetPostsCreatedAt

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

func (*TimerLayerPostStore) GetPostsSince

func (s *TimerLayerPostStore) GetPostsSince(channelId string, time int64, allowFromCache bool) (*model.PostList, *model.AppError)

func (*TimerLayerPostStore) GetRepliesForExport

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

func (*TimerLayerPostStore) GetSingle

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

func (*TimerLayerPostStore) InvalidateLastPostTimeCache

func (s *TimerLayerPostStore) InvalidateLastPostTimeCache(channelId string)

func (*TimerLayerPostStore) Overwrite

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

func (*TimerLayerPostStore) PermanentDeleteBatch

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

func (*TimerLayerPostStore) PermanentDeleteByChannel

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

func (*TimerLayerPostStore) PermanentDeleteByUser

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

func (*TimerLayerPostStore) Save

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

func (*TimerLayerPostStore) Search

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

func (*TimerLayerPostStore) Update

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

type TimerLayerPreferenceStore

type TimerLayerPreferenceStore struct {
	PreferenceStore
	Root *TimerLayer
}

func (*TimerLayerPreferenceStore) CleanupFlagsBatch

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

func (*TimerLayerPreferenceStore) Delete

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

func (*TimerLayerPreferenceStore) DeleteCategory

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

func (*TimerLayerPreferenceStore) DeleteCategoryAndName

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

func (*TimerLayerPreferenceStore) Get

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

func (*TimerLayerPreferenceStore) GetAll

func (*TimerLayerPreferenceStore) GetCategory

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

func (*TimerLayerPreferenceStore) PermanentDeleteByUser

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

func (*TimerLayerPreferenceStore) Save

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

type TimerLayerReactionStore

type TimerLayerReactionStore struct {
	ReactionStore
	Root *TimerLayer
}

func (*TimerLayerReactionStore) BulkGetForPosts

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

func (*TimerLayerReactionStore) Delete

func (*TimerLayerReactionStore) DeleteAllWithEmojiName

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

func (*TimerLayerReactionStore) GetForPost

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

func (*TimerLayerReactionStore) PermanentDeleteBatch

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

func (*TimerLayerReactionStore) Save

type TimerLayerRoleStore

type TimerLayerRoleStore struct {
	RoleStore
	Root *TimerLayer
}

func (*TimerLayerRoleStore) Delete

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

func (*TimerLayerRoleStore) Get

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

func (*TimerLayerRoleStore) GetAll

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

func (*TimerLayerRoleStore) GetByName

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

func (*TimerLayerRoleStore) GetByNames

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

func (*TimerLayerRoleStore) PermanentDeleteAll

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

func (*TimerLayerRoleStore) Save

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

type TimerLayerSchemeStore

type TimerLayerSchemeStore struct {
	SchemeStore
	Root *TimerLayer
}

func (*TimerLayerSchemeStore) Delete

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

func (*TimerLayerSchemeStore) Get

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

func (*TimerLayerSchemeStore) GetAllPage

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

func (*TimerLayerSchemeStore) GetByName

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

func (*TimerLayerSchemeStore) PermanentDeleteAll

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

func (*TimerLayerSchemeStore) Save

type TimerLayerSessionStore

type TimerLayerSessionStore struct {
	SessionStore
	Root *TimerLayer
}

func (*TimerLayerSessionStore) AnalyticsSessionCount

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

func (*TimerLayerSessionStore) Cleanup

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

func (*TimerLayerSessionStore) Get

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

func (*TimerLayerSessionStore) GetSessions

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

func (*TimerLayerSessionStore) GetSessionsWithActiveDeviceIds

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

func (*TimerLayerSessionStore) PermanentDeleteSessionsByUser

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

func (*TimerLayerSessionStore) Remove

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

func (*TimerLayerSessionStore) RemoveAllSessions

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

func (*TimerLayerSessionStore) Save

func (*TimerLayerSessionStore) UpdateDeviceId

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

func (*TimerLayerSessionStore) UpdateLastActivityAt

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

func (*TimerLayerSessionStore) UpdateProps

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

func (*TimerLayerSessionStore) UpdateRoles

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

type TimerLayerStatusStore

type TimerLayerStatusStore struct {
	StatusStore
	Root *TimerLayer
}

func (*TimerLayerStatusStore) Get

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

func (*TimerLayerStatusStore) GetByIds

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

func (*TimerLayerStatusStore) GetTotalActiveUsersCount

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

func (*TimerLayerStatusStore) ResetAll

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

func (*TimerLayerStatusStore) SaveOrUpdate

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

func (*TimerLayerStatusStore) UpdateLastActivityAt

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

type TimerLayerSystemStore

type TimerLayerSystemStore struct {
	SystemStore
	Root *TimerLayer
}

func (*TimerLayerSystemStore) Get

func (*TimerLayerSystemStore) GetByName

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

func (*TimerLayerSystemStore) PermanentDeleteByName

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

func (*TimerLayerSystemStore) Save

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

func (*TimerLayerSystemStore) SaveOrUpdate

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

func (*TimerLayerSystemStore) Update

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

type TimerLayerTeamStore

type TimerLayerTeamStore struct {
	TeamStore
	Root *TimerLayer
}

func (*TimerLayerTeamStore) AnalyticsGetTeamCountForScheme

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

func (*TimerLayerTeamStore) AnalyticsPrivateTeamCount

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

func (*TimerLayerTeamStore) AnalyticsPublicTeamCount

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

func (*TimerLayerTeamStore) AnalyticsTeamCount

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

func (*TimerLayerTeamStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerTeamStore) ClearCaches

func (s *TimerLayerTeamStore) ClearCaches()

func (*TimerLayerTeamStore) Get

func (*TimerLayerTeamStore) GetActiveMemberCount

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

func (*TimerLayerTeamStore) GetAll

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

func (*TimerLayerTeamStore) GetAllForExportAfter

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

func (*TimerLayerTeamStore) GetAllPage

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

func (*TimerLayerTeamStore) GetAllPrivateTeamListing

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

func (*TimerLayerTeamStore) GetAllPrivateTeamPageListing

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

func (*TimerLayerTeamStore) GetAllPublicTeamPageListing

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

func (*TimerLayerTeamStore) GetAllTeamListing

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

func (*TimerLayerTeamStore) GetAllTeamPageListing

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

func (*TimerLayerTeamStore) GetByInviteId

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

func (*TimerLayerTeamStore) GetByName

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

func (*TimerLayerTeamStore) GetChannelUnreadsForAllTeams

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

func (*TimerLayerTeamStore) GetChannelUnreadsForTeam

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

func (*TimerLayerTeamStore) GetMember

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

func (*TimerLayerTeamStore) GetMembers

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

func (*TimerLayerTeamStore) GetMembersByIds

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

func (*TimerLayerTeamStore) GetTeamMembersForExport

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

func (*TimerLayerTeamStore) GetTeamsByScheme

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

func (*TimerLayerTeamStore) GetTeamsByUserId

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

func (*TimerLayerTeamStore) GetTeamsForUser

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

func (*TimerLayerTeamStore) GetTeamsForUserWithPagination

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

func (*TimerLayerTeamStore) GetTotalMemberCount

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

func (*TimerLayerTeamStore) GetUserTeamIds

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

func (*TimerLayerTeamStore) InvalidateAllTeamIdsForUser

func (s *TimerLayerTeamStore) InvalidateAllTeamIdsForUser(userId string)

func (*TimerLayerTeamStore) MigrateTeamMembers

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

func (*TimerLayerTeamStore) PermanentDelete

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

func (*TimerLayerTeamStore) RemoveAllMembersByTeam

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

func (*TimerLayerTeamStore) RemoveAllMembersByUser

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

func (*TimerLayerTeamStore) RemoveMember

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

func (*TimerLayerTeamStore) ResetAllTeamSchemes

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

func (*TimerLayerTeamStore) Save

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

func (*TimerLayerTeamStore) SaveMember

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

func (*TimerLayerTeamStore) SearchAll

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

func (*TimerLayerTeamStore) SearchOpen

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

func (*TimerLayerTeamStore) SearchPrivate

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

func (*TimerLayerTeamStore) Update

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

func (*TimerLayerTeamStore) UpdateLastTeamIconUpdate

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

func (*TimerLayerTeamStore) UpdateMember

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

func (*TimerLayerTeamStore) UserBelongsToTeams

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

type TimerLayerTermsOfServiceStore

type TimerLayerTermsOfServiceStore struct {
	TermsOfServiceStore
	Root *TimerLayer
}

func (*TimerLayerTermsOfServiceStore) Get

func (*TimerLayerTermsOfServiceStore) GetLatest

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

func (*TimerLayerTermsOfServiceStore) Save

type TimerLayerTokenStore

type TimerLayerTokenStore struct {
	TokenStore
	Root *TimerLayer
}

func (*TimerLayerTokenStore) Cleanup

func (s *TimerLayerTokenStore) Cleanup()

func (*TimerLayerTokenStore) Delete

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

func (*TimerLayerTokenStore) GetByToken

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

func (*TimerLayerTokenStore) RemoveAllTokensByType

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

func (*TimerLayerTokenStore) Save

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

type TimerLayerUserAccessTokenStore

type TimerLayerUserAccessTokenStore struct {
	UserAccessTokenStore
	Root *TimerLayer
}

func (*TimerLayerUserAccessTokenStore) Delete

func (*TimerLayerUserAccessTokenStore) DeleteAllForUser

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

func (*TimerLayerUserAccessTokenStore) Get

func (*TimerLayerUserAccessTokenStore) GetAll

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

func (*TimerLayerUserAccessTokenStore) GetByToken

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

func (*TimerLayerUserAccessTokenStore) GetByUser

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

func (*TimerLayerUserAccessTokenStore) Save

func (*TimerLayerUserAccessTokenStore) Search

func (*TimerLayerUserAccessTokenStore) UpdateTokenDisable

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

func (*TimerLayerUserAccessTokenStore) UpdateTokenEnable

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

type TimerLayerUserStore

type TimerLayerUserStore struct {
	UserStore
	Root *TimerLayer
}

func (*TimerLayerUserStore) AnalyticsActiveCount

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

func (*TimerLayerUserStore) AnalyticsGetInactiveUsersCount

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

func (*TimerLayerUserStore) AnalyticsGetSystemAdminCount

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

func (*TimerLayerUserStore) ClearAllCustomRoleAssignments

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

func (*TimerLayerUserStore) ClearCaches

func (s *TimerLayerUserStore) ClearCaches()

func (*TimerLayerUserStore) Count

func (*TimerLayerUserStore) DemoteUserToGuest

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

func (*TimerLayerUserStore) Get

func (*TimerLayerUserStore) GetAll

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

func (*TimerLayerUserStore) GetAllAfter

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

func (*TimerLayerUserStore) GetAllProfiles

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

func (*TimerLayerUserStore) GetAllProfilesInChannel

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

func (*TimerLayerUserStore) GetAllUsingAuthService

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

func (*TimerLayerUserStore) GetAnyUnreadPostCountForChannel

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

func (*TimerLayerUserStore) GetByAuth

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

func (*TimerLayerUserStore) GetByEmail

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

func (*TimerLayerUserStore) GetByUsername

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

func (*TimerLayerUserStore) GetChannelGroupUsers

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

func (*TimerLayerUserStore) GetEtagForAllProfiles

func (s *TimerLayerUserStore) GetEtagForAllProfiles() string

func (*TimerLayerUserStore) GetEtagForProfiles

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

func (*TimerLayerUserStore) GetEtagForProfilesNotInTeam

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

func (*TimerLayerUserStore) GetForLogin

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

func (*TimerLayerUserStore) GetNewUsersForTeam

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

func (*TimerLayerUserStore) GetProfileByGroupChannelIdsForUser

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

func (*TimerLayerUserStore) GetProfileByIds

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

func (*TimerLayerUserStore) GetProfiles

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

func (*TimerLayerUserStore) GetProfilesByUsernames

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

func (*TimerLayerUserStore) GetProfilesInChannel

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

func (*TimerLayerUserStore) GetProfilesInChannelByStatus

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

func (*TimerLayerUserStore) GetProfilesNotInChannel

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

func (*TimerLayerUserStore) GetProfilesNotInTeam

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

func (*TimerLayerUserStore) GetProfilesWithoutTeam

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

func (*TimerLayerUserStore) GetRecentlyActiveUsersForTeam

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

func (*TimerLayerUserStore) GetSystemAdminProfiles

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

func (*TimerLayerUserStore) GetTeamGroupUsers

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

func (*TimerLayerUserStore) GetUnreadCount

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

func (*TimerLayerUserStore) GetUnreadCountForChannel

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

func (*TimerLayerUserStore) GetUsersBatchForIndexing

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

func (*TimerLayerUserStore) InferSystemInstallDate

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

func (*TimerLayerUserStore) InvalidatProfileCacheForUser

func (s *TimerLayerUserStore) InvalidatProfileCacheForUser(userId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCache

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCache(channelId string)

func (*TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser

func (s *TimerLayerUserStore) InvalidateProfilesInChannelCacheByUser(userId string)

func (*TimerLayerUserStore) PermanentDelete

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

func (*TimerLayerUserStore) PromoteGuestToUser

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

func (*TimerLayerUserStore) ResetLastPictureUpdate

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

func (*TimerLayerUserStore) Save

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

func (*TimerLayerUserStore) Search

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

func (*TimerLayerUserStore) SearchInChannel

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

func (*TimerLayerUserStore) SearchNotInChannel

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

func (*TimerLayerUserStore) SearchNotInTeam

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

func (*TimerLayerUserStore) SearchWithoutTeam

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

func (*TimerLayerUserStore) Update

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

func (*TimerLayerUserStore) UpdateAuthData

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

func (*TimerLayerUserStore) UpdateFailedPasswordAttempts

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

func (*TimerLayerUserStore) UpdateLastPictureUpdate

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

func (*TimerLayerUserStore) UpdateMfaActive

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

func (*TimerLayerUserStore) UpdateMfaSecret

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

func (*TimerLayerUserStore) UpdatePassword

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

func (*TimerLayerUserStore) UpdateUpdateAt

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

func (*TimerLayerUserStore) VerifyEmail

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

type TimerLayerUserTermsOfServiceStore

type TimerLayerUserTermsOfServiceStore struct {
	UserTermsOfServiceStore
	Root *TimerLayer
}

func (*TimerLayerUserTermsOfServiceStore) Delete

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

func (*TimerLayerUserTermsOfServiceStore) GetByUser

func (*TimerLayerUserTermsOfServiceStore) Save

type TimerLayerWebhookStore

type TimerLayerWebhookStore struct {
	WebhookStore
	Root *TimerLayer
}

func (*TimerLayerWebhookStore) AnalyticsIncomingCount

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

func (*TimerLayerWebhookStore) AnalyticsOutgoingCount

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

func (*TimerLayerWebhookStore) ClearCaches

func (s *TimerLayerWebhookStore) ClearCaches()

func (*TimerLayerWebhookStore) DeleteIncoming

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

func (*TimerLayerWebhookStore) DeleteOutgoing

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

func (*TimerLayerWebhookStore) GetIncoming

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

func (*TimerLayerWebhookStore) GetIncomingByChannel

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

func (*TimerLayerWebhookStore) GetIncomingByTeam

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

func (*TimerLayerWebhookStore) GetIncomingByTeamByUser

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

func (*TimerLayerWebhookStore) GetIncomingList

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

func (*TimerLayerWebhookStore) GetIncomingListByUser

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

func (*TimerLayerWebhookStore) GetOutgoing

func (*TimerLayerWebhookStore) GetOutgoingByChannel

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

func (*TimerLayerWebhookStore) GetOutgoingByChannelByUser

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

func (*TimerLayerWebhookStore) GetOutgoingByTeam

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

func (*TimerLayerWebhookStore) GetOutgoingByTeamByUser

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

func (*TimerLayerWebhookStore) GetOutgoingList

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

func (*TimerLayerWebhookStore) GetOutgoingListByUser

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

func (*TimerLayerWebhookStore) InvalidateWebhookCache

func (s *TimerLayerWebhookStore) InvalidateWebhookCache(webhook string)

func (*TimerLayerWebhookStore) PermanentDeleteIncomingByChannel

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

func (*TimerLayerWebhookStore) PermanentDeleteIncomingByUser

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

func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByChannel

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

func (*TimerLayerWebhookStore) PermanentDeleteOutgoingByUser

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

func (*TimerLayerWebhookStore) SaveIncoming

func (*TimerLayerWebhookStore) SaveOutgoing

func (*TimerLayerWebhookStore) UpdateIncoming

func (*TimerLayerWebhookStore) UpdateOutgoing

type TokenStore

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

type UserAccessTokenStore

type UserAccessTokenStore interface {
	Save(token *model.UserAccessToken) (*model.UserAccessToken, *model.AppError)
	DeleteAllForUser(userId string) *model.AppError
	Delete(tokenId string) *model.AppError
	Get(tokenId string) (*model.UserAccessToken, *model.AppError)
	GetAll(offset int, limit int) ([]*model.UserAccessToken, *model.AppError)
	GetByToken(tokenString string) (*model.UserAccessToken, *model.AppError)
	GetByUser(userId string, page, perPage int) ([]*model.UserAccessToken, *model.AppError)
	Search(term string) ([]*model.UserAccessToken, *model.AppError)
	UpdateTokenEnable(tokenId string) *model.AppError
	UpdateTokenDisable(tokenId string) *model.AppError
}

type UserGetByIdsOpts

type UserGetByIdsOpts struct {
	// IsAdmin tracks whether or not the request is being made by an administrator. Does nothing when provided by a client.
	IsAdmin bool

	// Restrict to search in a list of teams and channels. Does nothing when provided by a client.
	ViewRestrictions *model.ViewUsersRestrictions

	// Since filters the users based on their UpdateAt timestamp.
	Since int64
}

type UserStore

type UserStore interface {
	Save(user *model.User) (*model.User, *model.AppError)
	Update(user *model.User, allowRoleUpdate bool) (*model.UserUpdate, *model.AppError)
	UpdateLastPictureUpdate(userId string) *model.AppError
	ResetLastPictureUpdate(userId string) *model.AppError
	UpdatePassword(userId, newPassword string) *model.AppError
	UpdateUpdateAt(userId string) (int64, *model.AppError)
	UpdateAuthData(userId string, service string, authData *string, email string, resetMfa bool) (string, *model.AppError)
	UpdateMfaSecret(userId, secret string) *model.AppError
	UpdateMfaActive(userId string, active bool) *model.AppError
	Get(id string) (*model.User, *model.AppError)
	GetAll() ([]*model.User, *model.AppError)
	ClearCaches()
	InvalidateProfilesInChannelCacheByUser(userId string)
	InvalidateProfilesInChannelCache(channelId string)
	GetProfilesInChannel(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
	GetProfilesInChannelByStatus(channelId string, offset int, limit int) ([]*model.User, *model.AppError)
	GetAllProfilesInChannel(channelId string, allowFromCache bool) (map[string]*model.User, *model.AppError)
	GetProfilesNotInChannel(teamId string, channelId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetProfilesWithoutTeam(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfilesByUsernames(usernames []string, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetAllProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfiles(options *model.UserGetOptions) ([]*model.User, *model.AppError)
	GetProfileByIds(userIds []string, options *UserGetByIdsOpts, allowFromCache bool) ([]*model.User, *model.AppError)
	GetProfileByGroupChannelIdsForUser(userId string, channelIds []string) (map[string][]*model.User, *model.AppError)
	InvalidatProfileCacheForUser(userId string)
	GetByEmail(email string) (*model.User, *model.AppError)
	GetByAuth(authData *string, authService string) (*model.User, *model.AppError)
	GetAllUsingAuthService(authService string) ([]*model.User, *model.AppError)
	GetByUsername(username string) (*model.User, *model.AppError)
	GetForLogin(loginId string, allowSignInWithUsername, allowSignInWithEmail bool) (*model.User, *model.AppError)
	VerifyEmail(userId, email string) (string, *model.AppError)
	GetEtagForAllProfiles() string
	GetEtagForProfiles(teamId string) string
	UpdateFailedPasswordAttempts(userId string, attempts int) *model.AppError
	GetSystemAdminProfiles() (map[string]*model.User, *model.AppError)
	PermanentDelete(userId string) *model.AppError
	AnalyticsActiveCount(time int64, options model.UserCountOptions) (int64, *model.AppError)
	GetUnreadCount(userId string) (int64, *model.AppError)
	GetUnreadCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetAnyUnreadPostCountForChannel(userId string, channelId string) (int64, *model.AppError)
	GetRecentlyActiveUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetNewUsersForTeam(teamId string, offset, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	Search(teamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInTeam(notInTeamId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchInChannel(channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchNotInChannel(teamId string, channelId string, term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	SearchWithoutTeam(term string, options *model.UserSearchOptions) ([]*model.User, *model.AppError)
	AnalyticsGetInactiveUsersCount() (int64, *model.AppError)
	AnalyticsGetSystemAdminCount() (int64, *model.AppError)
	GetProfilesNotInTeam(teamId string, groupConstrained bool, offset int, limit int, viewRestrictions *model.ViewUsersRestrictions) ([]*model.User, *model.AppError)
	GetEtagForProfilesNotInTeam(teamId string) string
	ClearAllCustomRoleAssignments() *model.AppError
	InferSystemInstallDate() (int64, *model.AppError)
	GetAllAfter(limit int, afterId string) ([]*model.User, *model.AppError)
	GetUsersBatchForIndexing(startTime, endTime int64, limit int) ([]*model.UserForIndexing, *model.AppError)
	Count(options model.UserCountOptions) (int64, *model.AppError)
	GetTeamGroupUsers(teamID string) ([]*model.User, *model.AppError)
	GetChannelGroupUsers(channelID string) ([]*model.User, *model.AppError)
	PromoteGuestToUser(userID string) *model.AppError
	DemoteUserToGuest(userID string) *model.AppError
	DeactivateGuests() ([]string, *model.AppError)
}

type UserTermsOfServiceStore

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

type WebhookStore

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

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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