Categorygithub.com/GoogleCloudPlatform/grpc-gcp-go/grpcgcp
modulepackage
1.5.2
Repository: https://github.com/googlecloudplatform/grpc-gcp-go.git
Documentation: pkg.go.dev

# README

How to test Spanner integration

  1. Set GCP project id with GCP_PROJECT_ID environment variable.

     export GCP_PROJECT_ID=test-project
    
  2. Set service key credentials file using GOOGLE_APPLICATION_CREDENTIALS env variable.

     export GOOGLE_APPLICATION_CREDENTIALS=/service/account/credentials.json
    
  3. 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.

# Constants

No description provided by the author
No description provided by the author
Name is the name of grpc_gcp balancer.

# 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.