Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v0.31.21 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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