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

Struct PeerCallOption

rpc_util.go:323–325  ·  view source on GitHub ↗

PeerCallOption is a CallOption for collecting the identity of the remote peer. The peer field will be populated *after* the RPC completes. # Experimental Notice: This type is EXPERIMENTAL and may be changed or removed in a later release.

Source from the content-addressed store, hash-verified

321// Notice: This type is EXPERIMENTAL and may be changed or removed in a
322// later release.
323type PeerCallOption struct {
324 PeerAddr *peer.Peer
325}
326
327func (o PeerCallOption) before(*callInfo) error { return nil }
328func (o PeerCallOption) after(_ *callInfo, attempt *csAttempt) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected