MCPcopy Create free account
hub / github.com/eth-easl/dirigent / NewProxyingService

Function NewProxyingService

internal/data_plane/proxy/sync_proxy_handler.go:61–71  ·  view source on GitHub ↗
(port string, cache *common.Deployments, cp proto.CpiInterfaceClient, outputFile string, loadBalancingPolicy load_balancing.LoadBalancingPolicy)

Source from the content-addressed store, hash-verified

59}
60
61func 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
73func (ps *ProxyingService) StartProxyServer() {
74 proxy := net2.NewProxy()

Callers 1

GetProxyServerMethod · 0.92

Calls 1

NewProxyTracingServiceFunction · 0.92

Tested by

no test coverage detected