Documentation ¶
Index ¶
- Constants
- Variables
- func DiscoveryHandler(ctx context.Context, l *zap.Logger, h host.Host) p2p_mdns.Notifee
- func GetMulticastInterfaces() ([]net.Interface, error)
- func NewMdnsService(logger *zap.Logger, host host.Host, serviceName string, ...) p2p_mdns.Service
- func SetNetDriver(n Net)
- type Net
- type NetAddrs
- type NetInterface
Constants ¶
View Source
const (
MDNSServiceName = p2p_mdns.ServiceName
)
Variables ¶
View Source
var DiscoveryTimeout = time.Second * 30
Functions ¶
func DiscoveryHandler ¶
func GetMulticastInterfaces ¶
func NewMdnsService ¶
func SetNetDriver ¶
func SetNetDriver(n Net)
Types ¶
type Net ¶
type Net interface { NetAddrs NetInterface }
type NetInterface ¶
Click to show internal directories.
Click to hide internal directories.