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
|
|
|
)
|
|
|
|
|
2022-05-08 09:00:22 +00:00
|
|
|
func Module() *check.Module {
|
2022-06-18 09:45:45 +00:00
|
|
|
m, err := check.NewModule(
|
2022-05-13 13:38:19 +00:00
|
|
|
"redis",
|
2022-05-08 09:00:22 +00:00
|
|
|
check.WithCheck("ping", check.FactoryFunc(func() check.SystemChecker {
|
|
|
|
return new(PingCheck)
|
|
|
|
})),
|
|
|
|
check.WithCheck("get", check.FactoryFunc(func() check.SystemChecker {
|
|
|
|
return new(GetCheck)
|
|
|
|
})),
|
2023-12-04 15:59:10 +00:00
|
|
|
check.WithCheck("set", check.FactoryFunc(func() check.SystemChecker {
|
|
|
|
return new(SetCheck)
|
|
|
|
})),
|
2022-04-28 16:35:02 +00:00
|
|
|
)
|
2022-06-18 09:45:45 +00:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
2022-05-08 09:00:22 +00:00
|
|
|
return m
|
2022-04-28 16:35:02 +00:00
|
|
|
}
|