This commit is contained in:
2026-10-01 15:52:29 +07:00
parent cd49b9164b
commit f8d78b04ff
2 changed files with 22 additions and 5 deletions
+19
View File
@@ -0,0 +1,19 @@
package health_repo
import (
"context"
"github.com/jackc/pgx/v5/pgxpool"
)
type Repo struct {
pool *pgxpool.Pool
}
func New(pool *pgxpool.Pool) *Repo {
return &Repo{pool: pool}
}
func (r *Repo) Check(ctx context.Context) error {
return r.pool.Ping(ctx)
}