monitor

package
v0.0.0-...-a6843ac Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetStatus = "SELECT * FROM status WHERE ID="

	GetStatusID = "SELECT * FROM status where status_name="

	GetActive = "SELECT * FROM channel where archive = "

	GetChanInfo = "SELECT * FROM channel WHERE yt_channelid="

	GetChanVids = "SELECT * FROM video WHERE publisher="

	GetVideoStatus = "SELECT downloaded FROM video WHERE yt_videoid="

	GetLatestVideos = "select * from video where publish_date between unix_timestamp() - 86400 and unix_timestamp() order by publish_date desc"

	GetLastCheck = "select max(lastcheck) from channel"

	InsertNewChannel = "INSERT into channel (displayname, dldir, yt_channelid, lastcheck, archive, notes, date_added) values "
)

Variables

View Source
var ConfigDir = ""
View Source
var ConfigFile = ""
View Source
var DB *sql.DB

Functions

func CheckErr

func CheckErr(err error, msg string)

func CkConfig

func CkConfig() bool

check for configurations

func ConnectDB

func ConnectDB() *sql.DB

func Exists

func Exists(name string) bool

func MonitorStart

func MonitorStart(configfile string)

Types

type Channel

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

type Entry

type Entry struct {
	XMLName   xml.Name   `xml:"entry"`
	ID        string     `xml:"id"`
	VideoId   string     `xml:"videoId"`
	Chanid    string     `xml:"channelId"`
	Title     string     `xml:"title"`
	Published string     `xml:"published"`
	MGroup    MediaGroup `xml:"group"`
}

type Feed

type Feed struct {
	XMLName xml.Name `xml:"feed"`
	Title   string   `xml:"title"`
	Entries []Entry  `xml:"entry"`
}

type MediaGroup

type MediaGroup struct {
	XMLName     xml.Name `xml:"group"`
	Description string   `xml:"description"`
}

type ResultRow

type ResultRow map[string]interface{}
type Search struct {
	ID   int
	Name string
	Link string
}

type Status

type Status struct {
	ID   int
	Name string
}

type Tags

type Tags struct {
	ID   int
	Name string
}

type Video

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

type YTCM

type YTCM struct {
	Db_name     string `json:"db_name"`
	Db_user     string `json:"db_user"`
	Db_password string `json:"db_password"`
	Db_host     string `json:"db_host"`
	Db_port     string `json:"db_port"`
	BaseDL      string `json:"base_download_dir"`
	Defbrowser  string `json:"defbrowser"`
	JD          string `json:"jd"`
	FolderWatch string `json:"folderwatch"`
}

Jump to

Keyboard shortcuts

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