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)
| 310 | // Peer returns a CallOption that retrieves peer information for a unary RPC. |
| 311 | // The peer field will be populated *after* the RPC completes. |
| 312 | func 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. |
no outgoing calls