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

Method GetByName

pkg/task/queue/queue_set.go:110–117  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

108}
109
110func (tqs *TaskQueueSet) GetByName(name string) *TaskQueue {
111 q, ok := tqs.Queues.Get(name)
112 if !ok {
113 return nil
114 }
115
116 return q
117}
118
119func (tqs *TaskQueueSet) GetMain() *TaskQueue {
120 return tqs.GetByName(tqs.MainName)

Calls 1

GetMethod · 0.65