diagnostics

package
v1.9.7-0...-cb92314 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: LGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 3

Variables

This section is empty.

Functions

func Setup

func Setup(ctx *cli.Context, node *node.ErigonNode, metricsMux *http.ServeMux, pprofMux *http.ServeMux)

func SetupBlockBodyDownload

func SetupBlockBodyDownload(metricsMux *http.ServeMux)

func SetupBodiesAccess

func SetupBodiesAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)

func SetupBootnodesAccess

func SetupBootnodesAccess(metricsMux *http.ServeMux, node *node.ErigonNode)

func SetupCmdLineAccess

func SetupCmdLineAccess(metricsMux *http.ServeMux)

func SetupDbAccess

func SetupDbAccess(ctx *cli.Context, metricsMux *http.ServeMux)

func SetupDiagnosticsEndpoint

func SetupDiagnosticsEndpoint(metricsMux *http.ServeMux, addres string) *http.ServeMux

func SetupEndpoints

func SetupEndpoints(ctx *cli.Context, node *node.ErigonNode, diagMux *http.ServeMux, diagnostic *diaglib.DiagnosticClient)

func SetupFlagsAccess

func SetupFlagsAccess(ctx *cli.Context, metricsMux *http.ServeMux)

func SetupHeaderDownloadStats

func SetupHeaderDownloadStats(metricsMux *http.ServeMux)

func SetupHeadersAccess

func SetupHeadersAccess(metricsMux *http.ServeMux, diag *diaglib.DiagnosticClient)

func SetupLogsAccess

func SetupLogsAccess(ctx *cli.Context, metricsMux *http.ServeMux)

func SetupMemAccess

func SetupMemAccess(metricsMux *http.ServeMux)

func SetupMiddleMuxHandler

func SetupMiddleMuxHandler(mux *http.ServeMux, middleMux *http.ServeMux, path string)

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

func SetupVersionAccess(metricsMux *http.ServeMux)

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
}

Jump to

Keyboard shortcuts

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