checkers

package
v1.2.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL