Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Cfg *ini.File //app ISDEBUG bool //0代表client, 1代表server, 2代表soc APPMODE int TaskDispatch_Port string ServerName string MysqlDsn string Mongo_Url string Document_SavePath string //server Grpc_Port string TaskLimit int GetTask_Interval time.Duration Soc_Server_Address string //client ClientName string Server_IP string TaskInfo_DB string TaskResult_DB string TaskResult_ResultCollection string TaskResult_ResultHistoryCollection string TaskResult_AlertCollection string URLResult_Cllection string //soc HTTP_PORT int Read_Timeout time.Duration Write_Timeout time.Duration //bloom Bloom_Redis_Server string Bloom_Redis_Psd string Bloom_Redis_Db int Bloom_Redis_Node_Prefix string Bloom_Node_BitLen int Bloom_Node_HashCount uint Redis_Bloom_Url_Prefix string //crawler TASK_TIMEOUT int64 CAPACITY int = 10 PAGE_Wait int64 Cache_Path string )
Functions ¶
func LoadClient ¶
func LoadClient()
func LoadCrawler ¶
func LoadCrawler()
func LoadServer ¶
func LoadServer()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.