Documentation ¶
Overview ¶
signal
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = Configuration{}
View Source
var SignalHandlerModule = NewSignalHandler()
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
SupportSignal bool
}
func (*Configuration) Close ¶
func (c *Configuration) Close() error
func (*Configuration) Init ¶
func (c *Configuration) Init() error
func (*Configuration) Name ¶
func (c *Configuration) Name() string
type InterruptSignalHandler ¶
type InterruptSignalHandler struct { }
type KillSignalHandler ¶
type KillSignalHandler struct { }
type SignalHandler ¶
type SignalHandler struct {
// contains filtered or unexported fields
}
func NewSignalHandler ¶
func NewSignalHandler() *SignalHandler
func (*SignalHandler) ClearHandler ¶
func (this *SignalHandler) ClearHandler(s os.Signal) int
func (*SignalHandler) ProcessSignal ¶
func (this *SignalHandler) ProcessSignal()
func (*SignalHandler) RegisteHandler ¶
func (this *SignalHandler) RegisteHandler(s os.Signal, h Handler, ud interface{}) error
func (*SignalHandler) UnregisteHandler ¶
func (this *SignalHandler) UnregisteHandler(s os.Signal, h Handler) error
Click to show internal directories.
Click to hide internal directories.