bootstrap

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricRegistry added in v1.3.14

func GetMetricRegistry(nodeConfig config.NodeConfig) metric.Registry

Types

type Node

type Node struct {
	govnr.TreeSupervisor
	// contains filtered or unexported fields
}

func NewNode

func NewNode(nodeConfig config.NodeConfig, logger log.Logger) *Node

func (*Node) GracefulShutdown

func (n *Node) GracefulShutdown(shutdownContext context.Context)

type NodeLogic

type NodeLogic interface {
	govnr.ShutdownWaiter
	PublicApi() services.PublicApi
}

func NewNodeLogic

func NewNodeLogic(parentCtx context.Context,
	gossipTransport gossipAdapter.Transport,
	blockPersistence blockStorageAdapter.BlockPersistence,
	statePersistence stateStorageAdapter.StatePersistence,
	stateBlockHeightReporter stateStorageAdapter.BlockHeightReporter,
	transactionPoolBlockHeightReporter transactionpool.BlockHeightReporter,
	maybeClock txPoolAdapter.Clock, nativeCompiler nativeProcessorAdapter.Compiler,
	managementProvider management.Provider,
	logger log.Logger, metricRegistry metric.Registry, nodeConfig config.NodeConfig,
	ethereumConnection ethereumAdapter.EthereumConnection) NodeLogic

Directories

Path Synopsis
healthcheck

Jump to

Keyboard shortcuts

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