lib

package
v0.0.0-...-539f0e4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2018 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecompressFiles

func DecompressFiles(tmpDir string, downloadList []string)

func DownloadFiles

func DownloadFiles(tmpDir string, downloadList []string)

func ImportName

func ImportName(filename string, dbUrl string)

func ImportTitleAkas

func ImportTitleAkas(filename string, dbUrl string)

func ImportTitleBasics

func ImportTitleBasics(filename string, dbUrl string)

func ImportTitleCrew

func ImportTitleCrew(filename string, dbUrl string)

func ImportTitleEpisodes

func ImportTitleEpisodes(filename string, dbUrl string)

func ImportTitlePrincipals

func ImportTitlePrincipals(filename string, dbUrl string)

func ImportTitleRatings

func ImportTitleRatings(filename string, dbUrl string)

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

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

Jump to

Keyboard shortcuts

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