summaryrefslogtreecommitdiffstats
path: root/plugin/supervisor.go
blob: 6cb7445f7de8712ab99bc8045e2e3d5e79792b7b (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(API) error
	Stop() error
	Hooks() Hooks
}