Documentation
¶
Index ¶
- Constants
- Variables
- func DestroyConn() error
- func Dial() (net.Conn, error)
- func Listen() (net.Listener, error)
- func SeekBySecondsPath(secs float64) string
- func SeekToSecondsPath(secs float64) string
- func SetVolumePath(vol int) string
- type Client
- func (c *Client) Pause() error
- func (c *Client) Ping() error
- func (c *Client) Play() error
- func (c *Client) PlayPause() error
- func (c *Client) Quit() error
- func (c *Client) SeekBackOrPrevious() error
- func (c *Client) SeekBySeconds(secs float64) error
- func (c *Client) SeekNext() error
- func (c *Client) SeekSeconds(secs float64) error
- func (c *Client) SetVolume(vol int) error
- func (c *Client) Show() error
- type IPCServer
- type PlaybackHandler
- type Response
Constants ¶
View Source
const ( PingPath = "/ping" PlayPath = "/transport/play" PlayPausePath = "/transport/playpause" PausePath = "/transport/pause" StopPath = "/transport/stop" PreviousPath = "/transport/previous" NextPath = "/transport/next" TimePosPath = "/transport/timepos" // ?s=<seconds> SeekByPath = "/transport/seek-by" // ?s=<+/- seconds> VolumePath = "/volume" // ?v=<vol> ShowPath = "/window/show" QuitPath = "/window/quit" )
Variables ¶
View Source
var ErrPingFail = errors.New("ping failed")
Functions ¶
func DestroyConn ¶
func DestroyConn() error
func SeekBySecondsPath ¶
func SeekToSecondsPath ¶
func SetVolumePath ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SeekBackOrPrevious ¶
func (*Client) SeekBySeconds ¶
func (*Client) SeekSeconds ¶
type IPCServer ¶
func NewServer ¶
func NewServer(pbHandler PlaybackHandler, showFn, quitFn func()) IPCServer
type PlaybackHandler ¶
Click to show internal directories.
Click to hide internal directories.