Documentation
¶
Index ¶
- Constants
- func CloseConn(conn *textproto.Conn) error
- type ChannelMessage
- type Info
- type MPDClient
- func (c *MPDClient) Channels() ([]string, error)
- func (c *MPDClient) Close() error
- func (c *MPDClient) Cmd(cmd string) *response
- func (c *MPDClient) CurrentSong() (*Info, error)
- func (c *MPDClient) Idle(subsystems ...string) *idleListener
- func (c *MPDClient) ListPlaylist(name string) ([]string, error)
- func (c *MPDClient) ListPlaylists() ([]PlaylistInfo, error)
- func (c *MPDClient) Ping() error
- func (c *MPDClient) PlaylistAdd(name, uri string) error
- func (c *MPDClient) PlaylistClear(name string) error
- func (c *MPDClient) ReadMessages() ([]ChannelMessage, error)
- func (c *MPDClient) Rm(name string) error
- func (c *MPDClient) Save(name string) error
- func (c *MPDClient) SendMessage(channel, text string) error
- func (c *MPDClient) Status() (*Info, error)
- func (c *MPDClient) StickerFind(stype, uri, stickerName string) (SongStickerList, error)
- func (c *MPDClient) StickerGet(stype, uri, stickerName string) (string, error)
- func (c *MPDClient) StickerSet(stype, uri, stickerName, value string) error
- func (c *MPDClient) Subscribe(channel string) error
- func (c *MPDClient) Unsubscribe(channel string) error
- type MPDError
- type PlaylistInfo
- type SongSticker
- type SongStickerList
- type Version
Constants ¶
View Source
const Debug = false
View Source
const PlaylistInfoLastModifiedTimeLayout = "2006-01-02T15:04:05Z"
View Source
const StickerSongType = "song"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChannelMessage ¶
type MPDClient ¶
type MPDClient struct { Host string Port uint ProtocolVersion Version Logger *log.Logger // contains filtered or unexported fields }
func (*MPDClient) CurrentSong ¶
func (*MPDClient) ListPlaylists ¶
func (c *MPDClient) ListPlaylists() ([]PlaylistInfo, error)
func (*MPDClient) PlaylistAdd ¶
func (*MPDClient) PlaylistClear ¶
func (*MPDClient) ReadMessages ¶
func (c *MPDClient) ReadMessages() ([]ChannelMessage, error)
func (*MPDClient) SendMessage ¶
func (*MPDClient) StickerFind ¶
func (c *MPDClient) StickerFind(stype, uri, stickerName string) (SongStickerList, error)
func (*MPDClient) StickerGet ¶
func (*MPDClient) StickerSet ¶
func (*MPDClient) Unsubscribe ¶
type PlaylistInfo ¶
type SongSticker ¶
type SongStickerList ¶
type SongStickerList []SongSticker
func (SongStickerList) Len ¶
func (p SongStickerList) Len() int
func (SongStickerList) Less ¶
func (p SongStickerList) Less(i, j int) bool
func (SongStickerList) Swap ¶
func (p SongStickerList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.