checkers

package
v1.8.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: AGPL-3.0 Imports: 4 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

type StateDBChecker added in v1.6.0

type StateDBChecker struct {
	// contains filtered or unexported fields
}

StateDBChecker struct for state db connection checker

func NewStateDBChecker added in v1.6.0

func NewStateDBChecker(sdb *statedb.StateDB) StateDBChecker

NewStateDBChecker init state db connection checker

func (StateDBChecker) Check added in v1.6.0

func (sdb StateDBChecker) Check() health.Health

Check state db health

Jump to

Keyboard shortcuts

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