libp2p

package module
v0.0.0-...-88616a3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 22 Imported by: 2

README

mesh-libp2p-network

mesh network implement with go-libp2p

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProtocolAdmin protocol.ID = "/mesh/admin/2.0.0"
)

Builtin protocols

Functions

This section is empty.

Types

type Node

type Node interface {
	Host() host.Host
	Detect(detector ProtocolDetector)
	Context() context.Context
	mesh.Network
}

Node .

func New

func New(ctx context.Context, config config.Config) (Node, error)

New .

type ProtocolDetector

type ProtocolDetector interface {
	Name() string
	Protocols() []protocol.ID
	Update(protocol []protocol.ID, id peer.ID)
	Removed(id peer.ID)
}

ProtocolDetector .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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