MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / dialTCP

Function dialTCP

examples/internal/gateway/gateway.go:52–54  ·  view source on GitHub ↗

dialTCP creates a client connection via TCP. "addr" must be a valid TCP address with a port number.

(addr string)

Source from the content-addressed store, hash-verified

50// dialTCP creates a client connection via TCP.
51// "addr" must be a valid TCP address with a port number.
52func dialTCP(addr string) (*grpc.ClientConn, error) {
53 return grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))
54}
55
56// dialUnix creates a client connection via a unix domain socket.
57// "addr" must be a valid path to the socket.

Callers 1

dialFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected