Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface { DisplayName() string IsSupported(term string, query bool) bool Find(term string) (*QueryResult, error) IsLoaded(*Song) bool Load(*Song) error }
func FindByInput ¶
type QueryResult ¶
type Song ¶
type Song struct { Title string `json:"title"` Author string `json:"author"` Thumbnail string `json:"thumbnail"` URL string `json:"url"` MediaURL string `json:"-"` Duration time.Duration `json:"duration"` IsLive bool `json:"isLive"` IsOpus bool `json:"-"` Expires time.Time `json:"-"` // contains filtered or unexported fields }
type YoutubeProvider ¶
type YoutubeProvider struct{}
func (YoutubeProvider) DisplayName ¶
func (YoutubeProvider) DisplayName() string
func (YoutubeProvider) Find ¶
func (provider YoutubeProvider) Find(term string) (*QueryResult, error)
func (YoutubeProvider) IsLoaded ¶
func (YoutubeProvider) IsLoaded(s *Song) bool
func (YoutubeProvider) IsSupported ¶
func (YoutubeProvider) IsSupported(term string, query bool) bool
func (YoutubeProvider) Load ¶
func (provider YoutubeProvider) Load(s *Song) error
Click to show internal directories.
Click to hide internal directories.