type Config …
type Bundle …
func NewBundle(cfg Config) Bundle { … }
type bundle …
func (b *bundle) TransportCredentials() grpccredentials.TransportCredentials { … }
func (b *bundle) PerRPCCredentials() grpccredentials.PerRPCCredentials { … }
func (b *bundle) NewWithMode(mode string) (grpccredentials.Bundle, error) { … }
type transportCredential …
func newTransportCredential(cfg *tls.Config) *transportCredential { … }
func (tc *transportCredential) ClientHandshake(ctx context.Context, authority string, rawConn net.Conn) (net.Conn, grpccredentials.AuthInfo, error) { … }
func (tc *transportCredential) ServerHandshake(rawConn net.Conn) (net.Conn, grpccredentials.AuthInfo, error) { … }
func (tc *transportCredential) Info() grpccredentials.ProtocolInfo { … }
func (tc *transportCredential) Clone() grpccredentials.TransportCredentials { … }
func (tc *transportCredential) OverrideServerName(serverNameOverride string) error { … }
type perRPCCredential …
func newPerRPCCredential() *perRPCCredential { … }
func (rc *perRPCCredential) RequireTransportSecurity() bool { … }
func (rc *perRPCCredential) GetRequestMetadata(ctx context.Context, s ...string) (map[string]string, error) { … }
func (b *bundle) UpdateAuthToken(token string) { … }
func (rc *perRPCCredential) UpdateAuthToken(token string) { … }