Documentation ¶
Index ¶
- func NewKadDHT(ctx context.Context, host host.Host, protocolPrefix protocol.ID, ...) (routing.Routing, discovery.Discovery, error)
- func NewMdns(ctx context.Context, connect ConnectQueue, host host.Host, serviceTag string) mdns.Service
- func Notiffee(net libp2pnetwork.Network) (*libp2pnetwork.NotifyBundle, func())
- type ConnectQueue
- type Facade
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKadDHT ¶ added in v0.1.1
func NewKadDHT(ctx context.Context, host host.Host, protocolPrefix protocol.ID, mode dht.ModeOpt, bootstrappers []peer.AddrInfo) (routing.Routing, discovery.Discovery, error)
NewKadDHT creates a new kademlia DHT and a corresponding discovery service
func NewMdns ¶
func NewMdns(ctx context.Context, connect ConnectQueue, host host.Host, serviceTag string) mdns.Service
New creates a new mdns service
func Notiffee ¶
func Notiffee(net libp2pnetwork.Network) (*libp2pnetwork.NotifyBundle, func())
Types ¶
type ConnectQueue ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.