package shared // Service is a struct that can be registered into a ServiceRegistry for // easy dependency management. type Service interface { // Start spawns any goroutines required by the service. Start() // Stop terminates all goroutines belonging to the service, // blocking until they are all terminated. Stop() error }