Documentation
¶
Index ¶
- type TokenSource
- type YoutubeProvider
- func (y YoutubeProvider) AddToPlaylist(playlistId string, trackId string) error
- func (y YoutubeProvider) CreatePlaylist(name string) (provider.PlaylistID, error)
- func (y YoutubeProvider) FindPlaylistByName(name string) (provider.PlaylistID, error)
- func (y YoutubeProvider) FindTrack(name string) (provider.TrackID, error)
- func (y YoutubeProvider) GetFullPlaylist(id string) (*provider.FullPlaylist, error)
- func (y YoutubeProvider) GetPlaylists() ([]provider.Playlist, error)
- func (y YoutubeProvider) IsLoggedIn() bool
- func (y YoutubeProvider) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenSource ¶
type YoutubeProvider ¶
type YoutubeProvider struct {
// contains filtered or unexported fields
}
func New ¶
func New(tokenProvider provider.TokenProvider) *YoutubeProvider
func (YoutubeProvider) AddToPlaylist ¶
func (y YoutubeProvider) AddToPlaylist(playlistId string, trackId string) error
func (YoutubeProvider) CreatePlaylist ¶
func (y YoutubeProvider) CreatePlaylist(name string) (provider.PlaylistID, error)
func (YoutubeProvider) FindPlaylistByName ¶
func (y YoutubeProvider) FindPlaylistByName(name string) (provider.PlaylistID, error)
func (YoutubeProvider) FindTrack ¶
func (y YoutubeProvider) FindTrack(name string) (provider.TrackID, error)
func (YoutubeProvider) GetFullPlaylist ¶
func (y YoutubeProvider) GetFullPlaylist(id string) (*provider.FullPlaylist, error)
func (YoutubeProvider) GetPlaylists ¶
func (y YoutubeProvider) GetPlaylists() ([]provider.Playlist, error)
func (YoutubeProvider) IsLoggedIn ¶
func (y YoutubeProvider) IsLoggedIn() bool
maybe move to sessions, looks more like it
func (YoutubeProvider) Name ¶
func (y YoutubeProvider) Name() string
Click to show internal directories.
Click to hide internal directories.