dashboard

package
v0.0.0-...-b9de96a Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dashboard

type Dashboard struct {
	// contains filtered or unexported fields
}

func NewDashboard

func NewDashboard(h host.Host, ch chain.Blockchain, prop proposer.Proposer) (*Dashboard, error)

func (*Dashboard) Start

func (d *Dashboard) Start() error

type Data

type Data struct {
	NodeData          NodeData
	NetworkData       NetworkData
	KeystoreData      KeystoreData
	ProposerData      ProposerData
	PeerData          []PeerData
	ParticipationInfo ParticipationInfo
}

type KeystoreData

type KeystoreData struct {
	Keys              int
	Validators        int
	KeysParticipating int
}

type NetworkData

type NetworkData struct {
	ID             string
	PeersConnected int
	PeersAhead     int
	PeersBehind    int
	PeersEqual     int
}

type NodeData

type NodeData struct {
	TipHeight       uint64
	TipSlot         uint64
	TipHash         string
	JustifiedHeight uint64
	JustifiedSlot   uint64
	JustifiedHash   string
	FinalizedHeight uint64
	FinalizedSlot   uint64
	FinalizedHash   string
}

type ParticipationInfo

type ParticipationInfo struct {
	EpochSlot               uint64
	Epoch                   uint64
	ParticipationPercentage string
}

type PeerData

type PeerData struct {
	ID        string
	Finalized uint64
	Justified uint64
	Tip       uint64
}

type ProposerData

type ProposerData struct {
	Slot      uint64
	Epoch     uint64
	Voting    bool
	Proposing bool
}

Jump to

Keyboard shortcuts

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