Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartDebugServer ¶
func StartDebugServer(ctx context.Context, log *zap.Logger, ln net.Listener, metrics *PrometheusMetrics)
StartDebugServer starts a debug server in a background goroutine, accepting connections on the given listener. Any HTTP logging will be written at info level to the given logger. The server will be forcefully shut down when ctx finishes.
Types ¶
type PrometheusMetrics ¶
type PrometheusMetrics struct {
Registry *prometheus.Registry
RelayedHeadersCounter *prometheus.CounterVec
RelayedChainsCounter *prometheus.CounterVec
FailedHeadersCounter *prometheus.CounterVec
FailedChainsCounter *prometheus.CounterVec
}
func NewPrometheusMetrics ¶
func NewPrometheusMetrics() *PrometheusMetrics
Click to show internal directories.
Click to hide internal directories.