package
0.0.0-20201102054017-282493799a89
Repository: https://github.com/golangltd/leafltd.git
Documentation: pkg.go.dev
# Packages
Package alts implements the ALTS credential support by gRPC library, which encapsulates all the state needed by a client to authenticate with a server using ALTS and make various assertions, e.g., about the client's identity, role, or whether it is authorized to make a particular call.
Package oauth implements gRPC credentials using OAuth.
# Functions
NewClientTLSFromCert constructs TLS credentials from the input certificate for client.
NewClientTLSFromFile constructs TLS credentials from the input certificate file for client.
NewServerTLSFromCert constructs TLS credentials from the input certificate for server.
NewServerTLSFromFile constructs TLS credentials from the input certificate file and key file for server.
NewTLS uses c to construct a TransportCredentials based on TLS.
# Variables
ErrConnDispatched indicates that rawConn has been dispatched out of gRPC and the caller should not close rawConn.
# Structs
ProtocolInfo provides information regarding the gRPC wire protocol version, security protocol, security protocol version in use, server name, etc.
TLSInfo contains the auth information for a TLS authenticated connection.
# Interfaces
AuthInfo defines the common interface for the auth information the users are interested in.
PerRPCCredentials defines the common interface for the credentials which need to attach security information to every RPC (e.g., oauth2).
TransportCredentials defines the common interface for all the live gRPC wire protocols and supported transport security protocols (e.g., TLS, SSL).