1
0
forked from baron/baron-sso

헬스체크 추가

This commit is contained in:
2026-01-20 10:10:50 +09:00
parent 3c41c0dc62
commit ffe96c8c65
6 changed files with 94 additions and 18 deletions

View File

@@ -79,3 +79,10 @@ func (r *ClickHouseRepository) Create(log *domain.AuditLog) error {
log.Details,
)
}
func (r *ClickHouseRepository) Ping(ctx context.Context) error {
if r.conn == nil {
return fmt.Errorf("clickhouse connection is nil")
}
return r.conn.Ping(ctx)
}