ydata

package
v0.0.0-...-94e0628 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATUSQueued1      = 1
	STATUSDownloading2 = 2
	STATUSDownloaded3  = 3
	STATUSError4       = 4
	STATUSSkipped5     = 5
)

Variables

This section is empty.

Functions

func YQueueAdd

func YQueueAdd(url string, key string, who string) (int, error)

YQueueAdd adds a new video to the queue (db layer)

func YQueueDelete

func YQueueDelete(id int) error

YQueueDelete ...

func YQueueGetUsers

func YQueueGetUsers() ([]string, error)

func YQueueUpdate

func YQueueUpdate(id int, status int, file ...string) error

YQueueUpdate ...

Types

type YQueue

type YQueue struct {
	ID             int
	YTUrl          string
	YTKey          sql.NullString
	Status         int
	File           sql.NullString
	LastUpdate     sql.NullString
	Who            sql.NullString
	FileSize       int64
	WhenDownloaded string
	FileName       string
}

YQueue ...

func YQueueGet

func YQueueGet(id int) (YQueue, error)

YQueueGet ...

func YQueueGetAll

func YQueueGetAll(status int, who string) ([]YQueue, error)

YQueueGetAll ...

func (*YQueue) SetFileSize

func (yq *YQueue) SetFileSize(fileSize int64)

Jump to

Keyboard shortcuts

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