gcp

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

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

func GLB

func GLB(h http.Handler) http.Handler

GLB wraps a Handler with a user agent check for a GCE ingress agent. It will always return an HTTP status OK.

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.

Directories

Path Synopsis
Package datastore contains the GCP Datastore Backend.
Package datastore contains the GCP Datastore Backend.
Package spanner contains the GCP Spanner Backend.
Package spanner contains the GCP Spanner Backend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL