mpdclient

package
v0.0.0-...-b381f6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2012 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CURRENTSONG = "currentsong"
	STATUS      = "status"
)

Commands

View Source
const (
	TCP = "tcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func Dial

func Dial(address, password string) (c *Client, err error)

func (*Client) CurrentSong

func (c *Client) CurrentSong() (s *Song, err error)

func (*Client) Status

func (c *Client) Status() (s *Status, err error)

type PlayState

type PlayState uint8
const (
	Playing PlayState = iota
	Paused
	Stopped
)

type Song

type Song struct {
	Album  string
	Artist string
	Title  string
}

type Status

type Status struct {
	State       PlayState
	TotalTime   int
	ElapsedTime int
}

type Values

type Values map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL