Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signal ¶
type Signal struct { ShutdownRequestedChan chan struct{} // contains filtered or unexported fields }
func (*Signal) BlockShutdown ¶
func (s *Signal) BlockShutdown() func()
func (*Signal) NumBlocking ¶
func (*Signal) RequestShutdown ¶
func (s *Signal) RequestShutdown()
RequestShutdown initiates a graceful shutdown from the application.
func (*Signal) ShutdownChannel ¶
func (s *Signal) ShutdownChannel() <-chan struct{}
ShutdownChannel returns the channel that will be closed once the main interrupt handler has exited.
func (*Signal) ShutdownRequested ¶
Click to show internal directories.
Click to hide internal directories.