# README
How to test Spanner integration
-
Set GCP project id with GCP_PROJECT_ID environment variable.
export GCP_PROJECT_ID=test-project
-
Set service key credentials file using GOOGLE_APPLICATION_CREDENTIALS env variable.
export GOOGLE_APPLICATION_CREDENTIALS=/service/account/credentials.json
-
Run the tests.
go test -v
To skip Spanner setup run
SKIP_SPANNER=true go test -v
# Packages
No description provided by the author
Package mocks is a generated GoMock package.
Package multiendpoint implements multiendpoint feature.
No description provided by the author
# Functions
FromMEContext returns the MultiEndpoint name stored in ctx, if any.
GCPStreamClientInterceptor intercepts the execution of a client streaming RPC and injects necessary information to be used by the picker.
GCPUnaryClientInterceptor intercepts the execution of a unary RPC and injects necessary information to be used by the picker.
No description provided by the author
NewGCPMultiEndpoint creates new [GCPMultiEndpoint] -- MultiEndpoints-enabled gRPC client connection.
NewGCPMultiEndpoint creates new [GCPMultiEndpoint] -- MultiEndpoints-enabled gRPC client connection.
NewMEContext returns a new Context that carries Multiendpoint name.
# Structs
No description provided by the author
GCPMultiEndpoint holds the state of MultiEndpoints-enabled gRPC client connection.
GCPMultiEndpointOptions holds options to construct a MultiEndpoints-enabled gRPC client connection.