 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package internal supports the options and transport packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Creds ¶
func Creds(ctx context.Context, ds *DialSettings) (*google.Credentials, error)
Creds returns credential information obtained from DialSettings, or if none, then it returns default credential information.
Types ¶
type DialSettings ¶
type DialSettings struct {
	Endpoint          string
	Scopes            []string
	TokenSource       oauth2.TokenSource
	Credentials       *google.Credentials
	CredentialsFile   string // if set, Token Source is ignored.
	CredentialsJSON   []byte
	UserAgent         string
	APIKey            string
	Audiences         []string
	HTTPClient        *http.Client
	GRPCDialOpts      []grpc.DialOption
	GRPCConn          *grpc.ClientConn
	NoAuth            bool
	TelemetryDisabled bool
	// Google API system parameters. For more information please read:
	// https://cloud.google.com/apis/docs/system-parameters
	QuotaProject  string
	RequestReason string
}
    DialSettings holds information needed to establish a connection with a Google API service.
func (*DialSettings) Validate ¶
func (ds *DialSettings) Validate() error
Validate reports an error if ds is invalid.
type PoolResolver ¶
type PoolResolver struct {
	// contains filtered or unexported fields
}
    PoolResolver provides a fixed list of addresses to load balance between and does not provide further updates.
func NewPoolResolver ¶
func NewPoolResolver(size int, o *DialSettings) *PoolResolver
NewPoolResolver returns a PoolResolver This is an EXPERIMENTAL API and may be changed or removed in the future.
func (*PoolResolver) Close ¶
func (r *PoolResolver) Close()
Close releases resources associated with the pool and causes Next to unblock.
       Directories
      ¶
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool. | Package gensupport is an internal implementation detail used by code generated by the google-api-go-generator tool. | 
| kokoro
       | |
| 
          
            discogen
            module
            
          
          
         | |
| third_party
       | |
| 
          
            uritemplates
            
            
          
           Package uritemplates is a level 3 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570). | Package uritemplates is a level 3 implementation of RFC 6570 (URI Template, http://tools.ietf.org/html/rfc6570). | 
| Package version contains version information for Google Cloud Client Libraries for Go, as reported in request headers. | Package version contains version information for Google Cloud Client Libraries for Go, as reported in request headers. | 
 Click to show internal directories. 
   Click to hide internal directories.