libp2p

package
v0.0.0-...-92aaef2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHost

func GetHost(priv string) host.Host

func GetHostOnPort

func GetHostOnPort(priv string, port string) host.Host

func SetupMDNS

func SetupMDNS(h host.Host, serviceTag string) error

Types

type Notifee

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

Notifee receives notifications from mDNS service

func (*Notifee) HandlePeerFound

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

HandlePeerFound is called when new peer is found

Jump to

Keyboard shortcuts

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