discovery

package
v0.0.0-...-fcfe891 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	// contains filtered or unexported fields
}

Discovery stores the information about Spotify Connect Discovery Request

func CreateFromBlob

func CreateFromBlob(blob utils.BlobInfo, cachePath, deviceId string, deviceName string) *Discovery

func CreateFromFile

func CreateFromFile(cachePath, deviceId string, deviceName string) *Discovery

func LoginFromConnect

func LoginFromConnect(cachePath string, deviceId string, deviceName string) *Discovery

Advertises a Spotify service via mdns. It waits for the user to connect to 'librespot' device, extracts login data and returns the resulting login BlobInfo.

func (*Discovery) ConnectToDevice

func (d *Discovery) ConnectToDevice(address string)

func (*Discovery) DeviceId

func (d *Discovery) DeviceId() string

func (*Discovery) DeviceName

func (d *Discovery) DeviceName() string

func (*Discovery) Devices

func (d *Discovery) Devices() []connectDeviceMdns

Devices return an immutable copy of the current MDNS-discovered devices, thread-safe

func (*Discovery) FindDevices

func (d *Discovery) FindDevices()

func (*Discovery) LoginBlob

func (d *Discovery) LoginBlob() utils.BlobInfo

Jump to

Keyboard shortcuts

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