Peter Kurfer
4c2aa968d2
- support config file - support reading checks, server definition and endpoint definitions from env
18 lines
340 B
Go
18 lines
340 B
Go
package redis
|
|
|
|
import (
|
|
"github.com/baez90/nurse/check"
|
|
)
|
|
|
|
func Module() *check.Module {
|
|
m, _ := check.NewModule(
|
|
check.WithCheck("ping", check.FactoryFunc(func() check.SystemChecker {
|
|
return new(PingCheck)
|
|
})),
|
|
check.WithCheck("get", check.FactoryFunc(func() check.SystemChecker {
|
|
return new(GetCheck)
|
|
})),
|
|
)
|
|
|
|
return m
|
|
}
|