Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProjectID = "test-project-id" InstanceID = "test-instance-id" DatabaseID = "test-database-id" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the underlying container that is running the mock Spanner instance. It includes all of the clients that are needed to interact with the instance, database, and user client.
func (*Client) DatabaseAdmin ¶
func (r *Client) DatabaseAdmin() *databaseAdmin.DatabaseAdminClient
Client returns the underlying Spanner Database Admin client.
func (*Client) GRPC ¶
func (r *Client) GRPC() *grpc.ClientConn
GRPC fetches the connection to the underlying Spanner gRPC server.
func (*Client) InstanceAdmin ¶
func (r *Client) InstanceAdmin() *instanceAdmin.InstanceAdminClient
Client returns the underlying Spanner Instance Admin client.
Click to show internal directories.
Click to hide internal directories.