nurse/redis/checks.go
Peter Kurfer 4c2aa968d2
Implement config reading
- support config file
- support reading checks, server definition and endpoint definitions from env
2022-05-08 11:00:22 +02:00

18 lines
340 B
Go

package redis
import (
"github.com/baez90/nurse/check"
)
func Module() *check.Module {
m, _ := check.NewModule(
check.WithCheck("ping", check.FactoryFunc(func() check.SystemChecker {
return new(PingCheck)
})),
check.WithCheck("get", check.FactoryFunc(func() check.SystemChecker {
return new(GetCheck)
})),
)
return m
}