MCPcopy Index your code
hub / github.com/docker/cli / setHandler

Method setHandler

cli/command/container/stats.go:377–381  ·  view source on GitHub ↗
(actions []events.Action, handler func(context.Context, events.Message))

Source from the content-addressed store, hash-verified

375}
376
377func (eh *eventHandler) setHandler(actions []events.Action, handler func(context.Context, events.Message)) {
378 for _, action := range actions {
379 eh.handlers[action] = handler
380 }
381}
382
383// watch ranges over the passed in event chan and processes the events based on the
384// handlers created for a given action.

Callers 1

RunStatsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected