Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocalPairingPeerHello ¶
type LocalPairingPeerHello struct { protobuf.LocalPairingPeerHello Discovered udpp2p.Discovered }
func NewLocalPairingPeerHello ¶
func NewLocalPairingPeerHello(id []byte, name, deviceType string, k *ecdsa.PrivateKey) (*LocalPairingPeerHello, error)
func (*LocalPairingPeerHello) MarshalJSON ¶
func (h *LocalPairingPeerHello) MarshalJSON() ([]byte, error)
type NotifyHandler ¶
type NotifyHandler func(*LocalPairingPeerHello)
type UDPNotifier ¶
type UDPNotifier struct {
// contains filtered or unexported fields
}
func NewUDPNotifier ¶
func NewUDPNotifier(logger *zap.Logger, outputFunc NotifyHandler) (*UDPNotifier, error)
func (*UDPNotifier) MakeUDPP2PSettings ¶
func (u *UDPNotifier) MakeUDPP2PSettings(deviceName, deviceType string) (*udpp2p.Settings, error)
Click to show internal directories.
Click to hide internal directories.