mirror of https://github.com/status-im/go-waku.git
24 lines
369 B
Go
24 lines
369 B
Go
package node
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/libp2p/go-libp2p/core/peer"
|
|
"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
|
|
}
|