Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerStats ¶
type HandlerStats interface { // BlockRequestHandler stats IncBlockRequest() IncMissingBlockHash() UpdateBlocksReturned(num uint16) UpdateBlockRequestProcessingTime(duration time.Duration) // CodeRequestHandler stats IncCodeRequest() IncMissingCodeHash() UpdateCodeReadTime(duration time.Duration) UpdateCodeBytesReturned(bytes uint32) // LeafsRequestHandler stats IncLeafsRequest() UpdateLeafsReturned(numLeafs uint16) UpdateLeafsRequestProcessingTime(duration time.Duration) IncMissingRoot() }
HandlerStats reports prometheus metrics for the state sync handlers
func NewHandlerStats ¶
func NewHandlerStats() HandlerStats
func NewNoopHandlerStats ¶
func NewNoopHandlerStats() HandlerStats
Click to show internal directories.
Click to hide internal directories.