Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anonymous ¶
type Anonymous interface { PluginAPI StorePublicKey(userID string, publicKey crypto.PublicKey) error GetPublicKey(userID string) (crypto.PublicKey, error) IsEncryptionEnabledForChannel(channelID, userID string) bool SetEncryptionStatusForChannel(channelID, userID string, status bool) error UnverifiedPlugins() []PluginIdentifier StartPluginChecks() error }
Anonymous API for business logic
type Dependencies ¶
Dependencies contains all API dependencies
type PluginAPI ¶
type PluginAPI interface { SendEphemeralPost(userID string, post *model.Post) *model.Post GetActivePlugins() ([]PluginIdentifier, error) GetConfiguration() *config.Config GetUsersInChannel(channelID, sortBy string, page, perPage int) ([]*model.User, error) PublishWebSocketEvent(event string, payload map[string]interface{}, broadcast *model.WebsocketBroadcast) utils_store.API }
PluginAPI API form mattermost plugin
type PluginIdentifier ¶
PluginIdentifier unique plugin identifier
Click to show internal directories.
Click to hide internal directories.