MCPcopy Create free account
hub / github.com/gotify/server / ValidateAndSetConfig

Method ValidateAndSetConfig

plugin/example/echo/echo.go:57–60  ·  view source on GitHub ↗

ValidateAndSetConfig implements plugin.Configurer

(config interface{})

Source from the content-addressed store, hash-verified

55
56// ValidateAndSetConfig implements plugin.Configurer
57func (c *EchoPlugin) ValidateAndSetConfig(config interface{}) error {
58 c.config = config.(*Config)
59 return nil
60}
61
62// Enable enables the plugin.
63func (c *EchoPlugin) Enable() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected