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/api.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin/api.go') diff --git a/plugin/api.go b/plugin/api.go index d7443d813..8d27bc794 100644 --- a/plugin/api.go +++ b/plugin/api.go @@ -7,8 +7,10 @@ import ( "github.com/mattermost/mattermost-server/model" ) -// API implementations can be used to retrieve data or perform actions on behalf of the plugin. Most -// methods have direct counterparts in the REST API and very similar behavior. +// The API can be used to retrieve data or perform actions on behalf of the plugin. Most methods +// have direct counterparts in the REST API and very similar behavior. +// +// Plugins can obtain access to the API by implementing the OnActivate hook. type API interface { // LoadPluginConfiguration loads the plugin's configuration. dest should be a pointer to a // struct that the configuration JSON can be unmarshalled to. -- cgit v1.2.3-1-g7c22