Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresChecker ¶
type PostgresChecker struct {
// contains filtered or unexported fields
}
PostgresChecker struct to check current status of the db
func NewCheckerWithDB ¶
func NewCheckerWithDB(db *sql.DB) PostgresChecker
NewCheckerWithDB creates new instance of the PostgresChecker
func (PostgresChecker) Check ¶
func (c PostgresChecker) Check() health.Health
Check function check is db is responding and returns status, version of db and id of the last migration
Click to show internal directories.
Click to hide internal directories.