config

package
v0.0.0-...-6986f26 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

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 GetNodes

func GetNodes() map[string]string

func LoadApp

func LoadApp()

func LoadBloom

func LoadBloom()

func LoadClient

func LoadClient()

func LoadCrawler

func LoadCrawler()

func LoadServer

func LoadServer()

func LoadSoc

func LoadSoc()

Types

This section is empty.

Jump to

Keyboard shortcuts

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