youtube

package module
v0.0.0-...-bda4c95 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 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 Client

type Client struct {
	Proxy string
}

func (*Client) GetChannelVideos

func (c *Client) GetChannelVideos(channelID string) ([]*Video, error)

func (*Client) GetFeed

func (c *Client) GetFeed(feedURL string) (*Feed, error)

type Database

type Database struct {
	DN  string
	DSN string
	// contains filtered or unexported fields
}

func (*Database) AddVideo

func (database *Database) AddVideo(video *Video) error

func (*Database) Close

func (database *Database) Close()

func (*Database) HasVideo

func (database *Database) HasVideo(video *Video) (bool, error)

func (*Database) Migrate

func (database *Database) Migrate() error

type Feed

type Feed struct {
	Entry []*struct {
		ID        string `xml:"id"`
		Title     string `xml:"title"`
		Published string `xml:"published"`
	} `xml:"entry"`
}

type Video

type Video struct {
	ID        string
	Title     string
	Published string
	ChannelID string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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