go-waku/waku/v2/node/service.go

24 lines
369 B
Go
Raw Normal View History

2023-01-06 22:37:57 +00:00
package node
import (
"context"
"github.com/libp2p/go-libp2p/core/peer"
2023-01-06 22:37:57 +00:00
"github.com/waku-org/go-waku/waku/v2/protocol"
)
type Service interface {
Start(ctx context.Context) error
Stop()
}
type ReceptorService interface {
Service
MessageChannel() chan *protocol.Envelope
}
type PeerConnectorService interface {
Service
PeerChannel() chan<- peer.AddrInfo
}