This repository has been archived on 2024-11-03. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mattermost-plugin-attachmen.../server/plugin.go
Michael Kochell 376ea7e1f5
Disable unused-parameter golangci check (#191)
* add lint rule exclusion for unused-parameter

* re-introduce the unused parameters in plugin.go
2023-11-20 10:57:33 -05:00

28 lines
810 B
Go

package main
import (
"fmt"
"net/http"
"sync"
"github.com/mattermost/mattermost/server/public/plugin"
)
// Plugin implements the interface expected by the Mattermost server to communicate between the server and plugin processes.
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
}
// ServeHTTP demonstrates a plugin that handles HTTP requests by greeting the world.
func (p *Plugin) ServeHTTP(c *plugin.Context, w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, "Hello, world!")
}
// See https://developers.mattermost.com/extend/plugins/server/reference/