(port string, cache *common.Deployments, cp proto.CpiInterfaceClient, outputFile string, loadBalancingPolicy load_balancing.LoadBalancingPolicy)
| 59 | } |
| 60 | |
| 61 | func NewProxyingService(port string, cache *common.Deployments, cp proto.CpiInterfaceClient, outputFile string, loadBalancingPolicy load_balancing.LoadBalancingPolicy) *ProxyingService { |
| 62 | return &ProxyingService{ |
| 63 | Host: utils.Localhost, |
| 64 | Port: port, |
| 65 | Cache: cache, |
| 66 | CPInterface: cp, |
| 67 | LoadBalancingPolicy: loadBalancingPolicy, |
| 68 | |
| 69 | Tracing: tracing.NewProxyTracingService(outputFile), |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | func (ps *ProxyingService) StartProxyServer() { |
| 74 | proxy := net2.NewProxy() |
no test coverage detected