node

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0, MIT Imports: 42 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 {
	// Components
	Host             host.Host
	Signer           crypto.Signer
	PeerMgr          peermgr.PeerManager
	Transactor       trans.Transactor
	ActiveOutPaych   paychstore.PaychStore
	InactiveOutPaych paychstore.PaychStore
	ActiveInPaych    paychstore.PaychStore
	InactiveInPaych  paychstore.PaychStore
	PServMgr         pservmgr.PaychServingManager
	ReservMgr        reservmgr.ReservationManager
	RouteStore       routestore.RouteStore
	SubStore         substore.SubStore
	PayMgr           paymgr.PaymentManager
	SettleMgr        settlemgr.SettlementManager
	RenewMgr         renewmgr.RenewManager
	OfferMgr         offermgr.OfferManager
	PaychMonitor     paychmon.PaychMonitor
	PieceMgr         piecemgr.PieceManager
	CServMgr         cservmgr.PieceServingManager
	MinerProofStore  mpstore.MinerProofStore
	// Protocols
	AddrProto   *addrproto.AddrProtocol
	PaychProto  *paychproto.PaychProtocol
	PofferProto *pofferproto.OfferProtocol
	RouteProto  *routeproto.RouteProtocol
	CofferProto *cofferproto.OfferProtocol
	PayProto    *payproto.PayProtocol
	// Retrieval manager
	RetMgr *retmgr.RetrievalManager
	// contains filtered or unexported fields
}

Node contains all components of the system.

func NewNode

func NewNode(ctx context.Context, conf config.Config) (*Node, error)

NewNode creates a new node.

@input - context, config.

@output - node, error.

func (*Node) Shutdown

func (n *Node) Shutdown()

Shutdown safely closes all components and services.

Jump to

Keyboard shortcuts

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