node

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 16 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 {

	// The modules of the node.
	ChainManager *chain.Manager
	Syncer       modules.Syncer
	Manager      modules.Manager
	Portal       modules.Portal
	Provider     modules.Provider
	Wallet       modules.Wallet

	// The start function.
	Start func() (stop func())
	// contains filtered or unexported fields
}

Node represents a satellite node containing all required modules.

func New

func New(config *persist.SatdConfig, dbPassword, seed string, loadStartTime time.Time) (*Node, error)

New will create a new node.

func (*Node) Close

func (n *Node) Close() (err error)

Close will call close on every module within the node, combining and returning the errors.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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