Documentation
¶
Index ¶
- func RegisterVitessServer(s *grpc.Server, srv VitessServer)
- type UnimplementedVitessServer
- func (*UnimplementedVitessServer) Execute(ctx context.Context, req *vtgate.ExecuteRequest) (*vtgate.ExecuteResponse, error)
- func (*UnimplementedVitessServer) ExecuteBatch(ctx context.Context, req *vtgate.ExecuteBatchRequest) (*vtgate.ExecuteBatchResponse, error)
- func (*UnimplementedVitessServer) ResolveTransaction(ctx context.Context, req *vtgate.ResolveTransactionRequest) (*vtgate.ResolveTransactionResponse, error)
- func (*UnimplementedVitessServer) StreamExecute(req *vtgate.StreamExecuteRequest, srv Vitess_StreamExecuteServer) error
- func (*UnimplementedVitessServer) VStream(req *vtgate.VStreamRequest, srv Vitess_VStreamServer) error
- type VitessClient
- type VitessServer
- type Vitess_StreamExecuteClient
- type Vitess_StreamExecuteServer
- type Vitess_VStreamClient
- type Vitess_VStreamServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterVitessServer ¶
func RegisterVitessServer(s *grpc.Server, srv VitessServer)
Types ¶
type UnimplementedVitessServer ¶
type UnimplementedVitessServer struct {
}
UnimplementedVitessServer can be embedded to have forward compatible implementations.
func (*UnimplementedVitessServer) Execute ¶
func (*UnimplementedVitessServer) Execute(ctx context.Context, req *vtgate.ExecuteRequest) (*vtgate.ExecuteResponse, error)
func (*UnimplementedVitessServer) ExecuteBatch ¶
func (*UnimplementedVitessServer) ExecuteBatch(ctx context.Context, req *vtgate.ExecuteBatchRequest) (*vtgate.ExecuteBatchResponse, error)
func (*UnimplementedVitessServer) ResolveTransaction ¶
func (*UnimplementedVitessServer) ResolveTransaction(ctx context.Context, req *vtgate.ResolveTransactionRequest) (*vtgate.ResolveTransactionResponse, error)
func (*UnimplementedVitessServer) StreamExecute ¶
func (*UnimplementedVitessServer) StreamExecute(req *vtgate.StreamExecuteRequest, srv Vitess_StreamExecuteServer) error
func (*UnimplementedVitessServer) VStream ¶
func (*UnimplementedVitessServer) VStream(req *vtgate.VStreamRequest, srv Vitess_VStreamServer) error
type VitessClient ¶
type VitessClient interface {
// Execute tries to route the query to the right shard.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// API group: v3
Execute(ctx context.Context, in *vtgate.ExecuteRequest, opts ...grpc.CallOption) (*vtgate.ExecuteResponse, error)
// ExecuteBatch tries to route the list of queries on the right shards.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// API group: v3
ExecuteBatch(ctx context.Context, in *vtgate.ExecuteBatchRequest, opts ...grpc.CallOption) (*vtgate.ExecuteBatchResponse, error)
// StreamExecute executes a streaming query based on shards.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// Use this method if the query returns a large number of rows.
// API group: v3
StreamExecute(ctx context.Context, in *vtgate.StreamExecuteRequest, opts ...grpc.CallOption) (Vitess_StreamExecuteClient, error)
// ResolveTransaction resolves a transaction.
// API group: Transactions
ResolveTransaction(ctx context.Context, in *vtgate.ResolveTransactionRequest, opts ...grpc.CallOption) (*vtgate.ResolveTransactionResponse, error)
// VStream streams binlog events from the requested sources.
VStream(ctx context.Context, in *vtgate.VStreamRequest, opts ...grpc.CallOption) (Vitess_VStreamClient, error)
}
VitessClient is the client API for Vitess service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewVitessClient ¶
func NewVitessClient(cc *grpc.ClientConn) VitessClient
type VitessServer ¶
type VitessServer interface {
// Execute tries to route the query to the right shard.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// API group: v3
Execute(context.Context, *vtgate.ExecuteRequest) (*vtgate.ExecuteResponse, error)
// ExecuteBatch tries to route the list of queries on the right shards.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// API group: v3
ExecuteBatch(context.Context, *vtgate.ExecuteBatchRequest) (*vtgate.ExecuteBatchResponse, error)
// StreamExecute executes a streaming query based on shards.
// It depends on the query and bind variables to provide enough
// information in conjunction with the vindexes to route the query.
// Use this method if the query returns a large number of rows.
// API group: v3
StreamExecute(*vtgate.StreamExecuteRequest, Vitess_StreamExecuteServer) error
// ResolveTransaction resolves a transaction.
// API group: Transactions
ResolveTransaction(context.Context, *vtgate.ResolveTransactionRequest) (*vtgate.ResolveTransactionResponse, error)
// VStream streams binlog events from the requested sources.
VStream(*vtgate.VStreamRequest, Vitess_VStreamServer) error
}
VitessServer is the server API for Vitess service.
type Vitess_StreamExecuteClient ¶
type Vitess_StreamExecuteClient interface {
Recv() (*vtgate.StreamExecuteResponse, error)
grpc.ClientStream
}
type Vitess_StreamExecuteServer ¶
type Vitess_StreamExecuteServer interface {
Send(*vtgate.StreamExecuteResponse) error
grpc.ServerStream
}
type Vitess_VStreamClient ¶
type Vitess_VStreamClient interface {
Recv() (*vtgate.VStreamResponse, error)
grpc.ClientStream
}
type Vitess_VStreamServer ¶
type Vitess_VStreamServer interface {
Send(*vtgate.VStreamResponse) error
grpc.ServerStream
}
Click to show internal directories.
Click to hide internal directories.