Documentation ¶
Index ¶
- type HarmonyHubConnection
- func (x *HarmonyHubConnection) Bind() error
- func (x *HarmonyHubConnection) EndStream() error
- func (x *HarmonyHubConnection) HoldAndRelease(deviceId string, commandName string) error
- func (x *HarmonyHubConnection) InitAndAuthenticate() error
- func (x *HarmonyHubConnection) Send(msg string) error
- func (x *HarmonyHubConnection) StartStreamTo(to string) error
- func (h *HarmonyHubConnection) Task(ctx context.Context) error
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
Click to show internal directories.
Click to hide internal directories.