Versions in this module Expand all Collapse all v1 v1.4.0 Jan 14, 2016 Changes in this version + const FEATURE_TOGGLE_PREFIX + const INDEX_TYPE_DEFAULT + const INDEX_TYPE_FULL_TEXT + const MISSING_ACCOUNT_ERROR + func IsUniqueConstraintError(err string, mysql string, postgres string) bool + func Must(sc StoreChannel) interface + type AuditStore interface + Get func(user_id string, limit int) StoreChannel + PermanentDeleteByUser func(userId string) StoreChannel + Save func(audit *model.Audit) StoreChannel + func NewSqlAuditStore(sqlStore *SqlStore) AuditStore + type ChannelStore interface + AnalyticsTypeCount func(teamId string, channelType string) StoreChannel + CheckOpenChannelPermissions func(teamId string, channelId string) StoreChannel + CheckPermissionsTo func(teamId string, channelId string, userId string) StoreChannel + CheckPermissionsToByName func(teamId string, channelName string, userId string) StoreChannel + Delete func(channelId string, time int64) StoreChannel + Get func(id string) StoreChannel + GetByName func(team_id string, domain string) StoreChannel + GetChannelCounts func(teamId string, userId string) StoreChannel + GetChannels func(teamId string, userId string) StoreChannel + GetExtraMembers func(channelId string, limit int) StoreChannel + GetForExport func(teamId string) StoreChannel + GetFromMaster func(id string) StoreChannel + GetMember func(channelId string, userId string) StoreChannel + GetMemberCount func(channelId string) StoreChannel + GetMembers func(channelId string) StoreChannel + GetMoreChannels func(teamId string, userId string) StoreChannel + IncrementMentionCount func(channelId string, userId string) StoreChannel + PermanentDeleteByTeam func(teamId string) StoreChannel + PermanentDeleteMembersByUser func(userId string) StoreChannel + RemoveMember func(channelId string, userId string) StoreChannel + Save func(channel *model.Channel) StoreChannel + SaveDirectChannel func(channel *model.Channel, member1 *model.ChannelMember, ...) StoreChannel + SaveMember func(member *model.ChannelMember) StoreChannel + Update func(channel *model.Channel) StoreChannel + UpdateLastViewedAt func(channelId string, userId string) StoreChannel + UpdateMember func(member *model.ChannelMember) StoreChannel + func NewSqlChannelStore(sqlStore *SqlStore) ChannelStore + type OAuthStore interface + GetAccessData func(token string) StoreChannel + GetAccessDataByAuthCode func(authCode string) StoreChannel + GetApp func(id string) StoreChannel + GetAppByUser func(userId string) StoreChannel + GetAuthData func(code string) StoreChannel + PermanentDeleteAuthDataByUser func(userId string) StoreChannel + RemoveAccessData func(token string) StoreChannel + RemoveAuthData func(code string) StoreChannel + SaveAccessData func(accessData *model.AccessData) StoreChannel + SaveApp func(app *model.OAuthApp) StoreChannel + SaveAuthData func(authData *model.AuthData) StoreChannel + UpdateApp func(app *model.OAuthApp) StoreChannel + func NewSqlOAuthStore(sqlStore *SqlStore) OAuthStore + type PostStore interface + AnalyticsPostCount func(teamId string) StoreChannel + AnalyticsPostCountsByDay func(teamId string) StoreChannel + AnalyticsUserCountsWithPostsByDay func(teamId string) StoreChannel + Delete func(postId string, time int64) StoreChannel + Get func(id string) StoreChannel + GetEtag func(channelId string) StoreChannel + GetForExport func(channelId string) StoreChannel + GetPosts func(channelId string, offset int, limit int) StoreChannel + GetPostsAfter func(channelId string, postId string, numPosts int, offset int) StoreChannel + GetPostsBefore func(channelId string, postId string, numPosts int, offset int) StoreChannel + GetPostsSince func(channelId string, time int64) StoreChannel + PermanentDeleteByUser func(userId string) StoreChannel + Save func(post *model.Post) StoreChannel + Search func(teamId string, userId string, params *model.SearchParams) StoreChannel + Update func(post *model.Post, newMessage string, newHashtags string) StoreChannel + func NewSqlPostStore(sqlStore *SqlStore) PostStore + type PreferenceStore interface + Get func(userId string, category string, name string) StoreChannel + GetAll func(userId string) StoreChannel + GetCategory func(userId string, category string) StoreChannel + IsFeatureEnabled func(feature, userId string) StoreChannel + PermanentDeleteByUser func(userId string) StoreChannel + Save func(preferences *model.Preferences) StoreChannel + func NewSqlPreferenceStore(sqlStore *SqlStore) PreferenceStore + type SessionStore interface + Get func(sessionIdOrToken string) StoreChannel + GetSessions func(userId string) StoreChannel + PermanentDeleteSessionsByUser func(teamId string) StoreChannel + Remove func(sessionIdOrToken string) StoreChannel + RemoveAllSessionsForTeam func(teamId string) StoreChannel + Save func(session *model.Session) StoreChannel + UpdateLastActivityAt func(sessionId string, time int64) StoreChannel + UpdateRoles func(userId string, roles string) StoreChannel + func NewSqlSessionStore(sqlStore *SqlStore) SessionStore + type SqlAuditStore struct + func (s SqlAuditStore) CreateIndexesIfNotExists() + func (s SqlAuditStore) Get(user_id string, limit int) StoreChannel + func (s SqlAuditStore) PermanentDeleteByUser(userId string) StoreChannel + func (s SqlAuditStore) Save(audit *model.Audit) StoreChannel + func (s SqlAuditStore) UpgradeSchemaIfNeeded() + type SqlChannelStore struct + func (s SqlChannelStore) AnalyticsTypeCount(teamId string, channelType string) StoreChannel + func (s SqlChannelStore) CheckOpenChannelPermissions(teamId string, channelId string) StoreChannel + func (s SqlChannelStore) CheckPermissionsTo(teamId string, channelId string, userId string) StoreChannel + func (s SqlChannelStore) CheckPermissionsToByName(teamId string, channelName string, userId string) StoreChannel + func (s SqlChannelStore) CreateIndexesIfNotExists() + func (s SqlChannelStore) Delete(channelId string, time int64) StoreChannel + func (s SqlChannelStore) Get(id string) StoreChannel + func (s SqlChannelStore) GetByName(teamId string, name string) StoreChannel + func (s SqlChannelStore) GetChannelCounts(teamId string, userId string) StoreChannel + func (s SqlChannelStore) GetChannels(teamId string, userId string) StoreChannel + func (s SqlChannelStore) GetExtraMembers(channelId string, limit int) StoreChannel + func (s SqlChannelStore) GetForExport(teamId string) StoreChannel + func (s SqlChannelStore) GetFromMaster(id string) StoreChannel + func (s SqlChannelStore) GetMember(channelId string, userId string) StoreChannel + func (s SqlChannelStore) GetMemberCount(channelId string) StoreChannel + func (s SqlChannelStore) GetMembers(channelId string) StoreChannel + func (s SqlChannelStore) GetMoreChannels(teamId string, userId string) StoreChannel + func (s SqlChannelStore) IncrementMentionCount(channelId string, userId string) StoreChannel + func (s SqlChannelStore) PermanentDeleteByTeam(teamId string) StoreChannel + func (s SqlChannelStore) PermanentDeleteMembersByUser(userId string) StoreChannel + func (s SqlChannelStore) RemoveMember(channelId string, userId string) StoreChannel + func (s SqlChannelStore) Save(channel *model.Channel) StoreChannel + func (s SqlChannelStore) SaveDirectChannel(directchannel *model.Channel, member1 *model.ChannelMember, ...) StoreChannel + func (s SqlChannelStore) SaveMember(member *model.ChannelMember) StoreChannel + func (s SqlChannelStore) Update(channel *model.Channel) StoreChannel + func (s SqlChannelStore) UpdateLastViewedAt(channelId string, userId string) StoreChannel + func (s SqlChannelStore) UpdateMember(member *model.ChannelMember) StoreChannel + func (s SqlChannelStore) UpgradeSchemaIfNeeded() + type SqlOAuthStore struct + func (as SqlOAuthStore) CreateIndexesIfNotExists() + func (as SqlOAuthStore) GetAccessData(token string) StoreChannel + func (as SqlOAuthStore) GetAccessDataByAuthCode(authCode string) StoreChannel + func (as SqlOAuthStore) GetApp(id string) StoreChannel + func (as SqlOAuthStore) GetAppByUser(userId string) StoreChannel + func (as SqlOAuthStore) GetAuthData(code string) StoreChannel + func (as SqlOAuthStore) PermanentDeleteAuthDataByUser(userId string) StoreChannel + func (as SqlOAuthStore) RemoveAccessData(token string) StoreChannel + func (as SqlOAuthStore) RemoveAuthData(code string) StoreChannel + func (as SqlOAuthStore) SaveAccessData(accessData *model.AccessData) StoreChannel + func (as SqlOAuthStore) SaveApp(app *model.OAuthApp) StoreChannel + func (as SqlOAuthStore) SaveAuthData(authData *model.AuthData) StoreChannel + func (as SqlOAuthStore) UpdateApp(app *model.OAuthApp) StoreChannel + func (as SqlOAuthStore) UpgradeSchemaIfNeeded() + type SqlPostStore struct + func (s SqlPostStore) AnalyticsPostCount(teamId string) StoreChannel + func (s SqlPostStore) AnalyticsPostCountsByDay(teamId string) StoreChannel + func (s SqlPostStore) AnalyticsUserCountsWithPostsByDay(teamId string) StoreChannel + func (s SqlPostStore) CreateIndexesIfNotExists() + func (s SqlPostStore) Delete(postId string, time int64) StoreChannel + func (s SqlPostStore) Get(id string) StoreChannel + func (s SqlPostStore) GetEtag(channelId string) StoreChannel + func (s SqlPostStore) GetForExport(channelId string) StoreChannel + func (s SqlPostStore) GetPosts(channelId string, offset int, limit int) StoreChannel + func (s SqlPostStore) GetPostsAfter(channelId string, postId string, numPosts int, offset int) StoreChannel + func (s SqlPostStore) GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel + func (s SqlPostStore) GetPostsSince(channelId string, time int64) StoreChannel + func (s SqlPostStore) PermanentDeleteByUser(userId string) StoreChannel + func (s SqlPostStore) Save(post *model.Post) StoreChannel + func (s SqlPostStore) Search(teamId string, userId string, params *model.SearchParams) StoreChannel + func (s SqlPostStore) Update(oldPost *model.Post, newMessage string, newHashtags string) StoreChannel + func (s SqlPostStore) UpgradeSchemaIfNeeded() + type SqlPreferenceStore struct + func (s SqlPreferenceStore) CreateIndexesIfNotExists() + func (s SqlPreferenceStore) DeleteUnusedFeatures() + func (s SqlPreferenceStore) Get(userId string, category string, name string) StoreChannel + func (s SqlPreferenceStore) GetAll(userId string) StoreChannel + func (s SqlPreferenceStore) GetCategory(userId string, category string) StoreChannel + func (s SqlPreferenceStore) IsFeatureEnabled(feature, userId string) StoreChannel + func (s SqlPreferenceStore) PermanentDeleteByUser(userId string) StoreChannel + func (s SqlPreferenceStore) Save(preferences *model.Preferences) StoreChannel + func (s SqlPreferenceStore) UpgradeSchemaIfNeeded() + type SqlSessionStore struct + func (me SqlSessionStore) CleanUpExpiredSessions(userId string) StoreChannel + func (me SqlSessionStore) CreateIndexesIfNotExists() + func (me SqlSessionStore) Get(sessionIdOrToken string) StoreChannel + func (me SqlSessionStore) GetSessions(userId string) StoreChannel + func (me SqlSessionStore) PermanentDeleteSessionsByUser(userId string) StoreChannel + func (me SqlSessionStore) Remove(sessionIdOrToken string) StoreChannel + func (me SqlSessionStore) RemoveAllSessionsForTeam(teamId string) StoreChannel + func (me SqlSessionStore) Save(session *model.Session) StoreChannel + func (me SqlSessionStore) UpdateLastActivityAt(sessionId string, time int64) StoreChannel + func (me SqlSessionStore) UpdateRoles(userId, roles string) StoreChannel + func (me SqlSessionStore) UpgradeSchemaIfNeeded() + type SqlStore struct + func (ss SqlStore) Audit() AuditStore + func (ss SqlStore) Channel() ChannelStore + func (ss SqlStore) Close() + func (ss SqlStore) CreateColumnIfNotExists(tableName string, columnName string, mySqlColType string, ...) bool + func (ss SqlStore) CreateFullTextIndexIfNotExists(indexName string, tableName string, columnName string) + func (ss SqlStore) CreateIndexIfNotExists(indexName string, tableName string, columnName string) + func (ss SqlStore) DoesColumnExist(tableName string, columnName string) bool + func (ss SqlStore) DoesTableExist(tableName string) bool + func (ss SqlStore) GetAllConns() []*gorp.DbMap + func (ss SqlStore) GetColumnDataType(tableName, columnName string) string + func (ss SqlStore) GetCurrentSchemaVersion() string + func (ss SqlStore) GetMaster() *gorp.DbMap + func (ss SqlStore) GetReplica() *gorp.DbMap + func (ss SqlStore) MarkSystemRanUnitTests() + func (ss SqlStore) OAuth() OAuthStore + func (ss SqlStore) Post() PostStore + func (ss SqlStore) Preference() PreferenceStore + func (ss SqlStore) RemoveColumnIfExists(tableName string, columnName string) bool + func (ss SqlStore) RenameColumnIfExists(tableName string, oldColumnName string, newColumnName string, colType string) bool + func (ss SqlStore) Session() SessionStore + func (ss SqlStore) System() SystemStore + func (ss SqlStore) Team() TeamStore + func (ss SqlStore) User() UserStore + func (ss SqlStore) Webhook() WebhookStore + type SqlSystemStore struct + func (s SqlSystemStore) CreateIndexesIfNotExists() + func (s SqlSystemStore) Get() StoreChannel + func (s SqlSystemStore) Save(system *model.System) StoreChannel + func (s SqlSystemStore) Update(system *model.System) StoreChannel + func (s SqlSystemStore) UpgradeSchemaIfNeeded() + type SqlTeamStore struct + func (s SqlTeamStore) CreateIndexesIfNotExists() + func (s SqlTeamStore) Get(id string) StoreChannel + func (s SqlTeamStore) GetAll() StoreChannel + func (s SqlTeamStore) GetAllTeamListing() StoreChannel + func (s SqlTeamStore) GetByInviteId(inviteId string) StoreChannel + func (s SqlTeamStore) GetByName(name string) StoreChannel + func (s SqlTeamStore) GetTeamsForEmail(email string) StoreChannel + func (s SqlTeamStore) PermanentDelete(teamId string) StoreChannel + func (s SqlTeamStore) Save(team *model.Team) StoreChannel + func (s SqlTeamStore) Update(team *model.Team) StoreChannel + func (s SqlTeamStore) UpdateDisplayName(name string, teamId string) StoreChannel + func (s SqlTeamStore) UpgradeSchemaIfNeeded() + type SqlUserStore struct + func (s SqlUserStore) GetEtagForProfiles(teamId string) StoreChannel + func (us SqlUserStore) CreateIndexesIfNotExists() + func (us SqlUserStore) Get(id string) StoreChannel + func (us SqlUserStore) GetByAuth(teamId string, authData string, authService string) StoreChannel + func (us SqlUserStore) GetByEmail(teamId string, email string) StoreChannel + func (us SqlUserStore) GetByUsername(teamId string, username string) StoreChannel + func (us SqlUserStore) GetForExport(teamId string) StoreChannel + func (us SqlUserStore) GetProfiles(teamId string) StoreChannel + func (us SqlUserStore) GetSystemAdminProfiles() StoreChannel + func (us SqlUserStore) GetTotalActiveUsersCount() StoreChannel + func (us SqlUserStore) GetTotalUsersCount() StoreChannel + func (us SqlUserStore) PermanentDelete(userId string) StoreChannel + func (us SqlUserStore) Save(user *model.User) StoreChannel + func (us SqlUserStore) Update(user *model.User, allowActiveUpdate bool) StoreChannel + func (us SqlUserStore) UpdateAuthData(userId, service, authData string) StoreChannel + func (us SqlUserStore) UpdateFailedPasswordAttempts(userId string, attempts int) StoreChannel + func (us SqlUserStore) UpdateLastActivityAt(userId string, time int64) StoreChannel + func (us SqlUserStore) UpdateLastPictureUpdate(userId string) StoreChannel + func (us SqlUserStore) UpdateLastPingAt(userId string, time int64) StoreChannel + func (us SqlUserStore) UpdatePassword(userId, hashedPassword string) StoreChannel + func (us SqlUserStore) UpdateUserAndSessionActivity(userId string, sessionId string, time int64) StoreChannel + func (us SqlUserStore) UpgradeSchemaIfNeeded() + func (us SqlUserStore) VerifyEmail(userId string) StoreChannel + type SqlWebhookStore struct + func (s SqlWebhookStore) CreateIndexesIfNotExists() + func (s SqlWebhookStore) DeleteIncoming(webhookId string, time int64) StoreChannel + func (s SqlWebhookStore) DeleteOutgoing(webhookId string, time int64) StoreChannel + func (s SqlWebhookStore) GetIncoming(id string) StoreChannel + func (s SqlWebhookStore) GetIncomingByChannel(channelId string) StoreChannel + func (s SqlWebhookStore) GetIncomingByUser(userId string) StoreChannel + func (s SqlWebhookStore) GetOutgoing(id string) StoreChannel + func (s SqlWebhookStore) GetOutgoingByChannel(channelId string) StoreChannel + func (s SqlWebhookStore) GetOutgoingByCreator(userId string) StoreChannel + func (s SqlWebhookStore) GetOutgoingByTeam(teamId string) StoreChannel + func (s SqlWebhookStore) PermanentDeleteIncomingByUser(userId string) StoreChannel + func (s SqlWebhookStore) PermanentDeleteOutgoingByUser(userId string) StoreChannel + func (s SqlWebhookStore) SaveIncoming(webhook *model.IncomingWebhook) StoreChannel + func (s SqlWebhookStore) SaveOutgoing(webhook *model.OutgoingWebhook) StoreChannel + func (s SqlWebhookStore) UpdateOutgoing(hook *model.OutgoingWebhook) StoreChannel + func (s SqlWebhookStore) UpgradeSchemaIfNeeded() + type Store interface + Audit func() AuditStore + Channel func() ChannelStore + Close func() + MarkSystemRanUnitTests func() + OAuth func() OAuthStore + Post func() PostStore + Preference func() PreferenceStore + Session func() SessionStore + System func() SystemStore + Team func() TeamStore + User func() UserStore + Webhook func() WebhookStore + func NewSqlStore() Store + type StoreChannel chan StoreResult + type StoreResult struct + Data interface{} + Err *model.AppError + type SystemStore interface + Get func() StoreChannel + Save func(system *model.System) StoreChannel + Update func(system *model.System) StoreChannel + func NewSqlSystemStore(sqlStore *SqlStore) SystemStore + type TeamStore interface + Get func(id string) StoreChannel + GetAll func() StoreChannel + GetAllTeamListing func() StoreChannel + GetByInviteId func(inviteId string) StoreChannel + GetByName func(name string) StoreChannel + GetTeamsForEmail func(domain string) StoreChannel + PermanentDelete func(teamId string) StoreChannel + Save func(team *model.Team) StoreChannel + Update func(team *model.Team) StoreChannel + UpdateDisplayName func(name string, teamId string) StoreChannel + func NewSqlTeamStore(sqlStore *SqlStore) TeamStore + type UserStore interface + Get func(id string) StoreChannel + GetByAuth func(teamId string, authData string, authService string) StoreChannel + GetByEmail func(teamId string, email string) StoreChannel + GetByUsername func(teamId string, username string) StoreChannel + GetEtagForProfiles func(teamId string) StoreChannel + GetForExport func(teamId string) StoreChannel + GetProfiles func(teamId string) StoreChannel + GetSystemAdminProfiles func() StoreChannel + GetTotalActiveUsersCount func() StoreChannel + GetTotalUsersCount func() StoreChannel + PermanentDelete func(userId string) StoreChannel + Save func(user *model.User) StoreChannel + Update func(user *model.User, allowRoleUpdate bool) StoreChannel + UpdateAuthData func(userId, service, authData string) StoreChannel + UpdateFailedPasswordAttempts func(userId string, attempts int) StoreChannel + UpdateLastActivityAt func(userId string, time int64) StoreChannel + UpdateLastPictureUpdate func(userId string) StoreChannel + UpdateLastPingAt func(userId string, time int64) StoreChannel + UpdatePassword func(userId, newPassword string) StoreChannel + UpdateUserAndSessionActivity func(userId string, sessionId string, time int64) StoreChannel + VerifyEmail func(userId string) StoreChannel + func NewSqlUserStore(sqlStore *SqlStore) UserStore + type WebhookStore interface + DeleteIncoming func(webhookId string, time int64) StoreChannel + DeleteOutgoing func(webhookId string, time int64) StoreChannel + GetIncoming func(id string) StoreChannel + GetIncomingByChannel func(channelId string) StoreChannel + GetIncomingByUser func(userId string) StoreChannel + GetOutgoing func(id string) StoreChannel + GetOutgoingByChannel func(channelId string) StoreChannel + GetOutgoingByCreator func(userId string) StoreChannel + GetOutgoingByTeam func(teamId string) StoreChannel + PermanentDeleteIncomingByUser func(userId string) StoreChannel + PermanentDeleteOutgoingByUser func(userId string) StoreChannel + SaveIncoming func(webhook *model.IncomingWebhook) StoreChannel + SaveOutgoing func(webhook *model.OutgoingWebhook) StoreChannel + UpdateOutgoing func(hook *model.OutgoingWebhook) StoreChannel + func NewSqlWebhookStore(sqlStore *SqlStore) WebhookStore Incompatible versions in this module v4.10.10+incompatible Jun 14, 2019