package monitors type CommonMonitor struct { *MonitorHelper } func (the *CommonMonitor) RegisterTask(cron string, fun func()) { the.registerTask(cron, fun) } func (the *CommonMonitor) Start() { the.initial() the.monitorStart() }