Documentation
¶
Index ¶
- Constants
- func Setup(ctx *cli.Context, node *node.ErigonNode, metricsMux *http.ServeMux, ...)
- func SetupBlockBodyDownload(metricsMux *http.ServeMux)
- func SetupBodiesAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
- func SetupBootnodesAccess(metricsMux *http.ServeMux, node *node.ErigonNode)
- func SetupCmdLineAccess(metricsMux *http.ServeMux)
- func SetupDbAccess(ctx *cli.Context, metricsMux *http.ServeMux)
- func SetupDiagnosticsEndpoint(metricsMux *http.ServeMux, addres string) *http.ServeMux
- func SetupEndpoints(ctx *cli.Context, node *node.ErigonNode, diagMux *http.ServeMux, ...)
- func SetupFlagsAccess(ctx *cli.Context, metricsMux *http.ServeMux)
- func SetupHeaderDownloadStats(metricsMux *http.ServeMux)
- func SetupHeadersAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
- func SetupLogsAccess(ctx *cli.Context, metricsMux *http.ServeMux)
- func SetupMemAccess(metricsMux *http.ServeMux)
- func SetupMiddleMuxHandler(mux *http.ServeMux, middleMux *http.ServeMux, path string)
- func SetupNodeInfoAccess(metricsMux *http.ServeMux, node *node.ErigonNode)
- func SetupPeersAccess(ctxclient *cli.Context, metricsMux *http.ServeMux, node *node.ErigonNode, ...)
- func SetupProfileAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
- func SetupStagesAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
- func SetupSysInfoAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
- func SetupVersionAccess(metricsMux *http.ServeMux)
- type PeerNetworkInfo
- type PeerResponse
Constants ¶
View Source
const Version = 3
Variables ¶
This section is empty.
Functions ¶
func SetupBlockBodyDownload ¶
func SetupBodiesAccess ¶
func SetupBodiesAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
func SetupBootnodesAccess ¶
func SetupBootnodesAccess(metricsMux *http.ServeMux, node *node.ErigonNode)
func SetupCmdLineAccess ¶
func SetupEndpoints ¶
func SetupEndpoints(ctx *cli.Context, node *node.ErigonNode, diagMux *http.ServeMux, diagnostic *diaglib.DiagnosticClient)
func SetupHeadersAccess ¶
func SetupHeadersAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
func SetupMemAccess ¶
func SetupMiddleMuxHandler ¶
func SetupNodeInfoAccess ¶
func SetupNodeInfoAccess(metricsMux *http.ServeMux, node *node.ErigonNode)
func SetupPeersAccess ¶
func SetupPeersAccess(ctxclient *cli.Context, metricsMux *http.ServeMux, node *node.ErigonNode, diag *diaglib.DiagnosticClient)
func SetupProfileAccess ¶
func SetupProfileAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
func SetupStagesAccess ¶
func SetupStagesAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
func SetupSysInfoAccess ¶
func SetupSysInfoAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)
func SetupVersionAccess ¶
Types ¶
type PeerNetworkInfo ¶
type PeerNetworkInfo struct {
LocalAddress string `json:"localAddress"` // Local endpoint of the TCP data connection
RemoteAddress string `json:"remoteAddress"` // Remote endpoint of the TCP data connection
Inbound bool `json:"inbound"`
Trusted bool `json:"trusted"`
Static bool `json:"static"`
BytesIn uint64 `json:"bytesIn"`
BytesOut uint64 `json:"bytesOut"`
CapBytesIn map[string]uint64 `json:"capBytesIn"`
CapBytesOut map[string]uint64 `json:"capBytesOut"`
TypeBytesIn map[string]uint64 `json:"typeBytesIn"`
TypeBytesOut map[string]uint64 `json:"typeBytesOut"`
}
type PeerResponse ¶
type PeerResponse struct {
ENR string `json:"enr,omitempty"` // Ethereum Node Record
Enode string `json:"enode"` // Node URL
ID string `json:"id"` // Unique node identifier
Name string `json:"name"` // Name of the node, including client type, version, OS, custom data
ErrorCount int `json:"errorCount"` // Number of errors
LastSeenError string `json:"lastSeenError"` // Last seen error
Type string `json:"type"` // Type of connection
Caps []string `json:"caps"` // Protocols advertised by this peer
Network PeerNetworkInfo `json:"network"`
Protocols map[string]interface{} `json:"protocols"` // Sub-protocol specific metadata fields
}
Click to show internal directories.
Click to hide internal directories.