Documentation ¶
Index ¶
- func ChannelSearch(dbname, GlobalStatus, str, searchType string) *sql.Rows
- func CheckCount(dbname, cat string) (count int)
- func CheckErr(err error, msg string)
- func DBCheck(dbname string) bool
- func DateConvert(unixtime int) string
- func DateConvertToUnix(d string) string
- func DateConvertTrim(unixtime int, limit int) string
- func DbConnect(dbname string) *sql.DB
- func DeleteChannel(dbname, chanid string)
- func Exists(name string) bool
- func GetAllSearches(dbname string) *sql.Rows
- func GetAllStatus(dbname string) *sql.Rows
- func GetAllTags(dbname, ob string) *sql.Rows
- func GetChanExist(dbname, chanid string) (count int)
- func GetChannelVids(dbname, publisher string) *sql.Rows
- func GetChannels(dbname, cat, ob string) *sql.Rows
- func GetLastCheck(dbname string) int
- func GetLastDownload(dbname, chanid string) int
- func GetLatestVideos(dbname string) *sql.Rows
- func GetStatus(dbname, status string) string
- func GetStatusIDI(dbname, status string) int
- func GetStatusName(dbname, status string) string
- func GetVideoExist(dbname, videoid string) (count int)
- func InsertChannel(dbname string, channel Channel) bool
- func InsertVideo(...)
- func ModChanSettings(dbname, channelURL, newChanURL, displayname, channelDirectory, textArea string, ...) bool
- func MoveTo(dbname, chanid, cat string)
- func Openbrowser(url, defbrowser string)
- func SearchCount(dbname string) (count int)
- func SearchDelete(dbname, id string) bool
- func SearchInsert(dbname, name, link string) bool
- func SearchUpdate(dbname, id, name, link string) bool
- func StatusCount(dbname string) (count int)
- func StatusInsert(dbname, status string)
- func StatusUpdate(dbname, id, status string)
- func TagCount(dbname string) (count int)
- func TagInsert(dbname, tag string)
- func TagUpdate(dbname, id, tag string)
- func UpdateChanLastPub(dbname, chanid, unix string)
- func UpdateChecked(dbname, chanid string)
- func UpdateFeedCT(dbname, chanid string, feedCount int)
- type Category
- type Channel
- type Search
- type Tags
- type Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelSearch ¶
search channels by some string (tags, notes, channel name, channel directory, channel with a video by title)
func CheckCount ¶
channel related queries get a count of channels by category
func DateConvert ¶
convert a unix date to a human readable date
func DateConvertToUnix ¶
convert standard date to unix for database
func DateConvertTrim ¶
convert a date and trim stuff we don't want to see
func DbConnect ¶
generic database connect setting cach size journal mode and foreign key constraints
func DeleteChannel ¶
func DeleteChannel(dbname, chanid string)
delete a channel (with FK constraints all associated videos will be deleted)
func GetAllSearches ¶
search related queries get all custom search URLS
func GetAllStatus ¶
status related queries get all status needs to be renamed to get all category but I'm being lazy today
func GetAllTags ¶
tag related queries get all tags from the table
func GetChanExist ¶
check if the channel exists
func GetChannelVids ¶
get all videos for a particular channel
func GetLastDownload ¶
get the last download date for a particular channel
func GetLatestVideos ¶
video related queries this is for the main display to show the latest downloded videos
func GetStatusIDI ¶
return the integer value of the status id from name
func InsertVideo ¶
func InsertVideo(dbname, videoid, title, description, publisher, publish_date, downloaded string)
insert a new video to the table
func ModChanSettings ¶
func ModChanSettings(dbname, channelURL, newChanURL, displayname, channelDirectory, textArea string, statusSelector int) bool
modify channel settings it will even update the channel id key and cascade to the video table
func StatusCount ¶
get a count of the number of categories
func UpdateChanLastPub ¶
func UpdateChanLastPub(dbname, chanid, unix string)
update the last published date for a channel
func UpdateChecked ¶
func UpdateChecked(dbname, chanid string)
update the last time a channel was checked for new content
func UpdateFeedCT ¶
update the number of videos showing in the feed