Documentation ¶
Overview ¶
Package gcp declares an InterceptorFactory that wraps a Handler with a user agent check for a GCE ingress agent.
Package gcp contains common configuration options for GCP backends.
Index ¶
Constants ¶
View Source
const GCEIngressUserAgent = "GoogleHC/1.0"
GCEIngressUserAgent is passed in the HTTP header by the GCE ingress agent.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APISettings ¶
type APISettings struct {
// contains filtered or unexported fields
}
APISettings holds a collection of Google API client options.
type BackendOption ¶
type BackendOption interface {
Apply(*APISettings)
}
An BackendOption is an option for a GCP API based client.
func WithClientOptions ¶
func WithClientOptions(o []option.ClientOption) BackendOption
WithClientOptions returns a BackendOption that specifies Google API client configurations for the Spanner client.
Click to show internal directories.
Click to hide internal directories.