Files
WatchDog_Linux-systemd/global/vars.go

17 lines
234 B
Go

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
)