yt

package
v0.0.0-...-a8781a0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

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