Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Host ¶
type Host interface { Start(ctx context.Context) task.Task Stop(ctx context.Context) task.Task Configuration() configuration.Configuration Logger() logging.Logger }
func NewDefaultHost ¶
func NewDefaultHost(logger logging.Logger, configuration configuration.Configuration, services []HostedService) Host
type HostLifetime ¶
type HostLifetime interface { WaitForStart(ctx context.Context) task.Task WaitForStop(ctx context.Context) task.Task Stop() }
func NewHostLifetime ¶
func NewHostLifetime() HostLifetime
type HostedService ¶
Click to show internal directories.
Click to hide internal directories.