diagnostics

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const Version = 3

Variables

This section is empty.

Functions

func Setup

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

func SetupBlockBodyDownload

func SetupBlockBodyDownload(metricsMux *http.ServeMux)

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 SetupFlagsAccess

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

func SetupHeaderDownloadStats

func SetupHeaderDownloadStats(metricsMux *http.ServeMux)

func SetupLogsAccess

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

func SetupNodeInfoAccess

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

func SetupPeersAccess

func SetupPeersAccess(ctxclient *cli.Context, metricsMux *http.ServeMux, node *node.ErigonNode)

func SetupStagesAccess

func SetupStagesAccess(metricsMux *http.ServeMux, diag *DiagnosticClient)

func SetupVersionAccess

func SetupVersionAccess(metricsMux *http.ServeMux)

Types

type DiagnosticClient

type DiagnosticClient struct {
	// contains filtered or unexported fields
}

func NewDiagnosticClient

func NewDiagnosticClient(ctx *cli.Context, metricsMux *http.ServeMux, node *node.ErigonNode) *DiagnosticClient

func (*DiagnosticClient) Setup

func (d *DiagnosticClient) Setup()

func (*DiagnosticClient) SnapshotDownload

func (d *DiagnosticClient) SnapshotDownload() map[string]diaglib.DownloadStatistics

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