Documentation ¶
Index ¶
Constants ¶
View Source
const ShutdownTimeout = time.Second * 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host struct { // Slice of services to run. Started in order. Services []Service // LoggerValues is key-value-pairs passed to .WithValues to initialize the logger for the host. LoggerValues []any // TimeoutFunc allows you to control the timeout behavior for testing TimeoutFunc func() }
Host manages the lifetimes and starting of Services.
type LifecycleMessage ¶
LifecycleMessage is a message returned when a service terminates.
Click to show internal directories.
Click to hide internal directories.