From d2cff9b77cca87c339e65591179a2d7456a6915a Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 3 Nov 2017 11:34:44 -0500 Subject: more plugin doc updates (#7767) --- plugin/hooks.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugin/hooks.go') diff --git a/plugin/hooks.go b/plugin/hooks.go index a40ac0e5c..04d5c7c14 100644 --- a/plugin/hooks.go +++ b/plugin/hooks.go @@ -7,10 +7,10 @@ import ( "net/http" ) -// Hooks represents an object that handles events for a plugin. Methods are likely to be added over -// time, and plugins are not expected to implement all of them. Instead, plugins are expected to -// implement a subset of them and pass an instance to plugin/rpcplugin.Main, which will take over -// execution of the process and add default behaviors for missing hooks. +// Methods from the Hooks interface can be used by a plugin to respond to events. Methods are likely +// to be added over time, and plugins are not expected to implement all of them. Instead, plugins +// are expected to implement a subset of them and pass an instance to plugin/rpcplugin.Main, which +// will take over execution of the process and add default behaviors for missing hooks. type Hooks interface { // OnActivate is invoked when the plugin is activated. Implementations will usually want to save // the api argument for later use. Loading configuration for the first time is also a commonly -- cgit v1.2.3-1-g7c22