Documentation ¶
Index ¶
Constants ¶
View Source
const ( YoutubeVideoType = "youtube#video" YoutubeChannelType = "youtube#channel" )
Variables ¶
View Source
var Set = wire.NewSet(NewYoutubeClient)
Functions ¶
This section is empty.
Types ¶
type VideoInfos ¶
type VideoInfos []VideoInfo
func (*VideoInfos) ToEntity ¶
func (vs *VideoInfos) ToEntity() musics.Musics
type YoutubeClient ¶
type YoutubeClient interface { GetMusicDetail(videoID string) (*VideoInfo, error) GetMusics(videoIDs []string) (VideoInfos, error) SearchPlaylist(q string, order string, pageToken string) (*v3.SearchListResponse, error) ParseVideoIds(items []*v3.SearchResult) []string ParseVideoTags(ids []string) (TagMap, error) }
func NewYoutubeClient ¶
func NewYoutubeClient(config *configs.Config) (YoutubeClient, error)
Click to show internal directories.
Click to hide internal directories.