Documentation ¶
Index ¶
- func Cmds() [25]string
- type Client
- func (n *Client) Close() error
- func (n *Client) Model() (Reply, error)
- func (n *Client) Mute(enable bool) (Reply, error)
- func (n *Client) Power(enable bool) (Reply, error)
- func (n *Client) Send(cmd []byte) ([]byte, error)
- func (n *Client) SendCmd(cmd Cmd) (Reply, error)
- func (n *Client) SendString(s string) (string, error)
- func (n *Client) Source(name string) (Reply, error)
- func (n *Client) SpeakerA(enable bool) (Reply, error)
- func (n *Client) SpeakerB(enable bool) (Reply, error)
- func (n *Client) Tape1(enable bool) (Reply, error)
- func (n *Client) VolumeDown() (Reply, error)
- func (n *Client) VolumeUp() (Reply, error)
- type Cmd
- type Reply
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { EnableVolume bool // contains filtered or unexported fields }
Client reprensents a client to the amplifier.
func NewTestClient ¶
func NewTestClient() *Client
NewTestClient creates a client that communicates with a simulated amp.
func (*Client) SendString ¶
SendString parses, validates and sends the command s.
func (*Client) VolumeDown ¶
VolumeDown decreases volume.
Click to show internal directories.
Click to hide internal directories.