Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Create new playlist. CreatePlaylist = "create-playlist" // Delete existing playlist. DeletePlaylist = "delete-playlist" // Enable or disable events notification for the current connection. Events = "events" // Stop the server. Kill = "kill" // Show directory contents. List = "list" // Play next track in the current playing playlist. Next = "next" // Toggle paused state. Pause = "pause" // Do nothing, just returns "OK" response. Ping = "ping" // Play a path (track or directory) from VFS. Play = "play" // Add new track or folder to the end of the playlist. PlaylistAppend = "playlist-append" // Remove all items from playlist. PlaylistClear = "playlist-clear" // Delete items from playlist. PlaylistDelete = "playlist-delete" // Show playlist tracks. PlaylistList = "playlist-list" // Start playing given playlist. PlaylistPlay = "playlist-play" // Move items inside playlist. PlaylistRemove = "playlist-move" // Rename playlist. PlaylistRename = "rename-playlist" // Show existing playlists list. Playlists = "playlists" // Play previous track in the current playling playlist. Prev = "prev" // Disconnect from server. Quit = "quit" // Set/toggle repeat mode. Repeat = "repeat" // Returns player's current state (playback status, volume, etc.). Status = "status" // Seek current playing track time to specified time offset. Seek = "seek" // Stop playing if active. Stop = "stop" // Change volume level. Volumn = "volume" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proto ¶
type Proto struct {
// contains filtered or unexported fields
}
func (*Proto) ReadCommand ¶
func (*Proto) WriteError ¶
func (*Proto) WriteEvent ¶
func (p *Proto) WriteEvent(name string, records []serialize.Serializable) error
func (*Proto) WriteResponse ¶
func (p *Proto) WriteResponse(records []serialize.Serializable) error
Click to show internal directories.
Click to hide internal directories.