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

Method Activate

engines/rpc_engine.go:102–113  ·  view source on GitHub ↗
(p plugins.Plugin)

Source from the content-addressed store, hash-verified

100}
101
102func (self *RpcEngine) Activate(p plugins.Plugin) {
103 log.WithFields(log.Fields{
104 "plugin": p.GetName(),
105 "version": p.GetVersion(),
106 }).Info("RPC Engine is activating plugin.")
107
108 // Register the plugins RPC exposed methods
109 p.RegisterRPC(self.server)
110
111 // Add enabled plugins
112 self.plugins = append(self.plugins, &p)
113}

Callers 2

startAppFunction · 0.95
initFunction · 0.80

Calls 3

GetNameMethod · 0.65
GetVersionMethod · 0.65
RegisterRPCMethod · 0.65

Tested by 1

initFunction · 0.64