19 lines
351 B
Go
19 lines
351 B
Go
package redis
|
|
|
|
import (
|
|
"github.com/baez90/nurse/check"
|
|
)
|
|
|
|
func Module() *check.Module {
|
|
m, _ := 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)
|
|
})),
|
|
)
|
|
|
|
return m
|
|
}
|