package monitors import "goUpload/dbHelper" type HttpMonitor struct { HttpClient *dbHelper.HttpHelper *MonitorHelper } func (the *HttpMonitor) RegisterFun(fun func()) { the.registerFun(fun) } func (the *HttpMonitor) Start() { the.HttpClient.Initial() the.initial() the.monitorStart() }