package global import ( "sync" ) type ServiceMonitor struct { ServiceName string StopChan chan struct{} Running bool Recovery bool } var ( Monitors = make(map[string]*ServiceMonitor) MonitorsMutex sync.RWMutex )