nurse/protocols/redis/checks.go
Peter Kurfer 0faff1d481
Some checks failed
Renovate / renovate (push) Successful in 1m8s
Go build / build (push) Failing after 2m3s
chore: cleanup, add docs, refactor some quirks and prepare release
2023-12-04 16:59:10 +01:00

25 lines
493 B
Go

package redis
import (
"code.icb4dc0.de/prskr/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)
})),
check.WithCheck("set", check.FactoryFunc(func() check.SystemChecker {
return new(SetCheck)
})),
)
if err != nil {
panic(err)
}
return m
}