network

package
v1.1.26 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EconomicsMetrics added in v1.1.3

func EconomicsMetrics(c *gin.Context)

EconomicsMetrics is the endpoint that will return the economics data such as total supply

func GetNetworkConfig added in v1.0.125

func GetNetworkConfig(c *gin.Context)

GetNetworkConfig returns metrics related to the network configuration (shard independent)

func GetNetworkStatus added in v1.0.125

func GetNetworkStatus(c *gin.Context)

GetNetworkStatus returns metrics related to the network status (shard specific)

func GetTotalStaked added in v1.1.18

func GetTotalStaked(c *gin.Context)

GetTotalStaked is the endpoint that will return the total staked value

func Routes

func Routes(router *wrapper.RouterWrapper)

Routes defines address related routes

Types

type FacadeHandler

type FacadeHandler interface {
	GetTotalStakedValue() (*big.Int, error)
	StatusMetrics() external.StatusMetricsHandler
	IsInterfaceNil() bool
}

FacadeHandler interface defines methods that can be used by the gin webserver

Jump to

Keyboard shortcuts

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