mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 16:37:39 +00:00
83569f1342
Former-commit-id: 406ba2f1e65ec58e822fcf1b9d54c44ba51a559c [formerly 52aebe050663c4dc73fc56e5e4c6846620267f1f] Former-commit-id: c959a9fda119e4403136ac4f8d1b345d464ab5df
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
|
|
}
|