video

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLiteVideoRepository

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

func NewSQLiteRepository

func NewSQLiteRepository(db *sql.DB) *SQLiteVideoRepository

func (*SQLiteVideoRepository) Create

func (r *SQLiteVideoRepository) Create(subscriptionVideo SubscriptionVideo) (*SubscriptionVideo, error)

func (*SQLiteVideoRepository) Exists added in v1.3.0

func (r *SQLiteVideoRepository) Exists(id string) (bool, error)

func (*SQLiteVideoRepository) GetById

func (*SQLiteVideoRepository) GetByPlaylist

func (r *SQLiteVideoRepository) GetByPlaylist(playlistName string) (*[]SubscriptionVideo, error)

func (*SQLiteVideoRepository) Migrate

func (r *SQLiteVideoRepository) Migrate() error

func (*SQLiteVideoRepository) SetAllRemovedExcept

func (r *SQLiteVideoRepository) SetAllRemovedExcept(excludedIds *[]string) error

func (*SQLiteVideoRepository) Update

type SubscriptionVideo

type SubscriptionVideo struct {
	Id         string
	UploadDate string
	Uploaded   int64
	Removed    int
	Playlist   string
}

Jump to

Keyboard shortcuts

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