summaryrefslogtreecommitdiffstats
path: root/plugin/hooks.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-09-11 10:02:02 -0500
committerGitHub <noreply@github.com>2017-09-11 10:02:02 -0500
commit402491b7e52c4d836c1274976cdb387852cfd17b (patch)
treee8adcbdf0af5370f8af11e3fc1021a328c971a5d /plugin/hooks.go
parenta69bed712d53e9a7984915fffffc8a2fd1647a7a (diff)
downloadchat-402491b7e52c4d836c1274976cdb387852cfd17b.tar.gz
chat-402491b7e52c4d836c1274976cdb387852cfd17b.tar.bz2
chat-402491b7e52c4d836c1274976cdb387852cfd17b.zip
PLT-7407: Back-end plugins (#7409)
* tie back-end plugins together * fix comment typo * add tests and a bit of polish * tests and polish * add test, don't let backend executable paths escape the plugin directory
Diffstat (limited to 'plugin/hooks.go')
-rw-r--r--plugin/hooks.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/hooks.go b/plugin/hooks.go
index 336e56ccb..7f0d8ae3c 100644
--- a/plugin/hooks.go
+++ b/plugin/hooks.go
@@ -12,6 +12,9 @@ type Hooks interface {
// use the API, and the plugin will be terminated shortly after this invocation.
OnDeactivate() error
+ // OnConfigurationChange is invoked when configuration changes may have been made.
+ OnConfigurationChange() error
+
// ServeHTTP allows the plugin to implement the http.Handler interface. Requests destined for
// the /plugins/{id} path will be routed to the plugin.
//