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

Method ValidateAndSetConfig

plugin/testing/mock/mock.go:154–160  ·  view source on GitHub ↗

ValidateAndSetConfig implements compat.Configuror

(config interface{})

Source from the content-addressed store, hash-verified

152
153// ValidateAndSetConfig implements compat.Configuror
154func (c *PluginInstance) ValidateAndSetConfig(config interface{}) error {
155 if (config.(*PluginConfig)).IsNotValid {
156 return errors.New("conf is not valid")
157 }
158 c.Config = config.(*PluginConfig)
159 return nil
160}
161
162// GetDisplay implements compat.Displayer
163func (c *PluginInstance) GetDisplay(url *url.URL) string {

Callers

nothing calls this directly

Implementers 2

PluginV1Instanceplugin/compat/v1.go
PluginInstanceplugin/testing/mock/mock.go

Calls

no outgoing calls

Tested by

no test coverage detected