Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlaylistClient ¶
type PlaylistClient struct {
YoutubePlaylistClient youtubeiface.YoutubePlaylistServiceAPI
}
PlaylistClient represents the collection of data needed to fullfill boombot's youtube functionality
func NewYoutubePlaylistClient ¶
func NewYoutubePlaylistClient(pls youtubeiface.YoutubePlaylistServiceAPI) *PlaylistClient
NewYoutubePlaylistClient returns a pointer to a new YtClient
func (*PlaylistClient) GetPlaylist ¶
func (c *PlaylistClient) GetPlaylist(arg string) ([]string, error)
GetPlaylist accepts a playlist url and returns a Slice containing the url's of each video in the playlist
func (*PlaylistClient) SearchAndDownload ¶
func (c *PlaylistClient) SearchAndDownload(arg string) (string, error)
SearchAndDownload returns a string search query based off the provided play command arguments
type VideoClient ¶
type VideoClient struct {
YoutubeVideoClient youtubeiface.YoutubeVideoDetailsAPI
}
func NewVideoClient ¶
func NewVideoClient(vc youtubeiface.YoutubeVideoDetailsAPI) *VideoClient
func (*VideoClient) GetVideoDetails ¶
func (c *VideoClient) GetVideoDetails(id string)
type VideoClientTest ¶
type VideoClientTest struct {
YoutubeVideoDetails youtubeiface.YoutubeVideoDetailsAPI
}
func NewVideoClientTest ¶
func NewVideoClientTest(vcd youtubeiface.YoutubeVideoDetailsAPI) *VideoClientTest
Click to show internal directories.
Click to hide internal directories.