Documentation ¶
Overview ¶
Package player provides the implementation of music_player
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitService ¶
func InitService(playlistDir string) *goji.Mux
InitService creates a mux and initializes handle functions for music_player
Types ¶
type ResponseContainer ¶
type ResponseContainer struct { // 0 for success, 1 for failure Code int // Error message or Info message Message string // Filename (list if filenames) Data []string `json:"Data,omitempty"` }
ResponseContainer defines the format of the web service's response It contains code - 0 for success and 1 for error, message that explains actions is performed and data which is a list of file names
Click to show internal directories.
Click to hide internal directories.