nurse/redis/checks.go

19 lines
340 B
Go
Raw Normal View History

2022-04-28 16:35:02 +00:00
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)
})),
2022-04-28 16:35:02 +00:00
)
return m
2022-04-28 16:35:02 +00:00
}