Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrontendHandler ¶
type FrontendHandler struct {
// contains filtered or unexported fields
}
func NewFrontendHandler ¶
func NewFrontendHandler(bootnodeService *bootnode.Service) *FrontendHandler
func (*FrontendHandler) ENR ¶
func (fh *FrontendHandler) ENR(w http.ResponseWriter, r *http.Request)
ENR serves the local ENR as plain text
func (*FrontendHandler) Index ¶
func (fh *FrontendHandler) Index(w http.ResponseWriter, r *http.Request)
Index will return the "index" page using a go template
func (*FrontendHandler) Nodes ¶
func (fh *FrontendHandler) Nodes(w http.ResponseWriter, r *http.Request)
Nodes renders the nodes page
func (*FrontendHandler) Overview ¶
func (fh *FrontendHandler) Overview(w http.ResponseWriter, r *http.Request)
Overview renders the overview page
type NodeInfo ¶
type NodeInfo struct {
PeerID string
IP string
Port int
FirstSeen time.Time
LastSeen time.Time
SuccessCount int
FailureCount int
IsAlive bool
Score float64
ForkDigest string
HasForkData bool
IsCurrentFork bool
ENRSeq uint64
ENR string
AvgRTT time.Duration
}
NodeInfo contains node information for display
type NodesPageData ¶
type NodesPageData struct {
TotalNodes int
ActiveNodes int
InactiveNodes int
AliveNodes int
DeadNodes int
CurrentForkDigest string
Nodes []NodeInfo
}
NodesPageData contains data for the nodes page
type OldDigestInfo ¶
type OverviewPageData ¶
type OverviewPageData struct {
Status string
NetworkName string
StartTime time.Time
PeerID string
BindAddress string
LocalENR string
LocalENRSeq uint64
CurrentFork string
CurrentDigest string
PreviousFork string
PreviousDigest string
GenesisDigest string
OldDigests []OldDigestInfo
GracePeriod string
// Routing table stats
TableSize int
BucketsFilled int // Deprecated for flat table
ActiveNodes int
InactiveNodes int
// Discovery stats
LookupsStarted int
LookupsCompleted int
LookupsFailed int
// Ping stats
PingsSent int
PongsReceived int
PingSuccessRate float64
// Session stats
SessionsTotal int
SessionsActive int
SessionsExpired int
// Pending operations
PendingHandshakes int
PendingChallenges int
// Handler stats
PacketsReceived int
PacketsSent int
InvalidPackets int
FilteredResponses int
FindNodeReceived int
// Fork filter stats
FilterAcceptedCurrent int
FilterAcceptedOld int
FilterRejectedInvalid int
FilterRejectedExpired int
FilterTotalChecks int
// Database stats
DBQueueSize int
DBProcessedUpdates int64
DBMergedUpdates int64
DBFailedUpdates int64
DBTransactions int64
DBTotalQueries int64
DBOpenConnections int
}
OverviewPageData contains data for the overview page
Click to show internal directories.
Click to hide internal directories.