Documentation
¶
Index ¶
Constants ¶
View Source
const (
SysSignalHandled = 1 // signal has triggered
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignalModule ¶
type SignalModule struct { sync.Mutex cm.ControlMsgPipe // contains filtered or unexported fields }
signal module
func (*SignalModule) InitSignalModule ¶
func (s *SignalModule) InitSignalModule()
Start signal daemon routine
func (*SignalModule) RegisterSignalCallback ¶
func (s *SignalModule) RegisterSignalCallback( sig os.Signal, f func(interface{}) *cm.ControlMsg, d interface{})
Register signal handler to module Register to the same signal would be executed according the register sequence
Click to show internal directories.
Click to hide internal directories.