MCPcopy Index your code
hub / github.com/flant/shell-operator / Set

Method Set

pkg/task/queue/queue_storage.go:41–46  ·  view source on GitHub ↗

Set stores a queue with the given name

(name string, queue *TaskQueue)

Source from the content-addressed store, hash-verified

39
40// Set stores a queue with the given name
41func (qs *queueStorage) Set(name string, queue *TaskQueue) {
42 qs.mu.Lock()
43 defer qs.mu.Unlock()
44
45 qs.queues[name] = queue
46}
47
48// Delete removes a queue by name
49func (qs *queueStorage) Delete(name string) {

Callers 9

SetStatusMethod · 0.45
newBenchmarkTasksQueueFunction · 0.45
AddMethod · 0.45
NewNamedQueueMethod · 0.45
newTestMetricStorageFunction · 0.45
Test_DumpFunction · 0.45

Calls

no outgoing calls

Tested by 6

newBenchmarkTasksQueueFunction · 0.36
newTestMetricStorageFunction · 0.36
Test_DumpFunction · 0.36