MCPcopy
hub / github.com/grpc/grpc-go / ProxyServer

Struct ProxyServer

internal/testutils/proxyserver/proxyserver.go:37–43  ·  view source on GitHub ↗

ProxyServer represents a test proxy server.

Source from the content-addressed store, hash-verified

35
36// ProxyServer represents a test proxy server.
37type ProxyServer struct {
38 lis net.Listener
39 in net.Conn // Connection from the client to the proxy.
40 out net.Conn // Connection from the proxy to the backend.
41 onRequest func(*http.Request) // Function to check the request sent to proxy.
42 Addr string // Address of the proxy
43}
44
45const defaultTestTimeout = 10 * time.Second
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected