client

package
v0.0.0-...-6cc93c1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Drivers = map[Driver]PlaylistReader{
	DriverYoutube: NewYoutubeClient(),
	DriverSpotify: NewSpotifyClient(),
}

Functions

func HandleError

func HandleError(err error, message string)

Types

type Driver

type Driver string
var (
	DriverYoutube Driver = "YouTubeDriver"
	DriverSpotify Driver = "SpotifyDriver"
	DriverApple   Driver = "SpotifyDriver"
)

type PlaylistReader

type PlaylistReader interface {
	Playlists() chan model.Playlist
	PlaylistItems(id string) chan model.PlaylistItem
}

type YoutubeClient

type YoutubeClient struct {
	// contains filtered or unexported fields
}

func NewYoutubeClient

func NewYoutubeClient() (c *YoutubeClient)

func (*YoutubeClient) PlaylistItems

func (c *YoutubeClient) PlaylistItems(id string) chan model.PlaylistItem

func (*YoutubeClient) Playlists

func (c *YoutubeClient) Playlists() chan model.Playlist

Jump to

Keyboard shortcuts

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