nurse/protocols/redis/checks.go
2022-05-13 16:46:31 +02:00

19 lines
351 B
Go

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