import "gocloud.dev/server/health/sqlhealth"
Package sqlhealth provides a health check for a SQL database connection.
type Checker struct {
// contains filtered or unexported fields
}
Checker checks the health of a SQL database.
New starts a new asynchronous ping of the SQL database. Pings will be sent until one succeeds or Stop is called, whichever comes first.
CheckHealth returns nil iff the ping started by New has returned success.
Stop stops any ongoing ping of the database.
Package sqlhealth imports 4 packages (graph) and is imported by 4 packages. Updated 2019-07-09. Refresh now. Tools for package owners.