internal

package
v0.35.6-crescendo-prev... Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

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