types

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: LGPL-3.0 Imports: 4 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainMetrics

type ChainMetrics struct {
	BlocksProcessed      prometheus.Counter
	LatestProcessedBlock prometheus.Gauge
	LatestKnownBlock     prometheus.Gauge
	VotesSubmitted       prometheus.Counter
}

func NewChainMetrics

func NewChainMetrics(chain string) *ChainMetrics

type LatestBlock

type LatestBlock struct {
	Height      *big.Int
	LastUpdated time.Time
}

LatestBlock is used to track the health of a chain

Jump to

Keyboard shortcuts

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