Files
evening_detective_server/internal/repos/health_repo/repo.go
T
2026-10-01 15:52:29 +07:00

20 lines
265 B
Go

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)
}