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

package ethstats

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

Package ethstats implements the network stats reporting service.


Package Files


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 New Uses

func New(url string, ethServ *eth.Ethereum, lesServ *les.LightEthereum) (*Service, error)

New returns a monitoring service ready for stats reporting.

func (*Service) APIs Uses

func (s *Service) APIs() []rpc.API

APIs implements node.Service, returning the RPC API endpoints provided by the stats service (nil as it doesn't provide any user callable APIs).

func (*Service) Protocols Uses

func (s *Service) Protocols() []p2p.Protocol

Protocols implements node.Service, returning the P2P network protocols used by the stats service (nil as it doesn't use the devp2p overlay network).

func (*Service) Start Uses

func (s *Service) Start(server *p2p.Server) error

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

func (*Service) Stop Uses

func (s *Service) Stop() error

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

Package ethstats imports 23 packages (graph). Updated 2019-07-06. Refresh now. Tools for package owners.