From fd6eb5d187ac9e71fbee79733f84fd30724dcbda Mon Sep 17 00:00:00 2001 From: godchen Date: Mon, 4 Oct 2021 08:14:31 +0800 Subject: [PATCH] [skip ci]Add util healthz comment (#9171) Signed-off-by: godchen --- internal/util/healthz/content_type.go | 4 +++- internal/util/healthz/router.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/util/healthz/content_type.go b/internal/util/healthz/content_type.go index 5976c1a292..d1ff3cca02 100644 --- a/internal/util/healthz/content_type.go +++ b/internal/util/healthz/content_type.go @@ -12,6 +12,8 @@ package healthz const ( + // ContentTypeHeader is the health check request type header. ContentTypeHeader = "Content-Type" - ContentTypeText = "text/plain" + // ContentTypeHeader is the health check request type text. + ContentTypeText = "text/plain" ) diff --git a/internal/util/healthz/router.go b/internal/util/healthz/router.go index e884030019..d2b4be45f0 100644 --- a/internal/util/healthz/router.go +++ b/internal/util/healthz/router.go @@ -11,4 +11,5 @@ package healthz +// HealthzRouterPath is default path for check health state. const HealthzRouterPath = "/healthz"