Documentation ¶
Overview ¶
Package discovery contains utility functions, which help to implement various use-cases of executing some logic as a result of DNS-SD service lookup
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscoverAndExecute ¶
func DiscoverAndExecute(serviceType string, handler DiscoverHandler)
Runs DNS-SD discover of a service by a given type, calls given handler on the first result, stops discovery afterwards
Types ¶
type DiscoverHandler ¶
type DiscoverHandler func(service *bonjour.ServiceEntry)
Discovery single result handling function type
Click to show internal directories.
Click to hide internal directories.