2022-04-28 18:35:02 +02:00
|
|
|
package redis
|
|
|
|
|
|
|
|
import (
|
2022-09-22 11:46:36 +02:00
|
|
|
"code.icb4dc0.de/prskr/nurse/check"
|
2022-04-28 18:35:02 +02:00
|
|
|
)
|
|
|
|
|
2022-05-08 11:00:22 +02:00
|
|
|
func Module() *check.Module {
|
2022-06-18 11:45:45 +02:00
|
|
|
m, err := check.NewModule(
|
2022-05-13 15:38:19 +02:00
|
|
|
"redis",
|
2022-05-08 11:00:22 +02: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 16:59:10 +01:00
|
|
|
check.WithCheck("set", check.FactoryFunc(func() check.SystemChecker {
|
|
|
|
return new(SetCheck)
|
|
|
|
})),
|
2022-04-28 18:35:02 +02:00
|
|
|
)
|
2022-06-18 11:45:45 +02:00
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
2022-05-08 11:00:22 +02:00
|
|
|
return m
|
2022-04-28 18:35:02 +02:00
|
|
|
}
|