ethstats

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: GPL-3.0 Imports: 26 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ethstats implements the network stats reporting service.

Index

Constants

This section is empty.

Variables

View Source
var EthstatsData = &EthstatsDataType{
	kv: make(map[string]string),
}

Arbitrary Data that can be included

Functions

func New

func New(node *node.Node, backend backend, engine consensus.Engine, url string) error

New returns a monitoring service ready for stats reporting.

Types

type ChainHeadEvent

type ChainHeadEvent struct {
	NewChain []*blockStub `json:"added"`
	OldChain []*blockStub `json:"removed"`
	Type     string       `json:"type"`
}

type EthstatsDataType

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

func (*EthstatsDataType) AddKV

func (e *EthstatsDataType) AddKV(key, val string)

Function to add data to EthstatsData

type Service

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

Service implements an Ethereum netstats reporting daemon that pushes local chain statistics up to a monitoring server.

func (*Service) Start

func (s *Service) Start() error

Start implements node.Lifecycle, starting up the monitoring and reporting daemon.

func (*Service) Stop

func (s *Service) Stop() error

Stop implements node.Lifecycle, terminating the monitoring and reporting daemon.

Jump to

Keyboard shortcuts

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