From c1dd4b1846d17e85b07f91a817c4eab56a7db679 Mon Sep 17 00:00:00 2001 From: DeniskaRediska Date: Mon, 30 May 2022 17:36:04 +0300 Subject: [PATCH] MSP-625 remove health_check proxy --- proxy/health_check/health_check.go | 38 ------------------------------ 1 file changed, 38 deletions(-) delete mode 100644 proxy/health_check/health_check.go diff --git a/proxy/health_check/health_check.go b/proxy/health_check/health_check.go deleted file mode 100644 index d9e80e3..0000000 --- a/proxy/health_check/health_check.go +++ /dev/null @@ -1,38 +0,0 @@ -package health_check - -import ( - "github.com/integration-system/isp-lib/v2/structure" - "github.com/valyala/fasthttp" - "isp-gate-service/domain" -) - -type healthCheckProxy struct { - skipAuth bool - skipExistCheck bool -} - -func NewProxy(skipAuth, skipExistCheck bool) *healthCheckProxy { - return &healthCheckProxy{skipAuth: skipAuth, skipExistCheck: skipExistCheck} -} - -func (p *healthCheckProxy) Consumer(addressList []structure.AddressConfiguration) bool { - return true -} - -func (p *healthCheckProxy) ProxyRequest(ctx *fasthttp.RequestCtx, path string) domain.ProxyResponse { - ctx.Response.SetBody(ctx.Request.Body()) - ctx.Request.SetRequestURI(path) - return domain.Create() -} - -func (p *healthCheckProxy) SkipAuth() bool { - return p.skipAuth -} - -func (p *healthCheckProxy) SkipExistCheck() bool { - return p.skipExistCheck -} - -func (p *healthCheckProxy) Close() { - -}