discovery

package
Version: v2.3.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

README

Discovery

This package provides utilities to discovery services via DNS Service Discovery (DNS-SD).

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

func DiscoverCatalogEndpoint

func DiscoverCatalogEndpoint(serviceType string) (endpoint string, err error)

Discovers a catalog endpoint given the serviceType

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