Documentation
¶
Index ¶
- func AdvertiseSSDP(ctx context.Context, nickname string, port int) (stop func(), err error)
- func BrowseBonjour(ctx context.Context, mgr *Manager) (stop func(), err error)
- func ListenWSD(ctx context.Context, mgr *Manager) error
- func RegisterBonjour(nickname string, port int, fullAddrs []multiaddr.Multiaddr) (*zeroconf.Server, error)
- func SearchSSDP(ctx context.Context, mgr *Manager) (stop func(), err error)
- func SendWSDHello(ctx context.Context, nickname string, port int) error
- func StartBLE(ctx context.Context, nickname string, mgr *Manager) error
- type DiscoveredPeer
- type Manager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdvertiseSSDP ¶
func RegisterBonjour ¶
Types ¶
type DiscoveredPeer ¶
type Manager ¶
type Manager struct {
OnPeerFound func(DiscoveredPeer)
OnPeerLost func(DiscoveredPeer)
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Notify ¶
func (m *Manager) Notify(p DiscoveredPeer)
Click to show internal directories.
Click to hide internal directories.