Versions in this module Expand all Collapse all v2 v2.3.0 May 28, 2021 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) AlbumArt(uri string) ([]byte, error) + func (c *Client) BeginCommandList() *CommandList + func (c *Client) Clear() error + func (c *Client) Close() (err error) + func (c *Client) Command(format string, args ...interface{}) *Command + func (c *Client) Consume(consume bool) error + func (c *Client) CurrentSong() (Attrs, error) + func (c *Client) DelPartition(name string) 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) ListInfo(uri string) ([]Attrs, error) + func (c *Client) ListOutputs() ([]Attrs, error) + func (c *Client) ListPartitions() ([]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) MoveOutput(name string) error + func (c *Client) NewPartition(name string) error + func (c *Client) Next() error + func (c *Client) Partition(name string) 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) 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) ReadPicture(uri string) ([]byte, error) + func (c *Client) Repeat(repeat bool) error + func (c *Client) Rescan(uri string) (jobID int, err error) + func (c *Client) Search(args ...string) ([]Attrs, error) + func (c *Client) Seek(pos, time int) error + func (c *Client) SeekCur(d time.Duration, relative bool) error + func (c *Client) SeekID(id, time int) error + func (c *Client) SeekPos(pos int, d time.Duration) error + func (c *Client) SeekSongID(id int, d time.Duration) error + func (c *Client) SetPriority(priority, start, end int) error + func (c *Client) SetPriorityID(priority, id 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) StickerDelete(uri string, name string) error + func (c *Client) StickerFind(uri string, name string) ([]string, []Sticker, error) + func (c *Client) StickerGet(uri string, name string) (*Sticker, error) + func (c *Client) StickerList(uri string) ([]Sticker, error) + func (c *Client) StickerSet(uri string, name string, value string) error + func (c *Client) Stop() error + func (c *Client) Update(uri string) (jobID int, err error) + func (c *Client) Version() string + type Command struct + func (cmd *Command) Attrs() (Attrs, error) + func (cmd *Command) AttrsList(startKey string) ([]Attrs, error) + func (cmd *Command) Binary() ([]byte, int, error) + func (cmd *Command) OK() error + func (cmd *Command) String() string + func (cmd *Command) Strings(key string) ([]string, 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) SetPriority(priority, start, end int) error + func (cl *CommandList) SetPriorityID(priority, id 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 Error struct + Code ErrorCode + CommandListIndex int + CommandName string + Message string + func (e Error) Error() string + type ErrorCode int + const ErrorArg + const ErrorExist + const ErrorNoExist + const ErrorNotList + const ErrorPassword + const ErrorPermission + const ErrorPlayerSync + const ErrorPlaylistLoad + const ErrorPlaylistMax + const ErrorSystem + const ErrorUnknown + const ErrorUpdateAlready + type PromisedAttrs struct + func (pa *PromisedAttrs) Value() (Attrs, error) + type PromisedID int + func (pi *PromisedID) Value() (int, error) + type Quoted string + type Sticker struct + Name string + Value 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) Other modules containing this package github.com/sydstarwave/gompd