MCPcopy
hub / github.com/netdata/netdata / Run

Method Run

src/go/plugin/framework/functions/manager.go:143–154  ·  view source on GitHub ↗
(ctx context.Context, quitCh chan struct{})

Source from the content-addressed store, hash-verified

141}
142
143func (m *Manager) Run(ctx context.Context, quitCh chan struct{}) {
144 m.Info("instance is started")
145 defer func() { m.Info("instance is stopped") }()
146
147 if err := m.registerRuntimeComponent(); err != nil {
148 m.Warningf("runtime metrics registration failed: %v", err)
149 } else {
150 defer m.unregisterRuntimeComponent()
151 }
152
153 m.run(ctx, quitCh)
154}
155
156func (m *Manager) run(ctx context.Context, quitCh chan struct{}) {
157 parser := newInputParser()

Callers 1

TestManager_RunFunction · 0.95

Calls 5

runMethod · 0.95
InfoMethod · 0.65
WarningfMethod · 0.65

Tested by 1

TestManager_RunFunction · 0.76