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