peers

package
v0.175.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(deviceName, deviceType string, notify NotifyHandler, stop chan struct{}, logger *zap.Logger) error

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL