internal

package
v0.32.6-patch.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerNotifiee

type LoggerNotifiee struct {
	// contains filtered or unexported fields
}

func NewLoggerNotifiee

func NewLoggerNotifiee(logger zerolog.Logger, metrics module.LibP2PConnectionMetrics) *LoggerNotifiee

func (*LoggerNotifiee) Connected

func (l *LoggerNotifiee) Connected(n network.Network, conn network.Conn)

func (*LoggerNotifiee) Disconnected

func (l *LoggerNotifiee) Disconnected(n network.Network, conn network.Conn)

func (*LoggerNotifiee) Listen

func (l *LoggerNotifiee) Listen(_ network.Network, multiaddr multiaddr.Multiaddr)

func (*LoggerNotifiee) ListenClose

func (l *LoggerNotifiee) ListenClose(_ network.Network, multiaddr multiaddr.Multiaddr)

type RelayNotifee

type RelayNotifee struct {
	// contains filtered or unexported fields
}

RelayNotifee is a notifiee that relays notifications to a list of notifiees. A network.Notifiee is a function that is called when a network event occurs, such as a new connection.

func NewRelayNotifee

func NewRelayNotifee(notifiees ...network.Notifiee) *RelayNotifee

func (*RelayNotifee) Connected

func (r *RelayNotifee) Connected(n network.Network, conn network.Conn)

func (*RelayNotifee) Disconnected

func (r *RelayNotifee) Disconnected(n network.Network, conn network.Conn)

func (*RelayNotifee) Listen

func (r *RelayNotifee) Listen(n network.Network, multiaddr multiaddr.Multiaddr)

func (*RelayNotifee) ListenClose

func (r *RelayNotifee) ListenClose(n network.Network, multiaddr multiaddr.Multiaddr)

Jump to

Keyboard shortcuts

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