Documentation ¶
Index ¶
Constants ¶
View Source
const HTTP_TYPE = "http"
View Source
const REDIS_TYPE = "redis"
View Source
const SQL_TYPE = "sql"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckFunc ¶
type CheckFunc func() Result
type created to make the func implement check interface
type Checker ¶
type Checker interface {
Check() Result
}
Checker is a interface used to provide an indication of application health.
func NewFileChecker ¶
type HttpChecker ¶
type HttpChecker struct {
// contains filtered or unexported fields
}
func NewHttpChecker ¶
func NewHttpChecker(name, endpoint string, timeout time.Duration) *HttpChecker
func (HttpChecker) Check ¶
func (receiver HttpChecker) Check() Result
type RedisChecker ¶
type RedisChecker struct {
// contains filtered or unexported fields
}
func NewRedisChecker ¶
func NewRedisChecker(name, address, password string, timeout time.Duration, isTls bool) *RedisChecker
func (*RedisChecker) Check ¶
func (receiver *RedisChecker) Check() Result
type SqlChecker ¶
type SqlChecker struct {
// contains filtered or unexported fields
}
func NewSqlChecker ¶
func NewSqlChecker(name, driverName, dataSourceName string) *SqlChecker
func (SqlChecker) Check ¶
func (receiver SqlChecker) Check() Result
Click to show internal directories.
Click to hide internal directories.