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

Method sendSpite

internal/bridge/bridge.go:235–239  ·  view source on GitHub ↗

sendSpite sends a SpiteResponse via the stream, serializing access with sendMu.

(resp *clientpb.SpiteResponse)

Source from the content-addressed store, hash-verified

233
234// sendSpite sends a SpiteResponse via the stream, serializing access with sendMu.
235func (b *Bridge) sendSpite(resp *clientpb.SpiteResponse) error {
236 b.sendMu.Lock()
237 defer b.sendMu.Unlock()
238 return b.spiteStream.Send(resp)
239}
240
241// moduleContext builds a ModuleContext that gives modules access to
242// bridge capabilities without exposing the Bridge struct directly.

Callers 3

moduleContextMethod · 0.95
forwardObserveEventMethod · 0.95
sendExecResponseMethod · 0.95

Calls 1

SendMethod · 0.45

Tested by

no test coverage detected