func NewProxy(configuration *ProxyArguments) *httputil.ReverseProxy {
	proto := configuration.Protocol
	host := configuration.Host
	port := configuration.Port
	path := configuration.Path

	purl := fmt.Sprintf("%v://%v:%v%v", proto, host, port, path)

	target, err := url.Parse(purl)
	if err != nil {
		log.Fatalf("err: %+v", err)
	}

	return httputil.NewSingleHostReverseProxy(target)
}
// NewProxy - creates proxy instance
creates proxy instance
// NewProxy - creates proxy instance
func NewProxy(configuration *ProxyArguments) *httputil.ReverseProxy {
	proto := configuration.Protocol
	host := configuration.Host
	port := configuration.Port
	path := configuration.Path
	purl := fmt.Sprintf("%v://%v:%v%v", proto, host, port, path)
	target, err := url.Parse(purl)
	if err != nil {
		log.Fatalf("err: %+v", err)
	}
	return httputil.NewSingleHostReverseProxy(target)
}
func NewProxy ( configuration * ProxyArguments ) * httputil . ReverseProxy { proto := configuration . Protocol host := configuration . Host port := configuration . Port path := configuration . Path purl := fmt . Sprintf ( " " , proto , host , port , path ) target , err := url . Parse ( purl ) if err != nil { log . Fatalf ( " " , err ) } return httputil . NewSingleHostReverseProxy ( target ) }
creates proxy instance
creates proxy instance