yrs

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Unlicense Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManageSchema added in v0.0.3

func ManageSchema(driver, dsn string) (*sql.DB, error)

Types

type Channel

type Channel struct {
	ID           string
	URL          string
	Name         string
	RSS          string
	Autodownload bool
}

type SearchResult added in v0.0.3

type SearchResult struct {
	ID      string
	Title   string
	Channel string
}

type Video

type Video struct {
	ID         string
	URL        string
	Title      string
	Published  time.Time
	ChannelId  string
	Downloaded bool
	Channel    *Channel
}

type Yrs

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

func New

func New(driver, dsn string) (*Yrs, error)

func (*Yrs) GetChannels

func (y *Yrs) GetChannels() ([]Channel, error)

func (*Yrs) GetVideos

func (y *Yrs) GetVideos() ([]Video, error)

func (*Yrs) GetVideosByID added in v0.0.3

func (y *Yrs) GetVideosByID(ids []string) ([]Video, error)

func (*Yrs) Search added in v0.0.3

func (y *Yrs) Search(s string) ([]SearchResult, error)

func (*Yrs) Subscribe

func (y *Yrs) Subscribe(rss string) error

func (*Yrs) SubscribeYouTubeID added in v0.0.6

func (y *Yrs) SubscribeYouTubeID(channelStr string) error

func (*Yrs) Unsubscribe

func (y *Yrs) Unsubscribe(channelID string) error

func (*Yrs) Update

func (y *Yrs) Update() ([]Video, error)

Jump to

Keyboard shortcuts

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