Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyClosed = errors.New("MPDClient: already closed")
)
Functions ¶
This section is empty.
Types ¶
type MPDClient ¶
type MPDClient struct {
// contains filtered or unexported fields
}
func NewMPDClient ¶
NewMPDClient returns a pointer to an instance of MPDClient. A password of "" can be used if there is no password.
func (*MPDClient) NowPlaying ¶
type MPDWatcher ¶
type MPDWatcher struct {
// contains filtered or unexported fields
}
func NewMPDWatcher ¶
func NewMPDWatcher(net, addr, password string) *MPDWatcher
func (*MPDWatcher) PostEvents ¶
func (w *MPDWatcher) PostEvents(postEvent func(tcell.Event) error, quit <-chan struct{})
func (*MPDWatcher) Start ¶ added in v0.4.0
func (w *MPDWatcher) Start() (err error)
func (*MPDWatcher) Stop ¶ added in v0.4.0
func (w *MPDWatcher) Stop() error
Click to show internal directories.
Click to hide internal directories.