youtube

package
v0.0.0-...-b21c011 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxResults = 1000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ID   string
	Name string
}

func (Channel) GetID

func (c Channel) GetID() string

func (Channel) String

func (c Channel) String() string

type Client

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

func GetClient

func GetClient() (*Client, error)

func (*Client) GetCommentsByVideoID

func (c *Client) GetCommentsByVideoID(id string, nextPageToken string, ch chan *Comment)

func (*Client) GetUploadIDFromUsername

func (c *Client) GetUploadIDFromUsername(channel Channel) (string, error)

func (*Client) GetUploadsForID

func (c *Client) GetUploadsForID(id string, nextPageToken string, ch chan *Video)

type Comment

type Comment struct {
	VideoID            string `json:"video_id"`
	Text               string `json:"text"`
	Author             string `json:"author"`
	AuthorProfileImage string `json:"author_profile_image"`
	ID                 string `json:"id"`
}

func (Comment) GetID

func (c Comment) GetID() string

type Item

type Item interface {
	GetID() string
}

type Video

type Video struct {
	ID        string    `json:"id"`
	Published time.Time `json:"published"`
}

func (Video) GetID

func (v Video) GetID() string

func (Video) String

func (v Video) String() string

Jump to

Keyboard shortcuts

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