service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DB_PEER_ID = "peerID"

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	*localContext.Context
	*manager.Manager
	// contains filtered or unexported fields
}

Node ...

func NewNode

func NewNode(ctx context.Context, ds datastore.Batching, relay bool, bucketSize int) (*Node, error)

NewNode create a new node with its implemented protocols

func (*Node) DHTBootstrap

func (node *Node) DHTBootstrap(seeds ...ma.Multiaddr) error

DHTBootstrap ...

func (*Node) HandlePeerFound

func (node *Node) HandlePeerFound(pi peer.AddrInfo)

HandlePeerFound msdn handler

func (*Node) Info

func (node *Node) Info() error

Info ...

func (*Node) Run

func (node *Node) Run()

Run interactive commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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