Documentation ¶
Index ¶
- type Ack
- type AckError
- type Conn
- func (conn *Conn) Close() error
- func (conn *Conn) Ping() error
- func (conn *Conn) Send(cmd string) (*list.List, error)
- func (conn *Conn) SendList(cmds []string) (*list.List, error)
- func (conn *Conn) SetConsume(consume bool) error
- func (conn *Conn) SetCrossfade(seconds int64) error
- func (conn *Conn) SetRandom(random bool) error
- func (conn *Conn) SetRepeat(repeat bool) error
- func (conn *Conn) SetReplayGainMode(mode ReplayGainMode) error
- func (conn *Conn) SetSingle(single bool) error
- func (conn *Conn) SetVolume(vol int64) error
- func (conn *Conn) Version() string
- type ReplayGainMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack int
const ( ACK_ERROR_NOT_LIST Ack = 1 ACK_ERROR_ARG Ack = 2 ACK_ERROR_PASSWORD Ack = 3 ACK_ERROR_PERMISSION Ack = 4 ACK_ERROR_UNKNOWN Ack = 5 ACK_ERROR_NO_EXIST Ack = 50 ACK_ERROR_PLAYLIST_MAX Ack = 51 ACK_ERROR_SYSTEM Ack = 52 ACK_ERROR_PLAYLIST_LOAD Ack = 53 ACK_ERROR_UPDATE_ALREADY Ack = 54 ACK_ERROR_PLAYER_SYNC Ack = 55 ACK_ERROR_EXIST Ack = 56 )
type AckError ¶
type AckError struct {
// contains filtered or unexported fields
}
AckError represents an error returned by MPD.
func (*AckError) CurrentCommand ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents a connection to the MPD server.
func (*Conn) Send ¶
Send() is a low-level function for sending a raw command to the MPD server. It should not end in a newline. This method should only be used if none of the other methods will do what you want.
func (*Conn) SendList ¶
SendList() is like Send(), but sends all of the commands at once between command_list_begin and command_list_end.
func (*Conn) SetConsume ¶
func (*Conn) SetCrossfade ¶
TODO: support floats?
func (*Conn) SetReplayGainMode ¶
func (conn *Conn) SetReplayGainMode(mode ReplayGainMode) error
type ReplayGainMode ¶
type ReplayGainMode int
const ( ReplayGainOff ReplayGainMode = iota ReplayGainTrack ReplayGainAlbum ReplayGainAuto )
Click to show internal directories.
Click to hide internal directories.