MCPcopy Create free account
hub / github.com/bytesizedhosting/bcd / GetPlugins

Method GetPlugins

engines/rpc_methods.go:27–34  ·  view source on GitHub ↗
(nothing *PluginResponse, res *PluginResponse)

Source from the content-addressed store, hash-verified

25}
26
27func (self *CoreRPC) GetPlugins(nothing *PluginResponse, res *PluginResponse) error {
28 for _, plugin := range self.engine.plugins {
29 p := *plugin
30 res.Plugins = append(res.Plugins, &SimplePluginRes{Name: p.GetName(), Version: p.GetVersion()})
31 }
32
33 return nil
34}

Callers

nothing calls this directly

Calls 2

GetNameMethod · 0.65
GetVersionMethod · 0.65

Tested by

no test coverage detected