Documentation
¶
Index ¶
- Constants
- Variables
- func IsServerError(err error) bool
- type Chubby
- func (c *Chubby) Close() error
- func (c *Chubby) Connect(host string, port int) error
- func (c *Chubby) Connected() bool
- func (c *Chubby) CreatePlaylist(name string) error
- func (c *Chubby) DeletePlaylist(name string) error
- func (c *Chubby) Events(enable bool) (<-chan Event, error)
- func (c *Chubby) Kill() error
- func (c *Chubby) List(path string) ([]Entry, error)
- func (c *Chubby) Next() error
- func (c *Chubby) Pause() error
- func (c *Chubby) Ping() error
- func (c *Chubby) Play(pth string) error
- func (c *Chubby) Playlists() ([]*Playlist, error)
- func (c *Chubby) Prev() error
- func (c *Chubby) RenamePlaylist(from, to string) error
- func (c *Chubby) Seek(time time.Time, mode SeekMode) error
- func (c *Chubby) Status() (*Status, error)
- func (c *Chubby) Stop() error
- func (c *Chubby) Volume(vol int, mode VolumeMode) error
- type CreatePlaylistEvent
- type DeletePlaylistEvent
- type Dir
- type Entry
- type Event
- type Playlist
- type SeekMode
- type ServerError
- type State
- type Status
- type StatusEvent
- type Track
- type VolumeMode
Constants ¶
View Source
const ( VolumeModeAbs = false VolumeModeRel = true )
Variables ¶
View Source
var ErrNotConnected = errors.New("not connected")
Functions ¶
func IsServerError ¶
Types ¶
type Chubby ¶
type Chubby struct {
// contains filtered or unexported fields
}
func (*Chubby) CreatePlaylist ¶
func (*Chubby) DeletePlaylist ¶
func (*Chubby) RenamePlaylist ¶
type CreatePlaylistEvent ¶
type CreatePlaylistEvent struct {
Name string
// contains filtered or unexported fields
}
func (*CreatePlaylistEvent) Event ¶
func (e *CreatePlaylistEvent) Event() string
func (*CreatePlaylistEvent) Serialize ¶
func (e *CreatePlaylistEvent) Serialize() string
type DeletePlaylistEvent ¶
type DeletePlaylistEvent struct {
Name string
// contains filtered or unexported fields
}
func (*DeletePlaylistEvent) Event ¶
func (e *DeletePlaylistEvent) Event() string
func (*DeletePlaylistEvent) Serialize ¶
func (e *DeletePlaylistEvent) Serialize() string
type ServerError ¶
type ServerError struct {
// contains filtered or unexported fields
}
func (ServerError) Error ¶
func (e ServerError) Error() string
type StatusEvent ¶
type StatusEvent struct {
State State
Volume int
PlaylistPos int
TrackPos time.Time
Playlist *Playlist
Track *Track
// contains filtered or unexported fields
}
func (*StatusEvent) Event ¶
func (e *StatusEvent) Event() string
func (*StatusEvent) Serialize ¶
func (e *StatusEvent) Serialize() string
type Track ¶
type VolumeMode ¶
type VolumeMode bool
Click to show internal directories.
Click to hide internal directories.