channel

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid channel")

Functions

func Handler

func Handler(service *youtube.Service) http.HandlerFunc

func RedirectHandler

func RedirectHandler(service *youtube.Service) http.HandlerFunc

Types

type Channel

type Channel struct {
	Service  *youtube.Service
	Username string
	ID       string
	Embed    bool
	Limit    int
}

func New

func New(service *youtube.Service, id, username string) Channel

func (Channel) Feed

func (c Channel) Feed(ctx context.Context) (*feeds.Feed, error)

func (Channel) Meta

func (c Channel) Meta(ctx context.Context) (*youtube.Channel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳