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

Method HasInstance

plugin/manager.go:178–181  ·  view source on GitHub ↗

HasInstance returns whether the given plugin ID has a corresponding instance.

(pluginID uint)

Source from the content-addressed store, hash-verified

176
177// HasInstance returns whether the given plugin ID has a corresponding instance.
178func (m *Manager) HasInstance(pluginID uint) bool {
179 instance, err := m.Instance(pluginID)
180 return err == nil && instance != nil
181}
182
183// RemoveUser disabled all plugins of a user when the user is disabled.
184func (m *Manager) RemoveUser(userID uint) error {

Callers 1

TestAddRemoveNewUserMethod · 0.80

Calls 1

InstanceMethod · 0.95

Tested by 1

TestAddRemoveNewUserMethod · 0.64