Documentation ¶
Index ¶
- func IsYoutube(yu string) bool
- type Counter
- type FilterOption
- type FilterResponse
- type RateCounter
- type Reader
- type Youtube
- func (cc *Youtube) Download(id []int) (v, a []string, ext string, err error)
- func (cc *Youtube) Filter(ctx context.Context, options FilterOption, src *youtube.Video) (formats FilterResponse)
- func (cc *Youtube) GetTitle() string
- func (cc *Youtube) List(ctx context.Context) (video *youtube.Video, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
A Counter is a thread-safe counter implementation
func (*Counter) Incr ¶
Incr method increments the counter by some value
type FilterOption ¶
type FilterOption struct { Quality string VideoFormat string AudioFormat string FirstURLOnly bool WithURL bool }
FilterOption -
type RateCounter ¶
RateCounter -
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader counts the bytes read through it.
func NewReader ¶
func NewReader(r io.Reader, c *RateCounter) *Reader
NewReader makes a new Reader that counts the bytes read through it.
type Youtube ¶
type Youtube struct { CallBackProgress func(total, current, size int64) PrintProgress bool // contains filtered or unexported fields }
Youtube -
func (*Youtube) Download ¶
Download -
func (*Youtube) Filter ¶
func (cc *Youtube) Filter(ctx context.Context, options FilterOption, src *youtube.Video) (formats FilterResponse)
Click to show internal directories.
Click to hide internal directories.