func (m *ModuleMonitor) Every(interval time.Duration, modules ...string) {
	ticker := time.NewTicker(interval)
	go func() {
		for {
			select {
			case <-ticker.C:
				m.Heartbeat(modules...)
			case <-m.exit:
				ticker.Stop()
				return
			}
		}
	}()
}
// Every can be used to automatically send heartbeats based on the given time
// interval.
Every can be used to automatically send heartbeats based on the given time
interval.
// Every can be used to automatically send heartbeats based on the given time // interval .
func (m *ModuleMonitor) Every(interval time.Duration, modules ...string) {
	ticker := time.NewTicker(interval)
	go func() {
		for {
			select {
			case <-ticker.C:
				m.Heartbeat(modules...)
			case <-m.exit:
				ticker.Stop()
				return
			}
		}
	}()
}
func ( m * ModuleMonitor ) Every ( interval time . Duration , modules ... string ) { ticker := time . NewTicker ( interval ) go func ( ) { for { select { case <- ticker . C : m . Heartbeat ( modules ... ) case <- m . exit : ticker . Stop ( ) return } } } ( ) }
Every can be used to automatically send heartbeats based on the given time
interval.
Every can be used to automatically send heartbeats based on the given time interval .