musicdownloader

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 10 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 CallSearchYoutubeFastdownloadYoutubeLink(ctx context.Context, request SongRequest, apiKey, fastAPIBaseURL, outputPath, cloudinaryURL string) (string, error)

func DownloadMusic

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

Types

type ErrorResponse added in v1.2.6

type ErrorResponse struct {
	Detail string `json:"detail"`
}

type SongRequest

type SongRequest struct {
	Query string `json:"query"`
	Limit int    `json:"limit,omitempty"`
}

type SongResponse

type SongResponse struct {
	Response string `json:"response"`
}

Jump to

Keyboard shortcuts

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