MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewManager

Function NewManager

cmd/cql-proxy/task/task.go:70–82  ·  view source on GitHub ↗

NewManager returns the new manager object.

(config *config.Config, db *gorp.DbMap)

Source from the content-addressed store, hash-verified

68
69// NewManager returns the new manager object.
70func NewManager(config *config.Config, db *gorp.DbMap) *Manager {
71 return &Manager{
72 config: config,
73 db: db,
74 killCh: make(chan int64),
75 waitCh: make(chan *waitItem),
76 waitMap: make(map[int64][]*waitItem),
77 taskMap: make(map[int64]*taskItem),
78 finishCh: make(chan int64),
79 newCh: make(chan *model.Task),
80 handleMap: make(map[model.TaskType]HandleFunc),
81 }
82}
83
84// Start runs the manager task scheduling.
85func (m *Manager) Start() {

Callers 1

initTaskManagerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected