go-ethereum: github.com/ethereum/go-ethereum/ethstats Index | Files

package ethstats

import "github.com/ethereum/go-ethereum/ethstats"

Package ethstats implements the network stats reporting service.


Package Files


func New Uses

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

New returns a monitoring service ready for stats reporting.

type Service Uses

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 Uses

func (s *Service) Start() error

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

func (*Service) Stop Uses

func (s *Service) Stop() error

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

Package ethstats imports 27 packages (graph) and is imported by 176 packages. Updated 2021-01-08. Refresh now. Tools for package owners.