2024-01-07 08:13:35 +00:00
|
|
|
package interfaces
|
|
|
|
|
2024-01-08 05:16:32 +00:00
|
|
|
//go:generate mockgen -source=service.go -destination=../mocks/interfaces/service.go -package=interfaces
|
|
|
|
|
2024-01-07 08:13:35 +00:00
|
|
|
type Service interface {
|
2024-01-07 08:54:32 +00:00
|
|
|
Node() Node
|
2024-01-07 08:13:35 +00:00
|
|
|
Start() error
|
|
|
|
Stop() error
|
|
|
|
Init() error
|
|
|
|
}
|
|
|
|
type Services interface {
|
2024-01-07 08:54:32 +00:00
|
|
|
P2P() P2PService
|
2024-01-10 11:21:03 +00:00
|
|
|
Registry() RegistryService
|
2024-01-10 11:33:21 +00:00
|
|
|
All() []Service
|
2024-01-07 08:13:35 +00:00
|
|
|
}
|