Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
DeezerARL string
MusixMatchUserToken string
MusixMatchOBUserToken string
YoutubeDeveloperKey string
SpotifyClientID string
SpotifyClientSecret string
RadioEnabled bool
}
Config contains the API keys for Server
type Response ¶ added in v0.6.0
type Response struct {
Operation int `json:"op"`
Success bool `json:"success"`
Reason string `json:"reason"`
Data map[string]interface{} `json:"data"`
}
Response will be encode in JSON and send to user
func (Response) EncodeJSON ¶ added in v0.6.0
EncodeJSON encodes Response to JSON
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a MusicStream server
func (*Server) HandleError ¶ added in v0.6.0
HandleError defines an error handler that complies with echo's standards.
func (*Server) StartWithTLS ¶ added in v0.4.0
StartWithTLS starts the server, listening at addr, also tries to get a cert from LetsEncrypt
Click to show internal directories.
Click to hide internal directories.