mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
12 lines
332 B
Go
12 lines
332 B
Go
|
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
|
||
|
}
|