Documentation ¶
Index ¶
Constants ¶
View Source
const ( Authorization string = "authorization" Basic string = "basic" Bearer string = "bearer" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyAuth ¶
type APIKeyAuth struct {
// contains filtered or unexported fields
}
APIKeyAuth API key based authentication.
It implements the interface credentials.PerRPCCredentials.
func NewAPIKeyAuth ¶
func NewAPIKeyAuth(key string) *APIKeyAuth
func (*APIKeyAuth) GetRequestMetadata ¶
func (*APIKeyAuth) RequireTransportSecurity ¶
func (k *APIKeyAuth) RequireTransportSecurity() bool
type TokenAuth ¶
type TokenAuth struct {
// contains filtered or unexported fields
}
TokenAuth bearer token based authentication.
It implements the interface credentials.PerRPCCredentials.
func NewTokenAuth ¶
func (TokenAuth) GetRequestMetadata ¶
func (TokenAuth) RequireTransportSecurity ¶
Click to show internal directories.
Click to hide internal directories.