Documentation
¶
Index ¶
Constants ¶
View Source
const MySQLCharset = "DEFAULT CHARACTER SET utf8mb4"
Variables ¶
This section is empty.
Functions ¶
func LatestVersion ¶
func NewWikiDocStore ¶
func NewWikiDocStore(pluginAPI PluginAPIClient, log bot.Logger, sqlStore *SQLStore) app.WikiDocStore
NewWikiDocStore creates a new store for wikiDoc service.
Types ¶
type ConfigurationAPI ¶
type KVAPI ¶
KVAPI is the key value store interface for the pluginkv stores. It is implemented by mattermost-plugin-api/Client.KV, or by the mock KVAPI.
type PluginAPIClient ¶
type PluginAPIClient struct { Store StoreAPI KV KVAPI Configuration ConfigurationAPI }
PluginAPIClient is the struct combining the interfaces defined above, which is everything from pluginapi that the store currently uses.
func NewClient ¶
func NewClient(api *pluginapi.Client) PluginAPIClient
NewClient receives a pluginapi.Client and returns the PluginAPIClient, which is what the store will use to access pluginapi.Client.
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
func New ¶
func New(pluginAPI PluginAPIClient, log bot.Logger) (*SQLStore, error)
New constructs a new instance of SQLStore.
func (*SQLStore) GetCurrentVersion ¶
func (*SQLStore) RunMigrations ¶
RunMigrations will run the migrations (if any). The caller should hold a cluster mutex if there is a danger of this being run on multiple servers at once.
Click to show internal directories.
Click to hide internal directories.