parser

package
v0.0.0-...-1944ea0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(src string) (*pb.SearchResult, error)

Types

type Resolution

type Resolution string

Resolution represents the desired video resolution e.g. 720p, 1080p, 4k...

const (
	RESOLUTION_360P  Resolution = "360p"
	RESOLUTION_480P  Resolution = "480p"
	RESOLUTION_720P  Resolution = "720p"
	RESOLUTION_1080P Resolution = "1080p"
	RESOLUTION_2160P Resolution = "2160p"
	RESOLUTION_4K    Resolution = "4k"
)

func SprintResolution

func SprintResolution(res pb.Resolution) Resolution

func (*Resolution) Set

func (r *Resolution) Set(s string) error

func (Resolution) String

func (r Resolution) String() string

func (Resolution) Type

func (r Resolution) Type() string

Jump to

Keyboard shortcuts

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