Documentation
¶
Index ¶
- type Checker
- func NewHTTP(address string, expectStatusCode int, expectBody string, timeout time.Duration) Checker
- func NewMySQL(dsn string) Checker
- func NewPostgreSQL(dsn string) Checker
- func NewRedis(address string, expectKey string, timeout time.Duration) Checker
- func NewTCP(address string, timeout time.Duration) Checker
- type HTTP
- type MySQL
- type PostgreSQL
- type Redis
- type TCP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is the interface that wraps the basic checker methods.
func NewHTTP ¶
func NewHTTP(address string, expectStatusCode int, expectBody string, timeout time.Duration) Checker
NewHTTP creates the HTTP checker
func NewPostgreSQL ¶
NewPostgreSQL creates the PostgreSQL checker
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP represents HTTP checker
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
MySQL represents MySQL checker
type PostgreSQL ¶
type PostgreSQL struct {
// contains filtered or unexported fields
}
PostgreSQL represents PostgreSQL checker
func (*PostgreSQL) SetLogger ¶
func (p *PostgreSQL) SetLogger(logger log.Logger)
SetLogger sets default logger
Click to show internal directories.
Click to hide internal directories.