package
Version:
v0.0.0-...-a77b288
Opens a new window with list of versions in this module.
Published: Aug 1, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package signals exposes signal handler.
Handler defines signal handler properties.
func NewSignalHandler(timeoutSeconds int) *Handler
NewSignalHandler creates a new Handler using given properties.
GetState returns has signal been recieved.
Register starts handling signals.
type Signal interface {
GetState() int
Register()
}
Signal is an interface that implements signal handling.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.