Documentation ¶
Overview ¶
Package sqlhealth provides a health check for a SQL database connection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker checks the health of a SQL database.
func New ¶
New starts a new asynchronous ping of the SQL database. Pings will be sent until one succeeds or Stop is called, whichever comes first.
func (*Checker) CheckHealth ¶
CheckHealth returns nil iff the ping started by New has returned success.
Click to show internal directories.
Click to hide internal directories.