zeroconf

package
v0.0.0-...-531a2f0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package zeroconf provides a Scanner backed by the github.com/grandcat/zeroconf package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct {
	Logger chromecast.Logger
	// nil value should be good enough
	ClientOptions []zeroconf.ClientOption
}

Scanner backed by the github.com/grandcat/zeroconf package Nil values are fine

func (Scanner) Scan

func (s Scanner) Scan(ctx context.Context, results chan<- *chromecast.Device) error

Scan repeatedly scans the network and sends the chromecast found into the results channel. It finishes when the context is done.

Jump to

Keyboard shortcuts

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