Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics interface { metric.APIInterceptor IncTxRefreshes() IncTxRefreshHits() IncTxRefreshMisses() // MarkBlockAccepted updates all metrics relating to the acceptance of a // block, including the underlying acceptance of the contained transactions. MarkBlockAccepted(b block.Block) error // MarkTxAccepted updates all metrics relating to the acceptance of a // transaction. // // Note: This is not intended to be called during the acceptance of a block, // as MarkBlockAccepted already handles updating transaction related // metrics. MarkTxAccepted(tx *txs.Tx) error }
func New ¶
func New(registerer prometheus.Registerer) (Metrics, error)
Directories ¶
Path | Synopsis |
---|---|
Package metricsmock is a generated GoMock package.
|
Package metricsmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.