Permalink
Find file Copy path
c1397f4 Oct 10, 2018
2 contributors

Users who have contributed to this file

@lieut-data @hanzei
27 lines (19 sloc) 594 Bytes
package main
import (
"fmt"
"net/http"
"sync"
"github.com/mattermost/mattermost-server/plugin"
)
type Plugin struct {
plugin.MattermostPlugin
// configurationLock synchronizes access to the configuration.
configurationLock sync.RWMutex
// configuration is the active plugin configuration. Consult getConfiguration and
// setConfiguration for usage.
configuration *configuration
}
func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, world!")
}
// See https://developers.mattermost.com/extend/plugins/server/reference/