harmonyhub

package
v0.0.0-...-f8c32d9 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HarmonyHubConnection

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

func NewHarmonyHubConnection

func NewHarmonyHubConnection(
	ctx context.Context,
	addr string,
	logger *log.Logger,
) *HarmonyHubConnection

it is the caller's responsibility to start Task() goroutine to service the connection

func (*HarmonyHubConnection) Bind

func (x *HarmonyHubConnection) Bind() error

func (*HarmonyHubConnection) EndStream

func (x *HarmonyHubConnection) EndStream() error

func (*HarmonyHubConnection) HoldAndRelease

func (x *HarmonyHubConnection) HoldAndRelease(deviceId string, commandName string) error

func (*HarmonyHubConnection) InitAndAuthenticate

func (x *HarmonyHubConnection) InitAndAuthenticate() error

func (*HarmonyHubConnection) Send

func (x *HarmonyHubConnection) Send(msg string) error

func (*HarmonyHubConnection) StartStreamTo

func (x *HarmonyHubConnection) StartStreamTo(to string) error

func (*HarmonyHubConnection) Task

Jump to

Keyboard shortcuts

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