handlers

package
v0.1.1-0...-1792a0a Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Itags = map[string][]int{
	"video": {133, 134, 135, 136, 137},
	"audio": {250, 251},
}

Functions

func FindTracks

func FindTracks(api *models.ExternalAPI, c *gin.Context)

Handles the HTTP requests for searching the Spotify API and responding with the models.Track Will abort if any errors occur

func GetStreams

func GetStreams(api *models.ExternalAPI, c *gin.Context)

Handles HTTP requests for Streams and responds with the proper links in JSON format. Will abort if any errors occur

Types

type SongBPMResponse

type SongBPMResponse struct {
	Songs []struct {
		SongTitle string `json:"song_title"`
		Artist    struct {
			Name string `json:"name"`
		}
	} `json:"tempo"`
}

type YouTubeStreamURL

type YouTubeStreamURL string

Jump to

Keyboard shortcuts

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