Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (c *Client) Exec(command ...interface{}) (*Response, error)
- func (c *Client) GetBoolProperty(name string) (bool, error)
- func (c *Client) GetFloatProperty(name string) (float64, error)
- func (c *Client) GetProperty(name string) (string, error)
- func (c *Client) LoadFile(path string) error
- func (c *Client) Mute() (bool, error)
- func (c *Client) ObserveFloat(property string, cb func(value float64))
- func (c *Client) ObserveString(property string, cb func(value string))
- func (c *Client) Pause() (bool, error)
- func (c *Client) Seek(n int, mode string) error
- func (c *Client) SetMute(mute bool) error
- func (c *Client) SetPause(pause bool) error
- func (c *Client) SetProperty(name string, value interface{}) error
- type Response
Constants ¶
View Source
const ( SeekModeRelative = "relative" SeekModeAbsolute = "absolute" )
Variables ¶
View Source
var ( ErrTimeoutSend = errors.New("timeout while sending command") ErrTimeoutRecv = errors.New("timeout while receiving response") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a more comfortable higher level interface to LLClient. It can use any LLClient implementation.
func (*Client) GetBoolProperty ¶
GetBoolProperty reads a bool property and returns the data as a boolean.
func (*Client) GetFloatProperty ¶
GetFloatProperty reads a float property and returns the data as a float64.
func (*Client) GetProperty ¶
GetProperty reads a property by name and returns the data as a string.
func (*Client) ObserveFloat ¶
func (*Client) ObserveString ¶
func (*Client) SetProperty ¶
SetProperty sets the value of a property.
Click to show internal directories.
Click to hide internal directories.