MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / Call

Method Call

internal/pluginhost/client_guard.go:23–30  ·  view source on GitHub ↗
(ctx context.Context, method string, request []byte)

Source from the content-addressed store, hash-verified

21}
22
23func (c *guardedPluginClient) Call(ctx context.Context, method string, request []byte) ([]byte, error) {
24 inner, errAcquire := c.acquire()
25 if errAcquire != nil {
26 return nil, errAcquire
27 }
28 defer c.release()
29 return inner.Call(ctx, method, request)
30}
31
32func (c *guardedPluginClient) acquire() (pluginClient, error) {
33 if c == nil {

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.95
releaseMethod · 0.95
CallMethod · 0.65

Tested by

no test coverage detected