summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorHanzei <16541325+hanzei@users.noreply.github.com>2018-09-27 18:56:47 +0200
committerJesse Hallam <jesse.hallam@gmail.com>2018-09-27 12:56:47 -0400
commit15d9f10f431d6091202c262df0aec30923ade5b7 (patch)
tree5b069cd344dffff06f5f08b089d7a393baddc0a2 /plugin/api.go
parentd937f41233f735b8d4f3b73a0fe87668d66ea7f9 (diff)
downloadchat-15d9f10f431d6091202c262df0aec30923ade5b7.tar.gz
chat-15d9f10f431d6091202c262df0aec30923ade5b7.tar.bz2
chat-15d9f10f431d6091202c262df0aec30923ade5b7.zip
Add plugin API methode to return the current server version (#9429)
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 2f8c6dcc5..c4230860f 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -34,6 +34,9 @@ type API interface {
// SaveConfig sets the given config and persists the changes
SaveConfig(config *model.Config) *model.AppError
+ // GetServerVersion return the current Mattermost server version
+ GetServerVersion() string
+
// CreateUser creates a user.
CreateUser(user *model.User) (*model.User, *model.AppError)