Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface {
CreateChannel()
StartChannelListener()
}
Channel is the interface for creating new listening channels
type OSSigChannel ¶
type OSSigChannel struct {
Server *manners.GracefulServer
Log logger.Log
// contains filtered or unexported fields
}
OSSigChannel listens to os system events
func (*OSSigChannel) CreateChannel ¶
func (channel *OSSigChannel) CreateChannel()
CreateChannel setups a new channel to listen to OS events
func (*OSSigChannel) StartChannelListener ¶
func (channel *OSSigChannel) StartChannelListener()
StartChannelListener listens and handles SIGTERM / SIGINT events
Click to show internal directories.
Click to hide internal directories.