Documentation ¶
Index ¶
- func NewDBChecker(name, checkSQL, versionSQL string, db *sql.DB) health.Checker
- func NewDefaultRedisChecker(client *redis.Client) health.Checker
- func NewMySQLChecker(db *sql.DB) health.Checker
- func NewPostgreSQLChecker(db *sql.DB) health.Checker
- func NewRabbitChecker(conn *amqp.Connection) health.Checker
- func NewRedisChecker(name string, client *redis.Client) health.Checker
- type DBChecker
- type RabbitChecker
- type Redis
- type RedisChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBChecker ¶
NewRedisChecker returns a new db.DBChecker with the given URL
func NewDefaultRedisChecker ¶
NewDefaultRedisChecker returns a new redis.Checker configured with a custom Redis implementation
func NewMySQLChecker ¶
NewMySQLChecker returns a new db.DBChecker configured for use in MySQL
func NewPostgreSQLChecker ¶
NewPostgreSQLChecker returns a new db.DBChecker configured for use in PostgreSQL
func NewRabbitChecker ¶
func NewRabbitChecker(conn *amqp.Connection) health.Checker
Types ¶
type DBChecker ¶
type DBChecker struct {
// contains filtered or unexported fields
}
DBChecker is a checker that check a database connection
type RabbitChecker ¶
type RabbitChecker struct {
// contains filtered or unexported fields
}
func (RabbitChecker) Check ¶
func (c RabbitChecker) Check() health.Health
func (RabbitChecker) Name ¶
func (c RabbitChecker) Name() string
type RedisChecker ¶
type RedisChecker struct {
// contains filtered or unexported fields
}
Checker is a checker that check a given redis
func (RedisChecker) Check ¶
func (c RedisChecker) Check() health.Health
Check obtain the version string from redis info command
func (RedisChecker) Name ¶
func (c RedisChecker) Name() string
Click to show internal directories.
Click to hide internal directories.