Documentation
¶
Index ¶
- Constants
- func CleanupSqlSettings(settings *model.SqlSettings)
- func MakeEmail() string
- func MakeSqlSettings(driver string) *model.SqlSettings
- func MySQLSettings() *model.SqlSettings
- func PostgreSQLSettings() *model.SqlSettings
- func TestAuditStore(t *testing.T, ss store.Store)
- func TestBotStore(t *testing.T, ss store.Store, s SqlStore)
- func TestChannelMemberHistoryStore(t *testing.T, ss store.Store)
- func TestChannelStore(t *testing.T, ss store.Store, s SqlStore)
- func TestChannelStoreCategories(t *testing.T, ss store.Store, s SqlStore)
- func TestClusterDiscoveryStore(t *testing.T, ss store.Store)
- func TestCommandStore(t *testing.T, ss store.Store)
- func TestCommandWebhookStore(t *testing.T, ss store.Store)
- func TestComplianceStore(t *testing.T, ss store.Store)
- func TestEmojiStore(t *testing.T, ss store.Store)
- func TestFileInfoStore(t *testing.T, ss store.Store)
- func TestGroupStore(t *testing.T, ss store.Store)
- func TestJobStore(t *testing.T, ss store.Store)
- func TestLicenseStore(t *testing.T, ss store.Store)
- func TestLinkMetadataStore(t *testing.T, ss store.Store)
- func TestOAuthStore(t *testing.T, ss store.Store)
- func TestPluginStore(t *testing.T, ss store.Store, s SqlStore)
- func TestPostStore(t *testing.T, ss store.Store, s SqlStore)
- func TestPreferenceStore(t *testing.T, ss store.Store)
- func TestProductNoticesStore(t *testing.T, ss store.Store)
- func TestReactionStore(t *testing.T, ss store.Store)
- func TestRoleStore(t *testing.T, ss store.Store, s SqlStore)
- func TestSchemeStore(t *testing.T, ss store.Store)
- func TestSessionStore(t *testing.T, ss store.Store)
- func TestStatusStore(t *testing.T, ss store.Store)
- func TestSystemStore(t *testing.T, ss store.Store)
- func TestTeamStore(t *testing.T, ss store.Store)
- func TestTermsOfServiceStore(t *testing.T, ss store.Store)
- func TestThreadStore(t *testing.T, ss store.Store, s SqlStore)
- func TestUploadSessionStore(t *testing.T, ss store.Store)
- func TestUserAccessTokenStore(t *testing.T, ss store.Store)
- func TestUserStore(t *testing.T, ss store.Store, s SqlStore)
- func TestUserTermsOfServiceStore(t *testing.T, ss store.Store)
- func TestWebhookStore(t *testing.T, ss store.Store)
- func TestWebhookStoreGetIncomingByTeamByUser(t *testing.T, ss store.Store)
- type ByChannelDisplayName
- type ByUserId
- type SqlStore
- type Store
- func (s *Store) AssertExpectations(t mock.TestingT) bool
- func (s *Store) Audit() store.AuditStore
- func (s *Store) Bot() store.BotStore
- func (s *Store) Channel() store.ChannelStore
- func (s *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore
- func (s *Store) CheckIntegrity() <-chan model.IntegrityCheckResult
- func (s *Store) Close()
- func (s *Store) ClusterDiscovery() store.ClusterDiscoveryStore
- func (s *Store) Command() store.CommandStore
- func (s *Store) CommandWebhook() store.CommandWebhookStore
- func (s *Store) Compliance() store.ComplianceStore
- func (s *Store) Context() context.Context
- func (s *Store) DropAllTables()
- func (s *Store) Emoji() store.EmojiStore
- func (s *Store) FileInfo() store.FileInfoStore
- func (s *Store) GetCurrentSchemaVersion() string
- func (s *Store) GetDbVersion() (string, error)
- func (s *Store) Group() store.GroupStore
- func (s *Store) Job() store.JobStore
- func (s *Store) License() store.LicenseStore
- func (s *Store) LinkMetadata() store.LinkMetadataStore
- func (s *Store) LockToMaster()
- func (s *Store) MarkSystemRanUnitTests()
- func (s *Store) OAuth() store.OAuthStore
- func (s *Store) Plugin() store.PluginStore
- func (s *Store) Post() store.PostStore
- func (s *Store) Preference() store.PreferenceStore
- func (s *Store) ProductNotices() store.ProductNoticesStore
- func (s *Store) Reaction() store.ReactionStore
- func (s *Store) RecycleDBConnections(time.Duration)
- func (s *Store) Role() store.RoleStore
- func (s *Store) Scheme() store.SchemeStore
- func (s *Store) Session() store.SessionStore
- func (s *Store) SetContext(context context.Context)
- func (s *Store) Status() store.StatusStore
- func (s *Store) System() store.SystemStore
- func (s *Store) Team() store.TeamStore
- func (s *Store) TermsOfService() store.TermsOfServiceStore
- func (s *Store) Thread() store.ThreadStore
- func (s *Store) Token() store.TokenStore
- func (s *Store) TotalMasterDbConnections() int
- func (s *Store) TotalReadDbConnections() int
- func (s *Store) TotalSearchDbConnections() int
- func (s *Store) UnlockFromMaster()
- func (s *Store) UploadSession() store.UploadSessionStore
- func (s *Store) User() store.UserStore
- func (s *Store) UserAccessToken() store.UserAccessTokenStore
- func (s *Store) UserTermsOfService() store.UserTermsOfServiceStore
- func (s *Store) Webhook() store.WebhookStore
Constants ¶
View Source
const ( DAY_MILLISECONDS = 24 * 60 * 60 * 1000 MONTH_MILLISECONDS = 31 * DAY_MILLISECONDS )
View Source
const (
TenMinutes = 600000
)
Variables ¶
This section is empty.
Functions ¶
func CleanupSqlSettings ¶
func CleanupSqlSettings(settings *model.SqlSettings)
func MakeSqlSettings ¶
func MakeSqlSettings(driver string) *model.SqlSettings
MakeSqlSettings creates a randomly named database and returns the corresponding sql settings
func MySQLSettings ¶
func MySQLSettings() *model.SqlSettings
MySQLSettings returns the database settings to connect to the MySQL unittesting database. The database name is generated randomly and must be created before use.
func PostgreSQLSettings ¶
func PostgreSQLSettings() *model.SqlSettings
PostgresSQLSettings returns the database settings to connect to the PostgreSQL unittesting database. The database name is generated randomly and must be created before use.
Types ¶
type ByChannelDisplayName ¶
type ByChannelDisplayName model.ChannelList
func (ByChannelDisplayName) Len ¶
func (s ByChannelDisplayName) Len() int
func (ByChannelDisplayName) Less ¶
func (s ByChannelDisplayName) Less(i, j int) bool
func (ByChannelDisplayName) Swap ¶
func (s ByChannelDisplayName) Swap(i, j int)
type Store ¶
type Store struct {
TeamStore mocks.TeamStore
ChannelStore mocks.ChannelStore
PostStore mocks.PostStore
UserStore mocks.UserStore
BotStore mocks.BotStore
AuditStore mocks.AuditStore
ClusterDiscoveryStore mocks.ClusterDiscoveryStore
ComplianceStore mocks.ComplianceStore
SessionStore mocks.SessionStore
OAuthStore mocks.OAuthStore
SystemStore mocks.SystemStore
WebhookStore mocks.WebhookStore
CommandStore mocks.CommandStore
CommandWebhookStore mocks.CommandWebhookStore
PreferenceStore mocks.PreferenceStore
LicenseStore mocks.LicenseStore
TokenStore mocks.TokenStore
EmojiStore mocks.EmojiStore
ThreadStore mocks.ThreadStore
StatusStore mocks.StatusStore
FileInfoStore mocks.FileInfoStore
UploadSessionStore mocks.UploadSessionStore
ReactionStore mocks.ReactionStore
JobStore mocks.JobStore
UserAccessTokenStore mocks.UserAccessTokenStore
PluginStore mocks.PluginStore
ChannelMemberHistoryStore mocks.ChannelMemberHistoryStore
RoleStore mocks.RoleStore
SchemeStore mocks.SchemeStore
TermsOfServiceStore mocks.TermsOfServiceStore
GroupStore mocks.GroupStore
UserTermsOfServiceStore mocks.UserTermsOfServiceStore
LinkMetadataStore mocks.LinkMetadataStore
ProductNoticesStore mocks.ProductNoticesStore
// contains filtered or unexported fields
}
Store can be used to provide mock stores for testing.
func (*Store) Audit ¶
func (s *Store) Audit() store.AuditStore
func (*Store) Channel ¶
func (s *Store) Channel() store.ChannelStore
func (*Store) ChannelMemberHistory ¶
func (s *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore
func (*Store) CheckIntegrity ¶
func (s *Store) CheckIntegrity() <-chan model.IntegrityCheckResult
func (*Store) ClusterDiscovery ¶
func (s *Store) ClusterDiscovery() store.ClusterDiscoveryStore
func (*Store) Command ¶
func (s *Store) Command() store.CommandStore
func (*Store) CommandWebhook ¶
func (s *Store) CommandWebhook() store.CommandWebhookStore
func (*Store) Compliance ¶
func (s *Store) Compliance() store.ComplianceStore
func (*Store) DropAllTables ¶
func (s *Store) DropAllTables()
func (*Store) Emoji ¶
func (s *Store) Emoji() store.EmojiStore
func (*Store) FileInfo ¶
func (s *Store) FileInfo() store.FileInfoStore
func (*Store) GetCurrentSchemaVersion ¶
func (*Store) GetDbVersion ¶
func (*Store) Group ¶
func (s *Store) Group() store.GroupStore
func (*Store) License ¶
func (s *Store) License() store.LicenseStore
func (*Store) LinkMetadata ¶
func (s *Store) LinkMetadata() store.LinkMetadataStore
func (*Store) LockToMaster ¶
func (s *Store) LockToMaster()
func (*Store) MarkSystemRanUnitTests ¶
func (s *Store) MarkSystemRanUnitTests()
func (*Store) OAuth ¶
func (s *Store) OAuth() store.OAuthStore
func (*Store) Plugin ¶
func (s *Store) Plugin() store.PluginStore
func (*Store) Preference ¶
func (s *Store) Preference() store.PreferenceStore
func (*Store) ProductNotices ¶
func (s *Store) ProductNotices() store.ProductNoticesStore
func (*Store) Reaction ¶
func (s *Store) Reaction() store.ReactionStore
func (*Store) RecycleDBConnections ¶
func (*Store) Scheme ¶
func (s *Store) Scheme() store.SchemeStore
func (*Store) Session ¶
func (s *Store) Session() store.SessionStore
func (*Store) SetContext ¶
func (*Store) Status ¶
func (s *Store) Status() store.StatusStore
func (*Store) System ¶
func (s *Store) System() store.SystemStore
func (*Store) TermsOfService ¶
func (s *Store) TermsOfService() store.TermsOfServiceStore
func (*Store) Thread ¶
func (s *Store) Thread() store.ThreadStore
func (*Store) Token ¶
func (s *Store) Token() store.TokenStore
func (*Store) TotalMasterDbConnections ¶
func (*Store) TotalReadDbConnections ¶
func (*Store) TotalSearchDbConnections ¶
func (*Store) UnlockFromMaster ¶
func (s *Store) UnlockFromMaster()
func (*Store) UploadSession ¶
func (s *Store) UploadSession() store.UploadSessionStore
func (*Store) UserAccessToken ¶
func (s *Store) UserAccessToken() store.UserAccessTokenStore
func (*Store) UserTermsOfService ¶
func (s *Store) UserTermsOfService() store.UserTermsOfServiceStore
func (*Store) Webhook ¶
func (s *Store) Webhook() store.WebhookStore
Source Files
¶
- audit_store.go
- bot_store.go
- channel_member_history_store.go
- channel_store.go
- channel_store_categories.go
- cluster_discovery_store.go
- command_store.go
- command_webhook_store.go
- compliance_store.go
- emoji_store.go
- file_info_store.go
- group_store.go
- job_store.go
- license_store.go
- link_metadata_store.go
- oauth_store.go
- plugin_store.go
- post_store.go
- preference_store.go
- product_notices_store.go
- reaction_store.go
- role_store.go
- scheme_store.go
- session_store.go
- settings.go
- status_store.go
- store.go
- storetestlib.go
- system_store.go
- team_store.go
- terms_of_service_store.go
- thread_store.go
- upload_session_store.go
- user_access_token_store.go
- user_store.go
- user_terms_of_service.go
- webhook_store.go
Click to show internal directories.
Click to hide internal directories.