Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Crawl = cli.Command{ Name: "crawl", Usage: "scrapy things from internet", Description: `You can choose what you are want.`, Subcommands: []cli.Command{ subcmdCrawlNovel, }, } )
View Source
var ( Db = cli.Command{ Name: "db", Usage: "Create of rebuild database in mysql", Description: `You must take care of this command, cause it will destroy all you datas in database.`, Subcommands: []cli.Command{ subcmdCreateTables, }, } )
View Source
var ( Index = cli.Command{ Name: "index", Usage: "Create of rebuild index in Elasticsearch", Description: `You may need to take care of this command.`, Subcommands: []cli.Command{ subcmdCreateIndices, }, } )
View Source
var Web = cli.Command{ Name: "web", Usage: "Start web server", Description: `You will need to set host and ip first before run, otherwise it will runing with default setting.`, Action: runWeb, Flags: []cli.Flag{ stringFlag("port, p", "9090", "Temporary port number to prevent conflict"), stringFlag("mode, m", "debug", "set the mode of gin"), stringFlag("config, c", "conf/app.yml", "Custom configuration file path"), }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.