Documentation ¶
Overview ¶
Package runner helps run applications using a set of defaults that make it easier to handle interrupts and shutdowns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
A Group keeps track of a set of things to run. Example:
g := new(Group) g.Start(func(ctx context.Context) error { // start up services }) g.Stop(func(ctx context.Context) error { // stop services }) if err := g.Wait(); err != nil { // so something with error }
Click to show internal directories.
Click to hide internal directories.