discovery

package
v0.0.0-...-7350472 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

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