nurse/protocols/redis/checks.go

26 lines
493 B
Go
Raw Permalink Normal View History

2022-04-28 16:35:02 +00:00
package redis
import (
2022-09-22 09:46:36 +00:00
"code.icb4dc0.de/prskr/nurse/check"
2022-04-28 16:35:02 +00:00
)
func Module() *check.Module {
m, err := check.NewModule(
2022-05-13 13:38:19 +00:00
"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)
})),
2022-04-28 16:35:02 +00:00
)
if err != nil {
panic(err)
}
return m
2022-04-28 16:35:02 +00:00
}