Documentation
¶
Overview ¶
Package service allows to manage a service leveraging helix.go, as well as managing integrations' lifecycle attached to the service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(inte integration.Integration) error
Attach allows to attach a third-party integration to a service. When attached, the Init and Close methods of the integration are automatically called when the service is initializing and stopping, so they shouldn't be called manually by the clients.
func Close ¶
Close tries to gracefully close connections with all integrations. It then tries to drain/close the tracer and logger.
func Start ¶
Start initializes the helix service, and starts each integration attached by executing their Start function. This returns as soon as an interrupting signal is catched or when an integration returns an error while starting it.
Types ¶
This section is empty.