Versions in this module Expand all Collapse all v1 v1.1.0 Sep 23, 2017 Changes in this version + type Attrs map[string]string + type Client struct + func Dial(network, addr string) (c *Client, err error) + func DialAuthenticated(network, addr, password string) (c *Client, err error) + func (c *Client) Add(uri string) error + func (c *Client) AddID(uri string, pos int) (int, error) + func (c *Client) BeginCommandList() *CommandList + func (c *Client) Clear() error + func (c *Client) Close() (err error) + func (c *Client) Consume(consume bool) error + func (c *Client) CurrentSong() (Attrs, error) + func (c *Client) CurrentSongTags() (Tags, error) + func (c *Client) Delete(start, end int) error + func (c *Client) DeleteID(id int) error + func (c *Client) DisableOutput(id int) error + func (c *Client) EnableOutput(id int) error + func (c *Client) Find(args ...string) ([]Attrs, error) + func (c *Client) GetFiles() ([]string, error) + func (c *Client) List(args ...string) ([]string, error) + func (c *Client) ListAllInfo(uri string) ([]Attrs, error) + func (c *Client) ListAllInfoTags(uri string) ([]Tags, error) + func (c *Client) ListInfo(uri string) ([]Attrs, error) + func (c *Client) ListOutputs() ([]Attrs, error) + func (c *Client) ListPlaylists() ([]Attrs, error) + func (c *Client) Move(start, end, position int) error + func (c *Client) MoveID(songid, position int) error + func (c *Client) Next() error + func (c *Client) Pause(pause bool) error + func (c *Client) Ping() error + func (c *Client) Play(pos int) error + func (c *Client) PlayID(id int) error + func (c *Client) PlaylistAdd(name string, uri string) error + func (c *Client) PlaylistClear(name string) error + func (c *Client) PlaylistContents(name string) ([]Attrs, error) + func (c *Client) PlaylistDelete(name string, pos int) error + func (c *Client) PlaylistInfo(start, end int) ([]Attrs, error) + func (c *Client) PlaylistInfoTags(start, end int) ([]Tags, error) + func (c *Client) PlaylistLoad(name string, start, end int) error + func (c *Client) PlaylistMove(name string, id, pos int) error + func (c *Client) PlaylistRemove(name string) error + func (c *Client) PlaylistRename(name, newName string) error + func (c *Client) PlaylistSave(name string) error + func (c *Client) Previous() error + func (c *Client) Random(random bool) error + func (c *Client) ReadComments(uri string) (Attrs, error) + func (c *Client) Repeat(repeat bool) error + func (c *Client) Seek(pos, time int) error + func (c *Client) SeekID(id, time int) error + func (c *Client) SetVolume(volume int) error + func (c *Client) Shuffle(start, end int) error + func (c *Client) Single(single bool) error + func (c *Client) Stats() (Attrs, error) + func (c *Client) Status() (Attrs, error) + func (c *Client) Stop() error + func (c *Client) Update(uri string) (jobID int, err error) + type CommandList struct + func (cl *CommandList) Add(uri string) + func (cl *CommandList) AddID(uri string, pos int) *PromisedID + func (cl *CommandList) Clear() + func (cl *CommandList) Consume(consume bool) + func (cl *CommandList) CurrentSong() *PromisedAttrs + func (cl *CommandList) Delete(start, end int) error + func (cl *CommandList) DeleteID(id int) + func (cl *CommandList) End() error + func (cl *CommandList) Move(start, end, position int) error + func (cl *CommandList) MoveID(songid, position int) + func (cl *CommandList) Next() + func (cl *CommandList) Pause(pause bool) + func (cl *CommandList) Ping() + func (cl *CommandList) Play(pos int) + func (cl *CommandList) PlayID(id int) + func (cl *CommandList) PlaylistAdd(name string, uri string) + func (cl *CommandList) PlaylistClear(name string) + func (cl *CommandList) PlaylistDelete(name string, pos int) + func (cl *CommandList) PlaylistLoad(name string, start, end int) + func (cl *CommandList) PlaylistMove(name string, id, pos int) + func (cl *CommandList) PlaylistRemove(name string) + func (cl *CommandList) PlaylistRename(name, newName string) + func (cl *CommandList) PlaylistSave(name string) + func (cl *CommandList) Previous() + func (cl *CommandList) Random(random bool) + func (cl *CommandList) Repeat(repeat bool) + func (cl *CommandList) Seek(pos, time int) + func (cl *CommandList) SeekID(id, time int) + func (cl *CommandList) SetVolume(volume int) + func (cl *CommandList) Shuffle(start, end int) + func (cl *CommandList) Single(single bool) + func (cl *CommandList) Status() *PromisedAttrs + func (cl *CommandList) Stop() + func (cl *CommandList) Update(uri string) (attrs *PromisedAttrs) + type PromisedAttrs struct + func (pa *PromisedAttrs) Value() (Attrs, error) + type PromisedID int + func (pi *PromisedID) Value() (int, error) + type Tags map[string][]string + type Watcher struct + Error chan error + Event chan string + func NewWatcher(net, addr, passwd string, names ...string) (w *Watcher, err error) + func (w *Watcher) Close() error + func (w *Watcher) Subsystems(names ...string)