MCPcopy Create free account
hub / github.com/flant/shell-operator / TaskStorage

Struct TaskStorage

pkg/task/queue/task_storage.go:11–15  ·  view source on GitHub ↗

TaskStorage encapsulates the queue data structures with their own mutex

Source from the content-addressed store, hash-verified

9
10// TaskStorage encapsulates the queue data structures with their own mutex
11type TaskStorage struct {
12 mu sync.RWMutex
13 items *list.List[task.Task]
14 idIndex map[string]*list.Element[task.Task]
15}
16
17// newTaskStorage creates a new TaskStorage instance
18func newTaskStorage() *TaskStorage {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected