node

package
v1.0.96 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HeartbeatStatus

func HeartbeatStatus(c *gin.Context)

HeartbeatStatus respond with the heartbeat status of the node

func P2pStatusMetrics

func P2pStatusMetrics(c *gin.Context)

P2pStatusMetrics returns the node's p2p statistics exported by a StatusMetricsHandler

func Routes

func Routes(router *gin.RouterGroup)

Routes defines node related routes

func Statistics

func Statistics(c *gin.Context)

Statistics returns the blockchain statistics

func StatusMetrics

func StatusMetrics(c *gin.Context)

StatusMetrics returns the node statistics exported by an StatusMetricsHandler without p2p statistics

Types

type FacadeHandler

type FacadeHandler interface {
	IsNodeRunning() bool
	StartNode() error
	GetHeartbeats() ([]heartbeat.PubKeyHeartbeat, error)
	TpsBenchmark() *statistics.TpsBenchmark
	StatusMetrics() external.StatusMetricsHandler
	IsInterfaceNil() bool
}

FacadeHandler interface defines methods that can be used from `elrondFacade` context variable

Jump to

Keyboard shortcuts

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