MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / NewStatusManager

Function NewStatusManager

status_manager.go:39–52  ·  view source on GitHub ↗
(config StatusManagerConfig)

Source from the content-addressed store, hash-verified

37}
38
39func NewStatusManager(config StatusManagerConfig) *StatusManager {
40 ctx, cancel := context.WithCancel(context.Background())
41
42 sm := &StatusManager{
43 componentNames: make([]string, 0),
44 components: make(map[string]Component),
45 ctx: ctx,
46 cancel: cancel,
47 config: config,
48 closedCh: make(chan struct{}),
49 }
50
51 return sm
52}
53
54func (sm *StatusManager) Context() context.Context {
55 return sm.ctx

Calls

no outgoing calls