Service implements an Ethereum netstats reporting daemon that pushes local chain statistics up to a monitoring server.
| 84 | // Service implements an Ethereum netstats reporting daemon that pushes local |
| 85 | // chain statistics up to a monitoring server. |
| 86 | type Service struct { |
| 87 | server *p2p.Server // Peer-to-peer server to retrieve networking infos |
| 88 | backend backend |
| 89 | engine consensus.Engine // Consensus engine to retrieve variadic block fields |
| 90 | |
| 91 | node string // Name of the node to display on the monitoring page |
| 92 | pass string // Password to authorize access to the monitoring page |
| 93 | host string // Remote address of the monitoring service |
| 94 | |
| 95 | pongCh chan struct{} // Pong notifications are fed into this channel |
| 96 | histCh chan []uint64 // History request block numbers are fed into this channel |
| 97 | |
| 98 | headSub event.Subscription |
| 99 | txSub event.Subscription |
| 100 | } |
| 101 | |
| 102 | // connWrapper is a wrapper to prevent concurrent-write or concurrent-read on the |
| 103 | // websocket. |
nothing calls this directly
no outgoing calls
no test coverage detected