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

Method PluginInfo

plugin/manager.go:151–164  ·  view source on GitHub ↗

PluginInfo returns plugin info.

(modulePath string)

Source from the content-addressed store, hash-verified

149
150// PluginInfo returns plugin info.
151func (m *Manager) PluginInfo(modulePath string) compat.Info {
152 m.mutex.RLock()
153 defer m.mutex.RUnlock()
154
155 if p, ok := m.plugins[modulePath]; ok {
156 return p.PluginInfo()
157 }
158 fmt.Println("Could not get plugin info for", modulePath)
159 return compat.Info{
160 Name: "UNKNOWN",
161 ModulePath: modulePath,
162 Description: "Oops something went wrong",
163 }
164}
165
166// Instance returns an instance with the given ID.
167func (m *Manager) Instance(pluginID uint) (compat.PluginInstance, error) {

Callers

nothing calls this directly

Calls 1

PluginInfoMethod · 0.65

Tested by

no test coverage detected