mirror of
https://github.com/luxfi/geth.git
synced 2026-10-30 15:05:39 +00:00
- Add PrecompileEnvironment interface for stateful precompiles - Expand stateconf package with StateDBStateOption configuration - Fix badgerdb iterator first-item handling - Add Reader type alias in triedb/database for coreth - Add NilXxx types in metrics for prometheus gatherer
21 lines
568 B
Go
21 lines
568 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package metrics
|
|
|
|
// Nil types are empty structs used to detect disabled/nil metrics
|
|
// in type switches (used by prometheus gatherer)
|
|
|
|
type NilCounter struct{}
|
|
type NilCounterFloat64 struct{}
|
|
type NilEWMA struct{}
|
|
type NilGauge struct{}
|
|
type NilGaugeFloat64 struct{}
|
|
type NilGaugeInfo struct{}
|
|
type NilHealthcheck struct{}
|
|
type NilHistogram struct{}
|
|
type NilMeter struct{}
|
|
type NilResettingTimer struct{}
|
|
type NilSample struct{}
|
|
type NilTimer struct{}
|