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

Method ClientHandshake

test/balancer_test.go:363–367  ·  view source on GitHub ↗
(ctx context.Context, _ string, rawConn net.Conn)

Source from the content-addressed store, hash-verified

361}
362
363func (ac *attrTransportCreds) ClientHandshake(ctx context.Context, _ string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) {
364 ai := credentials.ClientHandshakeInfoFromContext(ctx)
365 ac.attr = ai.Attributes
366 return rawConn, nil, nil
367}
368func (ac *attrTransportCreds) Info() credentials.ProtocolInfo {
369 return credentials.ProtocolInfo{}
370}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected