Documentation
¶
Index ¶
Constants ¶
View Source
const ( VERSION string = "v0.0.1" // software information. AUTHOR string = "abibino-lab" // software information. NAME string = "Mobal ghost spider data collection" // software information. FULL_NAME string = NAME + "_" + VERSION + "(by " + AUTHOR + ")" // software information. TAG string = "mobal" // software information. ICON_PNG string = "" /* 3883-byte string literal not displayed */ )
View Source
const ( WORK_ROOT string = TAG + "_pkg" // software information. CONFIG string = WORK_ROOT + "/config.ini" // software information. CACHE_DIR string = WORK_ROOT + "/cache" // software information. LOG string = WORK_ROOT + "/logs/mobal.log" // software information. LOG_ASYNC bool = true // software information. PHANTOMJS_TEMP string = CACHE_DIR // software information. HISTORY_TAG string = "history" // software information. HISTORY_DIR string = WORK_ROOT + "/" + HISTORY_TAG // software informa SPIDER_EXT string = ".mobal.html" // software information. )
Variables ¶
View Source
var ( CRAWLS_CAP int = setting.DefaultInt("crawlcap", crawlcap) // software information. PHANTOMJS string = setting.String("phantomjs") // software information. PROXY string = setting.String("proxylib") // software information. SPIDER_DIR string = setting.String("spiderdir") // software information. FILE_DIR string = setting.String("fileoutdir") // software information. TEXT_DIR string = setting.String("textoutdir") // software information. DB_NAME string = setting.String("dbname") RUNMODE string = setting.DefaultString("runmode", "prod") // software information. MGO_CONN_STR string = setting.String("mgo::connstring") // software information. MGO_CONN_CAP int = setting.DefaultInt("mgo::conncap", mgoconncap) // software informati MGO_CONN_GC_SECOND int64 = setting.DefaultInt64("mgo::conngcsecond", mgoconngcsecond) // software information. MGO_HOST string = setting.String("mgo::host") MGO_PORT string = setting.String("mgo::port") ES_HOST string = setting.String("es::host") ES_PORT string = setting.String("es::port") // MYSQL_CONN_STR string = setting.String("mysql::connstring") // software information. MYSQL_CONN_CAP int = setting.DefaultInt("mysql::conncap", mysqlconncap) // software information. MYSQL_MAX_ALLOWED_PACKET int = setting.DefaultInt("mysql::maxallowedpacket", mysqlmaxallowedpacketmb) << 20 // software information. KAFKA_BORKERS string = setting.DefaultString("kafka::brokers", kafkabrokers) // software information. LOG_CAP int64 = setting.DefaultInt64("log::cap", logcap) // software information. LogLevel int = logLevel(setting.String("log::level")) // software information. LOG_CONSOLE_LEVEL int = logLevel(setting.String("log::consolelevel")) // software information. LOG_FEEDBACK_LEVEL int = logLevel(setting.String("log::feedbacklevel")) // software information. LOG_LINEINFO bool = setting.DefaultBool("log::lineinfo", loglineinfo) // software information. LOG_SAVE bool = setting.DefaultBool("log::save", logsave) // software information. PRIVATEKEY_PATH string = setting.DefaultString("api::privatekeypath", privatekeypath) PUBLICKEY_PATH string = setting.DefaultString("api::publickeypath", publickeypath) )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.