Start starts a service. Services are responsible for backgrounding themselves, so this function should be invoked synchronously. Services may return an error if they have trouble starting up, so the caller should wait and respond to the error if necessary.
(ctx context.Context)
| 19 | // may return an error if they have trouble starting up, so the caller |
| 20 | // should wait and respond to the error if necessary. |
| 21 | Start(ctx context.Context) error |
| 22 | |
| 23 | // Started returns a channel that's closed when a service finishes starting, |
| 24 | // or if failed to start and is stopped instead. It can be used in |
no outgoing calls