plugin

package
v0.0.0-...-d1f9358 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	anonymous.PluginAPI
	OnActivate() error
	OnConfigurationChange() error
	ServeHTTP(pc *mattermostPlugin.Context, w http.ResponseWriter, r *http.Request)
}

Plugin is interface expected by the Mattermost server to communicate between the server and plugin processes.

func NewWithAnonymous

func NewWithAnonymous(an anonymous.Anonymous, conf *config.Config) Plugin

NewWithAnonymous creates new plugin object from anonymous

func NewWithConfig

func NewWithConfig(conf *config.Config) Plugin

NewWithConfig creates new plugin object from configuration

func NewWithStore

func NewWithStore(store store.Store, conf *config.Config) Plugin

NewWithStore creates new plugin object from configuration and store object

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL