nurse/protocols/redis/checks.go

23 lines
387 B
Go

package redis
import (
"github.com/baez90/nurse/check"
)
func Module() *check.Module {
m, err := 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)
})),
)
if err != nil {
panic(err)
}
return m
}