debug

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL