Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITerminator ¶
type ITerminator interface {
WaitOSInterruptSignalAndShutDown()
}
func New ¶
func New(services []terminated.IGracefulShutDownService) ITerminator
type Service ¶
type Service struct {
Services []terminated.IGracefulShutDownService
}
func (*Service) WaitOSInterruptSignalAndShutDown ¶
func (t *Service) WaitOSInterruptSignalAndShutDown()
WaitOSInterruptSignalAndShutDown Wait for interrupt signal to gracefully shut down the services kill (no param) default send syscall.SIGTERM kill -2 is syscall.SIGINT kill -9 is syscall. SIGKILL but can"t be caught, so don't need to add it
Click to show internal directories.
Click to hide internal directories.