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

Method ClientHandshake

internal/transport/transport_test.go:2686–2690  ·  view source on GitHub ↗
(ctx context.Context, _ string, rawConn net.Conn)

Source from the content-addressed store, hash-verified

2684}
2685
2686func (ac *attrTransportCreds) ClientHandshake(ctx context.Context, _ string, rawConn net.Conn) (net.Conn, credentials.AuthInfo, error) {
2687 ai := credentials.ClientHandshakeInfoFromContext(ctx)
2688 ac.attr = ai.Attributes
2689 return rawConn, nil, nil
2690}
2691func (ac *attrTransportCreds) Info() credentials.ProtocolInfo {
2692 return credentials.ProtocolInfo{}
2693}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected