fix(processor): recovery process can be ended in time when the watchdog received stop command.
This commit is contained in:
17
global/vars.go
Normal file
17
global/vars.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
)
|
||||
Reference in New Issue
Block a user