musicdownloader

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadMusic

func DownloadMusic(w http.ResponseWriter, r *http.Request, cfg *config.APIConfig)

func SearchMusicOnYouTube

func SearchMusicOnYouTube(ctx context.Context, query string, maxResults int64, youtubeAPIKey, _ string) ([]string, error)

searchYouTube performs a search for audio music on YouTube with the given query and filters out playlists.

Types

type ResponseMsg added in v1.2.0

type ResponseMsg struct {
	Response []string `json:"response"`
}

type SongRequest

type SongRequest struct {
	Song string `json:"song"`
}

Jump to

Keyboard shortcuts

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