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

Method Get

internal/bridge/taskmanager.go:120–125  ·  view source on GitHub ↗

Get returns the task for the given sessionID+taskID, or nil.

(sessionID string, taskID uint32)

Source from the content-addressed store, hash-verified

118
119// Get returns the task for the given sessionID+taskID, or nil.
120func (tm *TaskManager) Get(sessionID string, taskID uint32) *Task {
121 key := taskKey{sessionID, taskID}
122 tm.mu.RLock()
123 defer tm.mu.RUnlock()
124 return tm.tasks[key]
125}
126
127// ListBySession returns all tasks for a session (any state).
128func (tm *TaskManager) ListBySession(sessionID string) []*Task {

Callers 10

TestTask_GetFunction · 0.95
TestTask_AwaitResultFunction · 0.95
AwaitResultMethod · 0.95
CompleteMethod · 0.95
FailMethod · 0.95

Calls

no outgoing calls