MCPcopy
hub / github.com/grafana/dskit / Handler

Struct Handler

signals/signals.go:28–32  ·  signals/signals.go::Handler

Handler handles signals, can be interrupted. On SIGINT or SIGTERM it will exit, on SIGQUIT it will dump goroutine stacks to the Logger.

Source from the content-addressed store, hash-verified

26// On SIGINT or SIGTERM it will exit, on SIGQUIT it
27// will dump goroutine stacks to the Logger.
28type Handler struct {
29 log log.Logger
30 receivers []SignalReceiver
31 quit chan struct{}
32}
33
34// NewHandler makes a new Handler.
35func NewHandler(log log.Logger, receivers ...SignalReceiver) *Handler {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected