node

package
v0.0.0-...-3863e02 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	Host      host.Host
	DHT       *dht.IpfsDHT
	Pubsub    *pubsub.PubSub
	Discovery *discovery.RoutingDiscovery
	Protocol  string
	Logger    *log.Logger
}

func New

func New(keyPath string, port int, protocol string, logger *log.Logger) (node *Node, err error)

func (*Node) Start

func (n *Node) Start() chan bool

Jump to

Keyboard shortcuts

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