mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
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:
parent
4b74a006c8
commit
2a3b5ce448
4 changed files with 61 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue