Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result interface {
// WaitInit wait for the program to finish initialization work
WaitInit() error
// Wait wait for the program exit
Wait() error
// Notify send a signal to the program
Notify(s os.Signal) error
// Shutdown shutdown the program
Shutdown() error
// InitDone mark the initialization work as finished
InitDone()
// InitDoneWithError mark the initialization work as failed
InitDoneWithError(err error)
// Done mark the work as finished
Done()
// DoneWithError mark the work as failed
DoneWithError(err error)
// RegisterNotifyHandler register a signal handler
RegisterNotifyHandler(ns signal.NotifySignal)
}
Result control the running result of the program
Click to show internal directories.
Click to hide internal directories.