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

Function newGuardedPluginClient

internal/pluginhost/client_guard.go:17–21  ·  view source on GitHub ↗
(inner pluginClient)

Source from the content-addressed store, hash-verified

15}
16
17func newGuardedPluginClient(inner pluginClient) pluginClient {
18 client := &guardedPluginClient{inner: inner}
19 client.cond = sync.NewCond(&client.mu)
20 return client
21}
22
23func (c *guardedPluginClient) Call(ctx context.Context, method string, request []byte) ([]byte, error) {
24 inner, errAcquire := c.acquire()

Callers 1

loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected