mirror of
https://github.com/mattermost/mattermost.git
synced 2026-02-03 20:40:00 -05:00
22 lines
351 B
Go
22 lines
351 B
Go
|
|
package pluginapi_test
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/mattermost/mattermost/server/public/pluginapi"
|
||
|
|
|
||
|
|
"github.com/mattermost/mattermost/server/public/plugin"
|
||
|
|
)
|
||
|
|
|
||
|
|
type Plugin struct {
|
||
|
|
plugin.MattermostPlugin
|
||
|
|
client *pluginapi.Client
|
||
|
|
}
|
||
|
|
|
||
|
|
func (p *Plugin) OnActivate() error {
|
||
|
|
p.client = pluginapi.NewClient(p.API, p.Driver)
|
||
|
|
|
||
|
|
return nil
|
||
|
|
}
|
||
|
|
|
||
|
|
func Example() {
|
||
|
|
}
|