Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExitHandler ¶
type ExitHandler struct {
ClosingFunctions []func() error
}
var GlobalExitHandler *ExitHandler
func NewExitHandler ¶
func NewExitHandler() *ExitHandler
func (*ExitHandler) AddCancel ¶
func (e *ExitHandler) AddCancel(cancel context.CancelFunc)
func (*ExitHandler) AddExit ¶
func (e *ExitHandler) AddExit(f func() error)
func (*ExitHandler) Close ¶
func (e *ExitHandler) Close()
Click to show internal directories.
Click to hide internal directories.