metrics

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValueForTimeToLiveParam = errors.New("invalid value for the time-to-live parameter")

ErrInvalidValueForTimeToLiveParam signals that an invalid value for the time-to-live parameter was provided

Functions

func NewConnectionsMetric

func NewConnectionsMetric() *connectionsMetric

NewConnectionsMetric returns a new connectionsMetric instance

func NewDisabledConnectionsWatcher

func NewDisabledConnectionsWatcher() *disabledConnectionsWatcher

NewDisabledConnectionsWatcher returns a disabled ConnectionWatcher implementation

func NewPrintConnectionsWatcher

func NewPrintConnectionsWatcher(timeToLive time.Duration, logger p2p.Logger) (*printConnectionsWatcher, error)

NewPrintConnectionsWatcher creates a new

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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