Documentation
¶
Index ¶
Constants ¶
View Source
const ServiceName = "example-api"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExampleAPI ¶
type ExampleAPI struct{}
ExampleAPI demonstrates dependency behavior. It depends on "example-database" and "example-flaky" so it only starts after both are running. This shows how the API waits for the flaky service to recover from its retries before starting.
func New ¶
func New() (*ExampleAPI, error)
func (*ExampleAPI) Dependencies ¶
func (a *ExampleAPI) Dependencies() []string
Dependencies makes ExampleAPI implement the Dependent interface. The service manager will start example-database and example-flaky before this one.
func (*ExampleAPI) Name ¶
func (a *ExampleAPI) Name() string
Click to show internal directories.
Click to hide internal directories.