Documentation
¶
Index ¶
- func RegisterResultType(r Result)
- func ResultTypeName(r Result) string
- type Engine
- type Format
- type Info
- type Result
- type URLs
- type Youtube
- type YoutubeInfo
- type YoutubeResult
- func (y *YoutubeResult) DownloadURLs() (URLs, error)
- func (y *YoutubeResult) ID() string
- func (y *YoutubeResult) Info() (Info, error)
- func (y *YoutubeResult) IsPlayList() bool
- func (y *YoutubeResult) Marshal() (string, error)
- func (y *YoutubeResult) PageURL() *url.URL
- func (y *YoutubeResult) PlaylistResults(timeout time.Duration) ([]Result, error)
- func (y *YoutubeResult) Title() string
- func (y *YoutubeResult) Unmarshal(b string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterResultType ¶
func RegisterResultType(r Result)
func ResultTypeName ¶
Types ¶
type Result ¶
type Result interface { ID() string IsPlayList() bool PlaylistResults(timeout time.Duration) ([]Result, error) DownloadURLs() (URLs, error) PageURL() *url.URL Title() string Info() (Info, error) Marshal() (string, error) Unmarshal(b string) error }
func ResultType ¶
type YoutubeInfo ¶
type YoutubeInfo struct {
// contains filtered or unexported fields
}
func (*YoutubeInfo) Author ¶
func (y *YoutubeInfo) Author() string
func (*YoutubeInfo) Created ¶
func (y *YoutubeInfo) Created() time.Time
func (*YoutubeInfo) Duration ¶
func (y *YoutubeInfo) Duration() time.Duration
func (*YoutubeInfo) Formats ¶
func (y *YoutubeInfo) Formats() []*Format
func (*YoutubeInfo) ID ¶
func (y *YoutubeInfo) ID() string
func (*YoutubeInfo) PageURL ¶
func (y *YoutubeInfo) PageURL() *url.URL
func (*YoutubeInfo) Title ¶
func (y *YoutubeInfo) Title() string
type YoutubeResult ¶
type YoutubeResult struct {
// contains filtered or unexported fields
}
func (*YoutubeResult) DownloadURLs ¶
func (y *YoutubeResult) DownloadURLs() (URLs, error)
func (*YoutubeResult) ID ¶
func (y *YoutubeResult) ID() string
func (*YoutubeResult) Info ¶
func (y *YoutubeResult) Info() (Info, error)
func (*YoutubeResult) IsPlayList ¶
func (y *YoutubeResult) IsPlayList() bool
func (*YoutubeResult) Marshal ¶
func (y *YoutubeResult) Marshal() (string, error)
func (*YoutubeResult) PageURL ¶
func (y *YoutubeResult) PageURL() *url.URL
func (*YoutubeResult) PlaylistResults ¶
func (y *YoutubeResult) PlaylistResults(timeout time.Duration) ([]Result, error)
func (*YoutubeResult) Title ¶
func (y *YoutubeResult) Title() string
func (*YoutubeResult) Unmarshal ¶
func (y *YoutubeResult) Unmarshal(b string) error
Click to show internal directories.
Click to hide internal directories.