summaryrefslogtreecommitdiffstats
path: root/plugin/example_hello_world_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2018-06-25 12:33:13 -0700
committerGitHub <noreply@github.com>2018-06-25 12:33:13 -0700
commit1e5c432e1029601a664454388ae366ef69618d62 (patch)
treecb9e8bfb66640ac3b29c934bb2c3202d25aeb368 /plugin/example_hello_world_test.go
parentecefa6cdd1e7376046bbec82c1b47f7756fea646 (diff)
downloadchat-1e5c432e1029601a664454388ae366ef69618d62.tar.gz
chat-1e5c432e1029601a664454388ae366ef69618d62.tar.bz2
chat-1e5c432e1029601a664454388ae366ef69618d62.zip
MM-10702 Moving plugins to use hashicorp go-plugin. (#8978)
* Moving plugins to use hashicorp go-plugin. * Tweaks from feedback.
Diffstat (limited to 'plugin/example_hello_world_test.go')
-rw-r--r--plugin/example_hello_world_test.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/plugin/example_hello_world_test.go b/plugin/example_hello_world_test.go
deleted file mode 100644
index 5dea28823..000000000
--- a/plugin/example_hello_world_test.go
+++ /dev/null
@@ -1,20 +0,0 @@
-package plugin_test
-
-import (
- "fmt"
- "net/http"
-
- "github.com/mattermost/mattermost-server/plugin/rpcplugin"
-)
-
-type HelloWorldPlugin struct{}
-
-func (p *HelloWorldPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request) {
- fmt.Fprintf(w, "Hello, world!")
-}
-
-// This example demonstrates a plugin that handles HTTP requests which respond by greeting the
-// world.
-func Example_helloWorld() {
- rpcplugin.Main(&HelloWorldPlugin{})
-}