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

Function Peer

rpc_util.go:312–314  ·  view source on GitHub ↗

Peer returns a CallOption that retrieves peer information for a unary RPC. The peer field will be populated *after* the RPC completes.

(p *peer.Peer)

Source from the content-addressed store, hash-verified

310// Peer returns a CallOption that retrieves peer information for a unary RPC.
311// The peer field will be populated *after* the RPC completes.
312func Peer(p *peer.Peer) CallOption {
313 return PeerCallOption{PeerAddr: p}
314}
315
316// PeerCallOption is a CallOption for collecting the identity of the remote
317// peer. The peer field will be populated *after* the RPC completes.

Calls

no outgoing calls