package peer

Import Path
	google.golang.org/grpc/peer (on go.dev)

Dependency Relation
	imports 3 packages, and imported by 2 packages

Involved Source Files Package peer defines various peer information associated with RPCs and corresponding utils.
Package-Level Type Names (total 2, in which 1 are exported)
/* sort exporteds by: | */
Peer contains the information of the peer for an RPC, such as the address and authentication information. Addr is the peer address. AuthInfo is the authentication information of the transport. It is nil if there is no transport security being used. func FromContext(ctx context.Context) (p *Peer, ok bool) func NewContext(ctx context.Context, p *Peer) context.Context func google.golang.org/grpc.Peer(p *Peer) grpc.CallOption
Package-Level Functions (total 2, both are exported)
FromContext returns the peer information in ctx if it exists.
NewContext creates a new context with peer information attached.