Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SourceYouTube = YouTubeSource{} SourceSoundCloud = SoundCloudSource{} )
Functions ¶
This section is empty.
Types ¶
type SearchResult ¶ added in v0.0.2
type SearchResult struct {
Title, Uploader, URL, Duration, ID string
Live bool
SourceName string
Extra []string
}
func Search ¶ added in v0.0.2
func Search(query string, limit int, sources ...SearchSource) []*SearchResult
type SearchSource ¶ added in v0.0.2
type SearchSource interface {
Search(query string, limit int) []*SearchResult
}
type SoundCloudSource ¶ added in v0.0.2
type SoundCloudSource struct{}
func (SoundCloudSource) Search ¶ added in v0.0.2
func (s SoundCloudSource) Search(query string, limit int) (results []*SearchResult)
type YouTubeSource ¶ added in v0.0.2
type YouTubeSource struct { }
func (YouTubeSource) Search ¶ added in v0.0.2
func (s YouTubeSource) Search(searchTerm string, limit int) (results []*SearchResult)
Click to show internal directories.
Click to hide internal directories.