notifee

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionNotifee

type ConnectionNotifee struct {
	Dht *dht.IpfsDHT
}

func (*ConnectionNotifee) ClosedStream

func (cn *ConnectionNotifee) ClosedStream(netw network.Network, stream network.Stream)

ClosedStream is called when a stream was closed

func (*ConnectionNotifee) Connected

func (n *ConnectionNotifee) Connected(netw network.Network, conn network.Conn)

Connected is called when a connection opened

func (*ConnectionNotifee) Disconnected

func (cn *ConnectionNotifee) Disconnected(netw network.Network, conn network.Conn)

Disconnected is called when a connection closed

func (*ConnectionNotifee) Listen

func (n *ConnectionNotifee) Listen(netw network.Network, ma multiaddr.Multiaddr)

Listen is called when network starts listening on an addr

func (*ConnectionNotifee) ListenClose

func (n *ConnectionNotifee) ListenClose(netw network.Network, ma multiaddr.Multiaddr)

ListenClose is called when network starts listening on an addr

func (*ConnectionNotifee) OpenedStream

func (cn *ConnectionNotifee) OpenedStream(netw network.Network, stream network.Stream)

OpenedStream is called when a stream opened

type DiscoveryNotifee

type DiscoveryNotifee struct {
	Host          host.Host
	Dht           *dht.IpfsDHT
	HandleConnect func(*host.Host, peer.AddrInfo)
}

func (*DiscoveryNotifee) Disconnected added in v1.3.2

func (n *DiscoveryNotifee) Disconnected(net network.Network, conn network.Conn)

func (*DiscoveryNotifee) HandlePeerFound

func (n *DiscoveryNotifee) HandlePeerFound(pi peer.AddrInfo)

Jump to

Keyboard shortcuts

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