Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct { CreateSession func(ctx context.Context, req *pb.CreateSessionRequest) (*pb.Session, error) BatchCreateSessions func(ctx context.Context, req *pb.BatchCreateSessionsRequest) (*pb.BatchCreateSessionsResponse, error) GetSession func(ctx context.Context, req *pb.GetSessionRequest) (*pb.Session, error) ListSessions func(ctx context.Context, req *pb.ListSessionsRequest) (*pb.ListSessionsResponse, error) DeleteSession func(ctx context.Context, req *pb.DeleteSessionRequest) (*empty.Empty, error) ExecuteSQL func(ctx context.Context, req *pb.ExecuteSqlRequest) (*pb.ResultSet, error) ExecuteStreamingSQL func(req *pb.ExecuteSqlRequest, s pb.Spanner_ExecuteStreamingSqlServer) error ExecuteBatchDML func(ctx context.Context, req *pb.ExecuteBatchDmlRequest) (*pb.ExecuteBatchDmlResponse, error) Read func(ctx context.Context, req *pb.ReadRequest) (*pb.ResultSet, error) StreamingRead func(req *pb.ReadRequest, s pb.Spanner_StreamingReadServer) error BeginTransaction func(ctx context.Context, req *pb.BeginTransactionRequest) (*pb.Transaction, error) Commit func(ctx context.Context, req *pb.CommitRequest) (*pb.CommitResponse, error) Rollback func(ctx context.Context, req *pb.RollbackRequest) (*empty.Empty, error) PartitionQuery func(ctx context.Context, req *pb.PartitionQueryRequest) (*pb.PartitionResponse, error) PartitionRead func(ctx context.Context, req *pb.PartitionReadRequest) (*pb.PartitionResponse, error) }
Proxy allows to create Google Cloud Spanner proxy servers. In order to override behavior, implement the functions. If user calls an unimplemented function, the proxy will return and error saying operation is not supported.
Click to show internal directories.
Click to hide internal directories.