Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProtoAdaptor ¶
ProtoAdaptor is subprotocol on p2p
func NewProtoAdaptor ¶
func NewProtoAdaptor(config *p2p.Config) *ProtoAdaptor
NewProtoAdaptor return new ProtoAdaptor
func (*ProtoAdaptor) Protocols ¶
func (adaptor *ProtoAdaptor) Protocols() []p2p.Protocol
Protocols .
func (*ProtoAdaptor) SendOut ¶
func (adaptor *ProtoAdaptor) SendOut(e *router.Event) error
SendOut .
func (*ProtoAdaptor) Start ¶
func (adaptor *ProtoAdaptor) Start() error
Start start p2p protocol adaptor
Click to show internal directories.
Click to hide internal directories.