playlist

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid playlist")
View Source
var ErrLimit = errors.New("exceeded fetch limit")

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Types

type Item

type Item youtube.PlaylistItemSnippet

func (Item) FeedItem

func (i Item) FeedItem(disableIframe bool) (*feeds.Item, error)

type Playlist

type Playlist struct {
	Service *youtube.Service
	Context context.Context
	Id      string
}

func New

func New(service *youtube.Service, ctx context.Context, id string) Playlist

func (Playlist) Feed

func (p Playlist) Feed(disableIframe bool) (*feeds.Feed, error)

func (Playlist) FeedItems

func (p Playlist) FeedItems(disableIframe bool) ([]*feeds.Item, error)

func (Playlist) Items

func (p Playlist) Items() ([]*Item, error)

func (Playlist) Meta

func (p Playlist) Meta() (*youtube.PlaylistSnippet, error)

Jump to

Keyboard shortcuts

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