go-libp2p: github.com/libp2p/go-libp2p/p2p/discovery Index | Files

package discovery

import "github.com/libp2p/go-libp2p/p2p/discovery"

Index

Package Files

mdns.go

Constants

const ServiceTag = "_ipfs-discovery._udp"

type Notifee Uses

type Notifee interface {
    HandlePeerFound(peer.AddrInfo)
}

type Service Uses

type Service interface {
    io.Closer
    RegisterNotifee(Notifee)
    UnregisterNotifee(Notifee)
}

func NewMdnsService Uses

func NewMdnsService(ctx context.Context, peerhost host.Host, interval time.Duration, serviceTag string) (Service, error)

Package discovery imports 12 packages (graph) and is imported by 47 packages. Updated 2020-08-20. Refresh now. Tools for package owners.