node

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address added in v1.0.3

func Address(c *gin.Context)

Address returns the information about the address passed as parameter

func HeartbeatStatus

func HeartbeatStatus(c *gin.Context)

HeartbeatStatus respond with the heartbeat status of the node

func Routes

func Routes(router *gin.RouterGroup)

Routes defines node related routes

func StartNode added in v1.0.3

func StartNode(c *gin.Context)

StartNode will start the node instance

func Statistics

func Statistics(c *gin.Context)

Statistics returns the blockchain statistics

func Status added in v1.0.3

func Status(c *gin.Context)

Status returns the state of the node e.g. running/stopped

func StopNode added in v1.0.3

func StopNode(c *gin.Context)

StopNode will stop the node instance

Types

type FacadeHandler

type FacadeHandler interface {
	IsNodeRunning() bool
	StartNode() error
	StopNode() error
	GetCurrentPublicKey() string
	GetHeartbeats() ([]heartbeat.PubKeyHeartbeat, error)
	TpsBenchmark() *statistics.TpsBenchmark
}

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