client

package
v0.0.0-...-28c0956 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Port = 8060
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(address string) *Client

NewClient ...

func (*Client) ChangeInput

func (c *Client) ChangeInput(source string) (int, error)

ChangeInput ...

func (*Client) ChannelDown

func (c *Client) ChannelDown() (int, error)

func (*Client) ChannelUp

func (c *Client) ChannelUp() (int, error)

func (*Client) GetActiveApp

func (c *Client) GetActiveApp() (*models.ActiveApp, error)

GetActiveApp ...

func (*Client) GetApps

func (c *Client) GetApps() (*models.Apps, error)

GetApps ...

func (*Client) GetDeviceInfo

func (c *Client) GetDeviceInfo() (*models.DeviceInfo, error)

func (*Client) GetInputs

func (c *Client) GetInputs() []string

func (*Client) Home

func (c *Client) Home() (int, error)

func (*Client) KeyDown

func (c *Client) KeyDown(key *Key) (int, error)

KeyDown ...

func (*Client) KeyPress

func (c *Client) KeyPress(key *Key) (int, error)

KeyPress ...

func (*Client) KeyUp

func (c *Client) KeyUp(key *Key) (int, error)

KeyUp ...

func (*Client) LaunchApp

func (c *Client) LaunchApp(id *string)

LaunchApp ...

func (*Client) PowerOff

func (c *Client) PowerOff() (int, error)

func (*Client) PowerOn

func (c *Client) PowerOn() (int, error)

func (*Client) VolumeDown

func (c *Client) VolumeDown() (int, error)

func (*Client) VolumeMute

func (c *Client) VolumeMute() (int, error)

func (*Client) VolumeUp

func (c *Client) VolumeUp() (int, error)

type Key

type Key struct {
	Name string
}

Jump to

Keyboard shortcuts

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