feat(http): add healthcheck endpoints liveness and readiness (#240)

* feat(http): add liveness and readiness endpoints

* feat(http): improve unhealthy msg
This commit is contained in:
Ludvig Lundgren 2022-04-12 18:19:07 +02:00 committed by GitHub
parent 4b74a006c8
commit 2a3b5ce448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 61 additions and 2 deletions

View file

@ -82,6 +82,10 @@ func (db *DB) Close() error {
return nil
}
func (db *DB) Ping() error {
return db.handler.Ping()
}
func (db *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error) {
tx, err := db.handler.BeginTx(ctx, opts)
if err != nil {