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

Method LookupByCommand

internal/bridge/taskmanager.go:185–189  ·  view source on GitHub ↗

LookupByCommand returns the task associated with a command ID, or nil.

(cmdID string)

Source from the content-addressed store, hash-verified

183
184// LookupByCommand returns the task associated with a command ID, or nil.
185func (tm *TaskManager) LookupByCommand(cmdID string) *Task {
186 tm.mu.RLock()
187 defer tm.mu.RUnlock()
188 return tm.subIndex[cmdID]
189}
190
191// AwaitResult returns the task's result channel for reading.
192// Callers should read from this channel to receive results routed by the fan-out.

Callers 2

TestTask_LookupByCommandFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestTask_LookupByCommandFunction · 0.76