Documentation
¶
Index ¶
Constants ¶
View Source
const ( // SpiderInterval 爬虫运行时间间隔 SpiderInterval = time.Minute * 30 // ListenInterval 远程服务器监听时间间隔 ListenInterval = time.Minute * 5 // IndexValueGUID 保存历史数据唯一性的字段"ValueGUID"的集合 // 仅保存非实时数据的ValueGUID IndexValueGUID = "indexes.txt" )
View Source
const ( SheetName = "Sheet1" IndexFile = "诚通指标配置.xlsx" )
Variables ¶
This section is empty.
Functions ¶
func InitIndexConfigFromExcel ¶
func InitIndexConfigFromExcel() (ics []*model.IndexConfig, err error)
InitIndexConfigFromExcel 从Excel读取指标配置
func RemoteConnect ¶
func RemoteConnect() bool
func RemoteListen ¶
func RemoteListen(listener chan struct{})
RemoteListen 每隔5分钟检测一次远程服务器接口是否健康 如果远程服务器接口异常,则下发邮件通知并停止应用,待远程服务器接口正常后重新启动爬虫服务
func RunApplication ¶
func RunApplication()
Types ¶
Click to show internal directories.
Click to hide internal directories.