node

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 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 {
	// MySQL database.
	DB *sql.DB

	// The modules of the node.
	ConsensusSet    modules.ConsensusSet
	Gateway         modules.Gateway
	Manager         modules.Manager
	Portal          modules.Portal
	Provider        modules.Provider
	TransactionPool modules.TransactionPool
	Wallet          modules.Wallet

	// The directory where all the logs are stored.
	Dir string
}

Node represents a satellite node containing all required modules.

func New

func New(config *persist.SatdConfig, dbPassword string, loadStartTime time.Time) (*Node, <-chan 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