diff options
Diffstat (limited to 'plugin/example_hello_world_test.go')
-rw-r--r-- | plugin/example_hello_world_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/example_hello_world_test.go b/plugin/example_hello_world_test.go index 5dea28823..955c6df3c 100644 --- a/plugin/example_hello_world_test.go +++ b/plugin/example_hello_world_test.go @@ -4,17 +4,17 @@ import ( "fmt" "net/http" - "github.com/mattermost/mattermost-server/plugin/rpcplugin" + "github.com/mattermost/mattermost-server/plugin" ) type HelloWorldPlugin struct{} -func (p *HelloWorldPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request) { +func (p *HelloWorldPlugin) ServeHTTP(c *plugin.Context, 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{}) + plugin.ClientMain(&HelloWorldPlugin{}) } |