summaryrefslogtreecommitdiffstats
path: root/plugin/supervisor.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/supervisor.go')
-rw-r--r--plugin/supervisor.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/supervisor.go b/plugin/supervisor.go
new file mode 100644
index 000000000..5ddf5f169
--- /dev/null
+++ b/plugin/supervisor.go
@@ -0,0 +1,8 @@
+package plugin
+
+// Supervisor provides the interface for an object that controls the execution of a plugin.
+type Supervisor interface {
+ Start() error
+ Stop() error
+ Hooks() Hooks
+}