youtube

package
v0.0.0-...-be84f31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenSource

type TokenSource struct {
	Source oauth2.Token
}

func (TokenSource) Token

func (s TokenSource) Token() (*oauth2.Token, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL