yt

package
v0.0.0-...-e44497f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: AGPL-3.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(app *echo.Echo)

Types

type Format

type Format struct {
	Url             string  `json:"url"`
	Codec           string  `json:"codec"`
	Bitrate         int     `json:"bitrate"`
	Width           int     `json:"width,omitempty"`
	Height          int     `json:"height,omitempty"`
	Quality         string  `json:"quality"`
	Fps             int     `json:"fps,omitempty"`
	AverageBitrate  float64 `json:"average_bitrate,omitempty"`
	AudioSampleRate int     `json:"audio_sample_rate,omitempty"`
}

type SearchResponse

type SearchResponse struct {
	Title           string
	Author          string
	VideoId         string
	VideoThumbnails []VideoThumbnailResponse
	Description     string
}

type SearchResult

type SearchResult struct {
	Description string `json:"description"`
	Id          string `json:"id"`
	Thumbnail   string `json:"thumbnail"`
	Title       string `json:"title"`
	Author      string `json:"author"`
}

type VideoInfo

type VideoInfo struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Duration    int    `json:"duration"`
	Thumbnail   string `json:"thumbnail"`
	Audio       Format `json:"audio"`
	Video       Format `json:"video"`
}

func Info

func Info(videoId string) (VideoInfo, error)

type VideoThumbnailResponse

type VideoThumbnailResponse struct {
	Url string
}

Jump to

Keyboard shortcuts

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