Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithShutdownCallback ¶
func WithShutdownGracePeriod ¶
func WithShutdownTimeout ¶
type Signals ¶
type Signals struct {
// contains filtered or unexported fields
}
func NewDefaultSignals ¶
NewDefaultSignals creates signal controller with the following signals handlers:
SIGTERM, SIGINT, SIGQUIT - shut down program SIGHUP - reload configuration SIGUSR1 - ignored
func NewSignals ¶
func (*Signals) Reload ¶
func (s *Signals) Reload()
Reload is a signal handler that reloads configuration
Click to show internal directories.
Click to hide internal directories.