types

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: LGPL-3.0 Imports: 4 Imported by: 0

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