protoadaptor

package
v0.0.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFnode added in v0.0.20

func GetFnode(station router.Station) string

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