Documentation
¶
Index ¶
- func CleanupSqlSettings(settings *model.SqlSettings)
- func MakeEmail() string
- func MakeSqlSettings(driver string) *model.SqlSettings
- func MySQLSettings() *model.SqlSettings
- func NewStoreChannel(result store.StoreResult) store.StoreChannel
- func PostgreSQLSettings() *model.SqlSettings
- func TestAuditStore(t *testing.T, ss store.Store)
- func TestBotStore(t *testing.T, ss store.Store)
- func TestChannelMemberHistoryStore(t *testing.T, ss store.Store)
- func TestChannelStore(t *testing.T, ss store.Store, s SqlSupplier)
- 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)
- func TestPostStore(t *testing.T, ss store.Store, s SqlSupplier)
- func TestPreferenceStore(t *testing.T, ss store.Store)
- func TestReactionStore(t *testing.T, ss store.Store)
- func TestRoleStore(t *testing.T, ss store.Store)
- 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 TestUserAccessTokenStore(t *testing.T, ss store.Store)
- func TestUserStore(t *testing.T, ss store.Store)
- func TestUserTermsOfServiceStore(t *testing.T, ss store.Store)
- func TestWebhookStore(t *testing.T, ss store.Store)
- type ByChannelDisplayName
- type ByUserId
- type SqlSupplier
- 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) 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) DropAllTables()
- func (s *Store) Emoji() store.EmojiStore
- func (s *Store) FileInfo() store.FileInfoStore
- 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) Reaction() store.ReactionStore
- func (s *Store) Role() store.RoleStore
- func (s *Store) Scheme() store.SchemeStore
- func (s *Store) Session() store.SessionStore
- 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) 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) User() store.UserStore
- func (s *Store) UserAccessToken() store.UserAccessTokenStore
- func (s *Store) UserTermsOfService() store.UserTermsOfServiceStore
- func (s *Store) Webhook() store.WebhookStore
Constants ¶
This section is empty.
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 NewStoreChannel ¶
func NewStoreChannel(result store.StoreResult) store.StoreChannel
NewStoreChannel returns a channel that will receive the given result.
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.
func TestChannelStore ¶
func TestChannelStore(t *testing.T, ss store.Store, s SqlSupplier)
func TestPostStore ¶
func TestPostStore(t *testing.T, ss store.Store, s SqlSupplier)
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 SqlSupplier ¶
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
StatusStore mocks.StatusStore
FileInfoStore mocks.FileInfoStore
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
}
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) 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) 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) Reaction ¶
func (s *Store) Reaction() store.ReactionStore
func (*Store) Scheme ¶
func (s *Store) Scheme() store.SchemeStore
func (*Store) Session ¶
func (s *Store) Session() store.SessionStore
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) 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) 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
- cluster_discovery_store.go
- command_store.go
- command_webhook_store.go
- compliance_store.go
- emoji_store.go
- file_info_store.go
- group_supplier.go
- job_store.go
- license_store.go
- link_metadata_store.go
- oauth_store.go
- plugin_store.go
- post_store.go
- preference_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
- 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.