Documentation ¶
Index ¶
- func DecompressFiles(tmpDir string, downloadList []string)
- func DownloadFiles(tmpDir string, downloadList []string)
- func ImportName(filename string, dbUrl string)
- func ImportTitleAkas(filename string, dbUrl string)
- func ImportTitleBasics(filename string, dbUrl string)
- func ImportTitleCrew(filename string, dbUrl string)
- func ImportTitleEpisodes(filename string, dbUrl string)
- func ImportTitlePrincipals(filename string, dbUrl string)
- func ImportTitleRatings(filename string, dbUrl string)
- func SanityzeDb(dbUrl string)
- type JSONView
- type MainController
- type MainFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecompressFiles ¶
func DownloadFiles ¶
func ImportName ¶
func ImportTitleAkas ¶
func ImportTitleBasics ¶
func ImportTitleCrew ¶
func ImportTitleEpisodes ¶
func ImportTitlePrincipals ¶
func ImportTitleRatings ¶
func SanityzeDb ¶
func SanityzeDb(dbUrl string)
Types ¶
type JSONView ¶
type JSONView struct {
Titles []models.TitleBasic `json:"titles"`
}
JSONView represents
type MainController ¶
type MainController struct {
// contains filtered or unexported fields
}
MainController represents the controller for operating on the Main
func NewMainController ¶
func NewMainController(db *gorm.DB) *MainController
NewMainController : Comment for
func (MainController) GetMain ¶
func (mc MainController) GetMain(w http.ResponseWriter, r *http.Request, p httprouter.Params)
GetMain main data
func (MainController) SearchForTitle ¶
func (mc MainController) SearchForTitle(w http.ResponseWriter, r *http.Request, p httprouter.Params)
SearchForTitle main data
type MainFactory ¶
type MainFactory struct {
// contains filtered or unexported fields
}
MainFactory represents the maucine factory
func NewMainFactory ¶
func NewMainFactory(db *gorm.DB) *MainFactory
NewMainFactory : the main factory contructor
func (MainFactory) GetMain ¶
func (mc MainFactory) GetMain() JSONView
GetMain return JSONView to send on internet
func (MainFactory) SearchForTitle ¶
func (mc MainFactory) SearchForTitle(query string) JSONView
SearchForTitle return JSONView to send on internet
Click to show internal directories.
Click to hide internal directories.