summaryrefslogtreecommitdiffstats
path: root/plugin/supervisor.go
blob: f20df7040c1c9a47b5b3e5546d0d6e42ec433ab5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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
	Wait() error
	Stop() error
	Hooks() Hooks
}