Documentation ¶
Index ¶
- func DeleteEpisode(id uint) error
- func DeleteKeywordRecFile(id uint) error
- func DeleteNewAnime(id uint) error
- func DeleteTitle(id uint) error
- func DeleteVideoFile(id uint) error
- func InitEpisodeDB() error
- func InitKeywordRecFileDB() error
- func InitNewAnimeDB() error
- func InitTitleDB() error
- func InitVideoFileDB() error
- func InsertEpisode(tid int, epnum int, eptitle string, copyStatus bool) error
- func InsertKeywordRecFile(keyword string, title string, pid int, filets string, filemp4hd string, ...) error
- func InsertNewAnime(tid int, title string, station string, time time.Time) error
- func InsertTitle(tid int, title string, yomi string, year int, active bool) error
- func InsertVideoFile(tid int, epnum int, pid int, filets string, filemp4hd string, filemp4sd string, ...) error
- func UpdateEpisode(id uint, tid int, epnum int, eptitle string, copyStatus bool) error
- func UpdateKeywordRecFile(id uint, keyword string, title string, pid int, filets string, ...) error
- func UpdateNewAnime(id uint, tid int, title string, station string, time time.Time) error
- func UpdateTitle(id uint, tid int, title string, yomi string, year int, active bool) error
- func UpdateVideoFile(id uint, tid int, epnum int, pid int, filets string, filemp4hd string, ...) error
- type AnimeEpisode
- type AnimeTitle
- type AnimeTitleList
- type KeywordRecFile
- type NewAnime
- type VideoFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteKeywordRecFile ¶
DeleteKeywordRecFile : Delete Data of KeywordRecFile DB
func DeleteNewAnime ¶
DeleteNewAnime : Delete Data of NewAnime DB
func DeleteVideoFile ¶
DeleteVideoFile : Delete Data of VideoFile DB
func InitKeywordRecFileDB ¶
func InitKeywordRecFileDB() error
InitKeywordRecFileDB : Initialize KeywordRecFile DB
func InsertEpisode ¶
InsertEpisode : Insert data to Episode DB
func InsertKeywordRecFile ¶
func InsertKeywordRecFile(keyword string, title string, pid int, filets string, filemp4hd string, filemp4sd string, station string, time time.Time, drop int, scramble int, cp bool) error
InsertKeywordRecFile : Insert Data to KeywordRecFile DB
func InsertNewAnime ¶
InsertNewAnime : Insert Data to NewAnime DB
func InsertTitle ¶
InsertTitle : Insert Data to Title DB
func InsertVideoFile ¶
func InsertVideoFile(tid int, epnum int, pid int, filets string, filemp4hd string, filemp4sd string, station string, time time.Time, drop int, scramble int) error
InsertVideoFile : Insert Data to VideoFile DB
func UpdateEpisode ¶
UpdateEpisode : Update data of Episode DB
func UpdateKeywordRecFile ¶
func UpdateKeywordRecFile(id uint, keyword string, title string, pid int, filets string, filemp4hd string, filemp4sd string, station string, time time.Time, drop int, scramble int, cp bool) error
UpdateKeywordRecFile : Update Data of KeywordRecFile DB
func UpdateNewAnime ¶
UpdateNewAnime : Update Data of NewAnime DB
func UpdateTitle ¶
UpdateTitle : Update Data of Title DB
Types ¶
type AnimeEpisode ¶
AnimeEpisode is a struct of anime episode
func GetAllEpisode ¶
func GetAllEpisode() ([]AnimeEpisode, error)
GetAllEpisode : Get All Data from Episode DB
func GetOneEpisode ¶
func GetOneEpisode(id uint) (AnimeEpisode, error)
GetOneEpisode : Get Data from Episode DB
type AnimeTitle ¶
AnimeTitle is a struct of anime title
func GetOneTitle ¶
func GetOneTitle(id uint) (AnimeTitle, error)
GetOneTitle : Get Data from Title DB
func (AnimeTitle) String ¶
func (a AnimeTitle) String() string
type AnimeTitleList ¶
type AnimeTitleList []AnimeTitle
func GetAllTitle ¶
func GetAllTitle() (AnimeTitleList, error)
GetAllTitle : Get All Data from Title DB
func (AnimeTitleList) Len ¶
func (a AnimeTitleList) Len() int
func (AnimeTitleList) Less ¶
func (a AnimeTitleList) Less(i, j int) bool
func (AnimeTitleList) Swap ¶
func (a AnimeTitleList) Swap(i, j int)
type KeywordRecFile ¶
type KeywordRecFile struct { gorm.Model Keyword string Title string PID int FileTS string FileMP4HD string FileMP4SD string Station string Time time.Time Drop int Scramble int Copy bool }
KeywordRecFile is a struct of video file
func GetAllKeywordRecFile ¶
func GetAllKeywordRecFile() ([]KeywordRecFile, error)
GetAllKeywordRecFile : Get All Data from KeywordRecFile DB
func GetOneKeywordRecFile ¶
func GetOneKeywordRecFile(id uint) (KeywordRecFile, error)
GetOneKeywordRecFile : Get Data from KeywordRecFile DB
func (KeywordRecFile) String ¶
func (v KeywordRecFile) String() string
type NewAnime ¶
NewAnime is a struct of video file
func GetAllNewAnime ¶
GetAllNewAnime : Get All Data from NewAnime DB
func GetOneNewAnime ¶
GetOneNewAnime : Get Data from NewAnime DB
type VideoFile ¶
type VideoFile struct { gorm.Model TID int EpNum int PID int FileTS string FileMP4HD string FileMP4SD string Station string Time time.Time Drop int Scramble int }
VideoFile is a struct of video file
func GetAllVideoFile ¶
GetAllVideoFile : Get All Data from VideoFile DB
func GetOneVideoFile ¶
GetOneVideoFile : Get Data from VideoFile DB