player

package
v0.0.0-...-548f772 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2016 License: MIT Imports: 14 Imported by: 0

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

func Start

func Start()

Start starts the music_player web service

func WaitEnd

func WaitEnd()

WaitEnd is used to wait the end of the playing the songs in the play queue

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

Jump to

Keyboard shortcuts

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