api

package
v0.0.0-...-fb01ae8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit    string = "unknown"
	BuildDate    string = "unknown"
	AppVersion   string = "unknown"
	YTDLPVersion string = GetYTDLPVersion()
	GoVersion    string = runtime.Version()
	ApiStartTime time.Time
)

Functions

func AdminMiddleware

func AdminMiddleware() gin.HandlerFunc

func GetRecommendations

func GetRecommendations(videoID string, watchedVids []string) ([]database.Video, error)

func GetVersion

func GetVersion() apiVersionStruct

func GetYTDLPVersion

func GetYTDLPVersion() string

func Routes

func Routes(route *gin.Engine)

func StreamDirect

func StreamDirect(c *gin.Context, filePath string, mimeType string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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