summaryrefslogtreecommitdiffstats
path: root/plugin/supervisor.go
blob: 76f20eaeebc7f4f7f88e088744b494bda362f4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

package plugin

// Supervisor provides the interface for an object that controls the execution of a plugin. This
// type is only relevant to the server, and isn't used by the plugins themselves.
type Supervisor interface {
	Start() error
	Stop() error
	Hooks() Hooks
}