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