MCPcopy
hub / github.com/gotify/server / ReturnErrorOnDisableForUser

Function ReturnErrorOnDisableForUser

plugin/testing/mock/mock.go:72–74  ·  view source on GitHub ↗

ReturnErrorOnDisableForUser registers a uid which will throw an error on disabling.

(uid uint, err error)

Source from the content-addressed store, hash-verified

70
71// ReturnErrorOnDisableForUser registers a uid which will throw an error on disabling.
72func ReturnErrorOnDisableForUser(uid uint, err error) {
73 disableFailUsers[uid] = err
74}
75
76// Enable implements compat.PluginInstance
77func (c *PluginInstance) Enable() error {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…