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

Method GetManifests

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

Source from the content-addressed store, hash-verified

9}
10
11func (self *CoreRPC) GetManifests(nothing *PluginResponse, res *ManifestResponse) error {
12 for _, plugin := range self.engine.plugins {
13 p := *plugin
14 manifest := p.GetManifest()
15 if manifest != nil {
16 res.Manifests = append(res.Manifests, manifest)
17 }
18 }
19 return nil
20}
21
22func (self *CoreRPC) GetVersion(_ int, res *string) error {
23 *res = core.VerString

Callers 1

TestGetManifestsFunction · 0.80

Calls 1

GetManifestMethod · 0.65

Tested by 1

TestGetManifestsFunction · 0.64