Discover Packages
github.com/deqode/GoArcc
servers
healthcheck
db
package
Version:
v0.0.0-...-e5acbb5
Opens a new window with list of versions in this module.
Published: Jul 24, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Checker struct {
DB *gorm .DB
}
Checker is a checker that check a given db
NewPostgresChecker NewChecker returns a new url.Checker with the given URL
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.