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

Method Disable

plugin/example/clock/main.go:41–47  ·  view source on GitHub ↗

Disable implements plugin.Plugin

()

Source from the content-addressed store, hash-verified

39
40// Disable implements plugin.Plugin
41func (c *Plugin) Disable() error {
42 if c.cronHandler != nil {
43 c.cronHandler.Stop()
44 }
45 c.enabled = false
46 return nil
47}
48
49// SetMessageHandler implements plugin.Messenger.
50func (c *Plugin) SetMessageHandler(h plugin.MessageHandler) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected