16 lines
300 B
Go
16 lines
300 B
Go
package interfaces
|
|
|
|
//go:generate mockgen -source=service.go -destination=../mocks/interfaces/service.go -package=interfaces
|
|
|
|
type Service interface {
|
|
Node() Node
|
|
Start() error
|
|
Stop() error
|
|
Init() error
|
|
}
|
|
type Services interface {
|
|
P2P() P2PService
|
|
Registry() RegistryService
|
|
All() []Service
|
|
}
|