package monitors import "goInOut/dbOperate" type HttpMonitor struct { HttpClient *dbOperate.HttpHelper *MonitorHelper } func (the *HttpMonitor) RegisterTask(cron string, fun func()) { the.registerTask(cron, fun) } func (the *HttpMonitor) Start() { the.HttpClient.Initial() the.initial() the.monitorStart() }