Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHotReloadTLSFromFile ¶
func NewHotReloadTLSFromFile(certFile, keyFile string) credentials.TransportCredentials
Types ¶
type JwtCreds ¶
type JwtCreds struct {
// contains filtered or unexported fields
}
func NewJwtCreds ¶
func (*JwtCreds) GetRequestMetadata ¶
func (j *JwtCreds) GetRequestMetadata(ctx context.Context, in ...string) (md map[string]string, err error)
GetRequestMetadata returns the metadata required to interact with the gRPC server. The token isn't included if it's not set.
func (*JwtCreds) RequireTransportSecurity ¶
RequireTransportSecurity will always return false, for now we'll assume that the service is behind a reverse-proxy with a certificate.
Click to show internal directories.
Click to hide internal directories.