mpd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	Args []string
}

func (Command) String

func (r Command) String() string

type MPDConnection

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

func (*MPDConnection) Close

func (mpd *MPDConnection) Close() error

func (*MPDConnection) Connect

func (mpd *MPDConnection) Connect(network, address string, timeout time.Duration) error

func (*MPDConnection) Exec

func (mpd *MPDConnection) Exec(cmds ...Command) (*Response, error)

type Response

type Response struct {
	Records map[string]string
	Command Command
	Data    []byte
	// contains filtered or unexported fields
}

func (Response) OK

func (r Response) OK() []byte

type ResponseError

type ResponseError struct {
	ErrorEnum uint64
	Offset    uint64
	Command   string
	Message   string
}

ResponseError is supposed to represent the line followed by ACK in MPD errors

func (ResponseError) Error

func (r ResponseError) Error() string

Jump to

Keyboard shortcuts

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