summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-11-02 16:23:41 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-11-02 17:23:41 -0400
commitfed5324ce505c3725472af23757cd6659bb7139c (patch)
treec2ad489c627d99e30ed55e25a9f0058a7068a13a /plugin/api.go
parent8e81ded9ba425971bafdb8ad6bbe4b23c7420335 (diff)
downloadchat-fed5324ce505c3725472af23757cd6659bb7139c.tar.gz
chat-fed5324ce505c3725472af23757cd6659bb7139c.tar.bz2
chat-fed5324ce505c3725472af23757cd6659bb7139c.zip
Add some plugin docs (#7757)
* add some plugin docs * one more comment * spacing * example simplification
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index e9a2892fc..d7443d813 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -7,6 +7,8 @@ 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.
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.