vtgateservicev17grpc

package
v1.3.0-20231211191728-... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: unknown License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Vitess_Execute_FullMethodName            = "/vitess.vtgateservice.v17.Vitess/Execute"
	Vitess_ExecuteBatch_FullMethodName       = "/vitess.vtgateservice.v17.Vitess/ExecuteBatch"
	Vitess_StreamExecute_FullMethodName      = "/vitess.vtgateservice.v17.Vitess/StreamExecute"
	Vitess_ResolveTransaction_FullMethodName = "/vitess.vtgateservice.v17.Vitess/ResolveTransaction"
	Vitess_VStream_FullMethodName            = "/vitess.vtgateservice.v17.Vitess/VStream"
	Vitess_Prepare_FullMethodName            = "/vitess.vtgateservice.v17.Vitess/Prepare"
	Vitess_CloseSession_FullMethodName       = "/vitess.vtgateservice.v17.Vitess/CloseSession"
)

Variables

View Source
var Vitess_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "vitess.vtgateservice.v17.Vitess",
	HandlerType: (*VitessServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Execute",
			Handler:    _Vitess_Execute_Handler,
		},
		{
			MethodName: "ExecuteBatch",
			Handler:    _Vitess_ExecuteBatch_Handler,
		},
		{
			MethodName: "ResolveTransaction",
			Handler:    _Vitess_ResolveTransaction_Handler,
		},
		{
			MethodName: "Prepare",
			Handler:    _Vitess_Prepare_Handler,
		},
		{
			MethodName: "CloseSession",
			Handler:    _Vitess_CloseSession_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StreamExecute",
			Handler:       _Vitess_StreamExecute_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "VStream",
			Handler:       _Vitess_VStream_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "vitess/vtgateservice/v17/vtgateservice.proto",
}

Vitess_ServiceDesc is the grpc.ServiceDesc for Vitess service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterVitessServer

func RegisterVitessServer(s grpc.ServiceRegistrar, srv VitessServer)

Types

type UnimplementedVitessServer

type UnimplementedVitessServer struct {
}

UnimplementedVitessServer should be embedded to have forward compatible implementations.

func (UnimplementedVitessServer) CloseSession

func (UnimplementedVitessServer) Execute

func (UnimplementedVitessServer) ExecuteBatch

func (UnimplementedVitessServer) Prepare

func (UnimplementedVitessServer) ResolveTransaction

func (UnimplementedVitessServer) StreamExecute

func (UnimplementedVitessServer) VStream

type UnsafeVitessServer

type UnsafeVitessServer interface {
	// contains filtered or unexported methods
}

UnsafeVitessServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VitessServer will result in compilation errors.

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 *v17.ExecuteRequest, opts ...grpc.CallOption) (*v17.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 *v17.ExecuteBatchRequest, opts ...grpc.CallOption) (*v17.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 *v17.StreamExecuteRequest, opts ...grpc.CallOption) (Vitess_StreamExecuteClient, error)
	// ResolveTransaction resolves a transaction.
	// API group: Transactions
	ResolveTransaction(ctx context.Context, in *v17.ResolveTransactionRequest, opts ...grpc.CallOption) (*v17.ResolveTransactionResponse, error)
	// VStream streams binlog events from the requested sources.
	VStream(ctx context.Context, in *v17.VStreamRequest, opts ...grpc.CallOption) (Vitess_VStreamClient, error)
	// Prepare is used by the MySQL server plugin as part of supporting prepared statements.
	Prepare(ctx context.Context, in *v17.PrepareRequest, opts ...grpc.CallOption) (*v17.PrepareResponse, error)
	// CloseSession closes the session, rolling back any implicit transactions.
	// This has the same effect as if a "rollback" statement was executed,
	// but does not affect the query statistics.
	CloseSession(ctx context.Context, in *v17.CloseSessionRequest, opts ...grpc.CallOption) (*v17.CloseSessionResponse, error)
}

VitessClient is the client API for Vitess service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewVitessClient

func NewVitessClient(cc grpc.ClientConnInterface) 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, *v17.ExecuteRequest) (*v17.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, *v17.ExecuteBatchRequest) (*v17.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(*v17.StreamExecuteRequest, Vitess_StreamExecuteServer) error
	// ResolveTransaction resolves a transaction.
	// API group: Transactions
	ResolveTransaction(context.Context, *v17.ResolveTransactionRequest) (*v17.ResolveTransactionResponse, error)
	// VStream streams binlog events from the requested sources.
	VStream(*v17.VStreamRequest, Vitess_VStreamServer) error
	// Prepare is used by the MySQL server plugin as part of supporting prepared statements.
	Prepare(context.Context, *v17.PrepareRequest) (*v17.PrepareResponse, error)
	// CloseSession closes the session, rolling back any implicit transactions.
	// This has the same effect as if a "rollback" statement was executed,
	// but does not affect the query statistics.
	CloseSession(context.Context, *v17.CloseSessionRequest) (*v17.CloseSessionResponse, error)
}

VitessServer is the server API for Vitess service. All implementations should embed UnimplementedVitessServer for forward compatibility

type Vitess_StreamExecuteClient

type Vitess_StreamExecuteClient interface {
	Recv() (*v17.StreamExecuteResponse, error)
	grpc.ClientStream
}

type Vitess_StreamExecuteServer

type Vitess_StreamExecuteServer interface {
	Send(*v17.StreamExecuteResponse) error
	grpc.ServerStream
}

type Vitess_VStreamClient

type Vitess_VStreamClient interface {
	Recv() (*v17.VStreamResponse, error)
	grpc.ClientStream
}

type Vitess_VStreamServer

type Vitess_VStreamServer interface {
	Send(*v17.VStreamResponse) error
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL