Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddShutdownListener ¶
func AddShutdownListener(fn func()) (waitForCalled func())
AddShutdownListener adds fn as a shutdown listener. The returned func can be used to wait for fn getting called.
func AddWrapUpListener ¶
func AddWrapUpListener(fn func()) (waitForCalled func())
AddWrapUpListener adds fn as a wrap up listener. The returned func can be used to wait for fn getting called.
func SetTimeToForceQuit ¶
SetTimeToForceQuit sets the waiting time before force quitting.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group A ServiceGroup is a group of services. Attention: the starting order of the added services is not guaranteed.
type Service ¶
Service is the interface that groups Start and Stop methods.
func WithStarter ¶
WithStarter wraps a Starter as a Service.
Click to show internal directories.
Click to hide internal directories.