controllers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetYouTubeLink(c *gin.Context)

GetYouTubeLink redirects to YouTube or shows an error

Types

type DatabaseController

type DatabaseController struct {
	DB *sql.DB
}

func (*DatabaseController) FindSongs

func (dc *DatabaseController) FindSongs(c *gin.Context)

FindSongs returns all songs where title or artist contains search string (using pagination)

func (*DatabaseController) GetRadioStations

func (dc *DatabaseController) GetRadioStations(c *gin.Context)

GetRadioStations returns all radio stations

func (*DatabaseController) GetSongs

func (dc *DatabaseController) GetSongs(c *gin.Context)

GetSongs returns all songs for a radio station (using pagination)

Jump to

Keyboard shortcuts

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