Documentation
¶
Index ¶
- Variables
- func Destroy(cancel context.CancelFunc) (err error)
- func Exit() error
- func ExitWithTimeout(d time.Duration) error
- func ForceExit() error
- func ListenAndDestroy(cancel context.CancelFunc) error
- func RegisterHandler(seq int, name string, handler func(ctx *context.Context) Handler)
- func SetupActive(fn func())
- func Startup(ctx *context.Context) error
- type DestroyUnit
- type Handler
- type Unit
Constants ¶
This section is empty.
Variables ¶
View Source
var Log *log.Logger
Functions ¶
func Destroy ¶
func Destroy(cancel context.CancelFunc) (err error)
Destroy unregister all services immediately after calling
func Exit ¶
func Exit() error
Exit unregister all services immediately after calling
this func can only be called when ListenAndDestroy is used, otherwise an error will be return
func ExitWithTimeout ¶
func ListenAndDestroy ¶
func ListenAndDestroy(cancel context.CancelFunc) error
func RegisterHandler ¶
func SetupActive ¶
func SetupActive(fn func())
Types ¶
type DestroyUnit ¶
Click to show internal directories.
Click to hide internal directories.