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

Function clientLocalHandshake

credentials/local/local_test.go:101–111  ·  view source on GitHub ↗

Client local handshake implementation.

(conn net.Conn, lisAddr string)

Source from the content-addressed store, hash-verified

99
100// Client local handshake implementation.
101func clientLocalHandshake(conn net.Conn, lisAddr string) (credentials.AuthInfo, error) {
102 cred := NewCredentials()
103 ctx, cancel := context.WithTimeout(context.Background(), defaultTestTimeout)
104 defer cancel()
105
106 _, authInfo, err := cred.ClientHandshake(ctx, lisAddr, conn)
107 if err != nil {
108 return nil, err
109 }
110 return authInfo, nil
111}
112
113// Client connects to a server with local credentials.
114func clientHandle(hs func(net.Conn, string) (credentials.AuthInfo, error), network, lisAddr string) (credentials.AuthInfo, error) {

Callers

nothing calls this directly

Calls 2

NewCredentialsFunction · 0.70
ClientHandshakeMethod · 0.65

Tested by

no test coverage detected