package peer
import "github.com/etcd-io/etcd/Godeps/_workspace/src/google.golang.org/grpc/peer"
Package peer defines various peer information associated with RPCs and corresponding utils.
Index ¶
Functions ¶
func NewContext ¶
NewContext creates a new context with peer information attached.
Types ¶
type Peer ¶
type Peer struct { // Addr is the peer address. Addr net.Addr // AuthInfo is the authentication information of the transport. // It is nil if there is no transport security being used. AuthInfo credentials.AuthInfo }
Peer contains the information of the peer for an RPC.
func FromContext ¶
FromContext returns the peer information in ctx if it exists.
Source Files ¶
- Version
- v2.3.8+incompatible (latest)
- Published
- Feb 16, 2017
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 month ago –
Tools for package owners.