protoadaptor

package
v0.0.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProtoAdaptor

type ProtoAdaptor struct {
	p2p.Server
	// contains filtered or unexported fields
}

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

func (*ProtoAdaptor) Stop

func (adaptor *ProtoAdaptor) Stop()

Stop .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL