Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignalHandler ¶
type SignalHandler struct {
ExitMessage func(sig os.Signal) string
MaxSignal int
Logger *slog.Logger
LogLevel slog.Level
// contains filtered or unexported fields
}
func NewSignalHandler ¶
func NewSignalHandler(cleanup func()) *SignalHandler
func (*SignalHandler) Start ¶
func (s *SignalHandler) Start()
Click to show internal directories.
Click to hide internal directories.