Documentation ¶
Index ¶
- type LoggerNotifiee
- func (l *LoggerNotifiee) Connected(n network.Network, conn network.Conn)
- func (l *LoggerNotifiee) Disconnected(n network.Network, conn network.Conn)
- func (l *LoggerNotifiee) Listen(_ network.Network, multiaddr multiaddr.Multiaddr)
- func (l *LoggerNotifiee) ListenClose(_ network.Network, multiaddr multiaddr.Multiaddr)
- type RelayNotifee
- func (r *RelayNotifee) Connected(n network.Network, conn network.Conn)
- func (r *RelayNotifee) Disconnected(n network.Network, conn network.Conn)
- func (r *RelayNotifee) Listen(n network.Network, multiaddr multiaddr.Multiaddr)
- func (r *RelayNotifee) ListenClose(n network.Network, multiaddr multiaddr.Multiaddr)
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)
Click to show internal directories.
Click to hide internal directories.