db

package
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	DB *gorm.DB
}

Checker is a checker that check a given db

func NewPostgresChecker

func NewPostgresChecker(db *gorm.DB) Checker

NewPostgresChecker NewChecker returns a new url.Checker with the given URL

func (Checker) Check

func (c Checker) Check() health.Health

Check execute queries in the database The first is a simple one used to verify if the database is up If is Up then another query is executed, querying for the database version

Jump to

Keyboard shortcuts

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