db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteEpisode

func DeleteEpisode(id uint) error

DeleteEpisode : Delete data of Episode DB

func DeleteKeywordRecFile

func DeleteKeywordRecFile(id uint) error

DeleteKeywordRecFile : Delete Data of KeywordRecFile DB

func DeleteNewAnime

func DeleteNewAnime(id uint) error

DeleteNewAnime : Delete Data of NewAnime DB

func DeleteTitle

func DeleteTitle(id uint) error

DeleteTitle : Delete Data of Title DB

func DeleteVideoFile

func DeleteVideoFile(id uint) error

DeleteVideoFile : Delete Data of VideoFile DB

func InitEpisodeDB

func InitEpisodeDB() error

InitEpisodeDB : Initialize Episode DB

func InitKeywordRecFileDB

func InitKeywordRecFileDB() error

InitKeywordRecFileDB : Initialize KeywordRecFile DB

func InitNewAnimeDB

func InitNewAnimeDB() error

InitNewAnimeDB : Initialize NewAnime DB

func InitTitleDB

func InitTitleDB() error

InitTitleDB : Initialize Title DB

func InitVideoFileDB

func InitVideoFileDB() error

InitVideoFileDB : Initialize VideoFile DB

func InsertEpisode

func InsertEpisode(tid int, epnum int, eptitle string, copyStatus bool) error

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

func InsertNewAnime(tid int, title string, station string, time time.Time) error

InsertNewAnime : Insert Data to NewAnime DB

func InsertTitle

func InsertTitle(tid int, title string, yomi string, year int, active bool) error

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

func UpdateEpisode(id uint, tid int, epnum int, eptitle string, copyStatus bool) error

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

func UpdateNewAnime(id uint, tid int, title string, station string, time time.Time) error

UpdateNewAnime : Update Data of NewAnime DB

func UpdateTitle

func UpdateTitle(id uint, tid int, title string, yomi string, year int, active bool) error

UpdateTitle : Update Data of Title DB

func UpdateVideoFile

func UpdateVideoFile(id uint, tid int, epnum int, pid int, filets string, filemp4hd string, filemp4sd string, station string, time time.Time, drop int, scramble int) error

UpdateVideoFile : Update Data of VideoFile DB

Types

type AnimeEpisode

type AnimeEpisode struct {
	gorm.Model
	TID        int
	EpNum      int
	EpTitle    string
	CopyStatus bool
}

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

type AnimeTitle struct {
	gorm.Model
	TID       int
	Title     string
	TitleYomi string
	Year      int
	Active    bool
}

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

type NewAnime struct {
	gorm.Model
	TID     int
	Title   string
	Station string
	Time    time.Time
}

NewAnime is a struct of video file

func GetAllNewAnime

func GetAllNewAnime() ([]NewAnime, error)

GetAllNewAnime : Get All Data from NewAnime DB

func GetOneNewAnime

func GetOneNewAnime(id uint) (NewAnime, error)

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

func GetAllVideoFile() ([]VideoFile, error)

GetAllVideoFile : Get All Data from VideoFile DB

func GetOneVideoFile

func GetOneVideoFile(id uint) (VideoFile, error)

GetOneVideoFile : Get Data from VideoFile DB

func (VideoFile) String

func (v VideoFile) String() string

Jump to

Keyboard shortcuts

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