зеркало из https://github.com/github/vitess-gh.git
460 строки
20 KiB
Python
460 строки
20 KiB
Python
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
import grpc
|
|
|
|
import query_pb2 as query__pb2
|
|
import vtgate_pb2 as vtgate__pb2
|
|
|
|
|
|
class VitessStub(object):
|
|
"""Vitess is the main service to access a Vitess cluster. It is the API that vtgate
|
|
exposes to serve all queries.
|
|
"""
|
|
|
|
def __init__(self, channel):
|
|
"""Constructor.
|
|
|
|
Args:
|
|
channel: A grpc.Channel.
|
|
"""
|
|
self.Execute = channel.unary_unary(
|
|
'/vtgateservice.Vitess/Execute',
|
|
request_serializer=vtgate__pb2.ExecuteRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteResponse.FromString,
|
|
)
|
|
self.ExecuteBatch = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteBatch',
|
|
request_serializer=vtgate__pb2.ExecuteBatchRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteBatchResponse.FromString,
|
|
)
|
|
self.StreamExecute = channel.unary_stream(
|
|
'/vtgateservice.Vitess/StreamExecute',
|
|
request_serializer=vtgate__pb2.StreamExecuteRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.StreamExecuteResponse.FromString,
|
|
)
|
|
self.ExecuteShards = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteShards',
|
|
request_serializer=vtgate__pb2.ExecuteShardsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteShardsResponse.FromString,
|
|
)
|
|
self.ExecuteKeyspaceIds = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteKeyspaceIds',
|
|
request_serializer=vtgate__pb2.ExecuteKeyspaceIdsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteKeyspaceIdsResponse.FromString,
|
|
)
|
|
self.ExecuteKeyRanges = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteKeyRanges',
|
|
request_serializer=vtgate__pb2.ExecuteKeyRangesRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteKeyRangesResponse.FromString,
|
|
)
|
|
self.ExecuteEntityIds = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteEntityIds',
|
|
request_serializer=vtgate__pb2.ExecuteEntityIdsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteEntityIdsResponse.FromString,
|
|
)
|
|
self.ExecuteBatchShards = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteBatchShards',
|
|
request_serializer=vtgate__pb2.ExecuteBatchShardsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteBatchShardsResponse.FromString,
|
|
)
|
|
self.ExecuteBatchKeyspaceIds = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ExecuteBatchKeyspaceIds',
|
|
request_serializer=vtgate__pb2.ExecuteBatchKeyspaceIdsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ExecuteBatchKeyspaceIdsResponse.FromString,
|
|
)
|
|
self.StreamExecuteShards = channel.unary_stream(
|
|
'/vtgateservice.Vitess/StreamExecuteShards',
|
|
request_serializer=vtgate__pb2.StreamExecuteShardsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.StreamExecuteShardsResponse.FromString,
|
|
)
|
|
self.StreamExecuteKeyspaceIds = channel.unary_stream(
|
|
'/vtgateservice.Vitess/StreamExecuteKeyspaceIds',
|
|
request_serializer=vtgate__pb2.StreamExecuteKeyspaceIdsRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.StreamExecuteKeyspaceIdsResponse.FromString,
|
|
)
|
|
self.StreamExecuteKeyRanges = channel.unary_stream(
|
|
'/vtgateservice.Vitess/StreamExecuteKeyRanges',
|
|
request_serializer=vtgate__pb2.StreamExecuteKeyRangesRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.StreamExecuteKeyRangesResponse.FromString,
|
|
)
|
|
self.Begin = channel.unary_unary(
|
|
'/vtgateservice.Vitess/Begin',
|
|
request_serializer=vtgate__pb2.BeginRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.BeginResponse.FromString,
|
|
)
|
|
self.Commit = channel.unary_unary(
|
|
'/vtgateservice.Vitess/Commit',
|
|
request_serializer=vtgate__pb2.CommitRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.CommitResponse.FromString,
|
|
)
|
|
self.Rollback = channel.unary_unary(
|
|
'/vtgateservice.Vitess/Rollback',
|
|
request_serializer=vtgate__pb2.RollbackRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.RollbackResponse.FromString,
|
|
)
|
|
self.ResolveTransaction = channel.unary_unary(
|
|
'/vtgateservice.Vitess/ResolveTransaction',
|
|
request_serializer=vtgate__pb2.ResolveTransactionRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.ResolveTransactionResponse.FromString,
|
|
)
|
|
self.MessageStream = channel.unary_stream(
|
|
'/vtgateservice.Vitess/MessageStream',
|
|
request_serializer=vtgate__pb2.MessageStreamRequest.SerializeToString,
|
|
response_deserializer=query__pb2.MessageStreamResponse.FromString,
|
|
)
|
|
self.MessageAck = channel.unary_unary(
|
|
'/vtgateservice.Vitess/MessageAck',
|
|
request_serializer=vtgate__pb2.MessageAckRequest.SerializeToString,
|
|
response_deserializer=query__pb2.MessageAckResponse.FromString,
|
|
)
|
|
self.MessageAckKeyspaceIds = channel.unary_unary(
|
|
'/vtgateservice.Vitess/MessageAckKeyspaceIds',
|
|
request_serializer=vtgate__pb2.MessageAckKeyspaceIdsRequest.SerializeToString,
|
|
response_deserializer=query__pb2.MessageAckResponse.FromString,
|
|
)
|
|
self.SplitQuery = channel.unary_unary(
|
|
'/vtgateservice.Vitess/SplitQuery',
|
|
request_serializer=vtgate__pb2.SplitQueryRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.SplitQueryResponse.FromString,
|
|
)
|
|
self.GetSrvKeyspace = channel.unary_unary(
|
|
'/vtgateservice.Vitess/GetSrvKeyspace',
|
|
request_serializer=vtgate__pb2.GetSrvKeyspaceRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.GetSrvKeyspaceResponse.FromString,
|
|
)
|
|
self.VStream = channel.unary_stream(
|
|
'/vtgateservice.Vitess/VStream',
|
|
request_serializer=vtgate__pb2.VStreamRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.VStreamResponse.FromString,
|
|
)
|
|
self.UpdateStream = channel.unary_stream(
|
|
'/vtgateservice.Vitess/UpdateStream',
|
|
request_serializer=vtgate__pb2.UpdateStreamRequest.SerializeToString,
|
|
response_deserializer=vtgate__pb2.UpdateStreamResponse.FromString,
|
|
)
|
|
|
|
|
|
class VitessServicer(object):
|
|
"""Vitess is the main service to access a Vitess cluster. It is the API that vtgate
|
|
exposes to serve all queries.
|
|
"""
|
|
|
|
def Execute(self, request, context):
|
|
"""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
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteBatch(self, request, context):
|
|
"""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
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def StreamExecute(self, request, context):
|
|
"""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
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteShards(self, request, context):
|
|
"""ExecuteShards executes the query on the specified shards.
|
|
API group: Custom Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteKeyspaceIds(self, request, context):
|
|
"""ExecuteKeyspaceIds executes the query based on the specified keyspace ids.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteKeyRanges(self, request, context):
|
|
"""ExecuteKeyRanges executes the query based on the specified key ranges.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteEntityIds(self, request, context):
|
|
"""ExecuteEntityIds executes the query based on the specified external id to keyspace id map.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteBatchShards(self, request, context):
|
|
"""ExecuteBatchShards executes the list of queries on the specified shards.
|
|
API group: Custom Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ExecuteBatchKeyspaceIds(self, request, context):
|
|
"""ExecuteBatchKeyspaceIds executes the list of queries based on the specified keyspace ids.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def StreamExecuteShards(self, request, context):
|
|
"""StreamExecuteShards executes a streaming query based on shards.
|
|
Use this method if the query returns a large number of rows.
|
|
API group: Custom Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def StreamExecuteKeyspaceIds(self, request, context):
|
|
"""StreamExecuteKeyspaceIds executes a streaming query based on keyspace ids.
|
|
Use this method if the query returns a large number of rows.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def StreamExecuteKeyRanges(self, request, context):
|
|
"""StreamExecuteKeyRanges executes a streaming query based on key ranges.
|
|
Use this method if the query returns a large number of rows.
|
|
API group: Range-based Sharding
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def Begin(self, request, context):
|
|
"""Begin a transaction.
|
|
API group: Transactions
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def Commit(self, request, context):
|
|
"""Commit a transaction.
|
|
API group: Transactions
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def Rollback(self, request, context):
|
|
"""Rollback a transaction.
|
|
API group: Transactions
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def ResolveTransaction(self, request, context):
|
|
"""ResolveTransaction resolves a transaction.
|
|
API group: Transactions
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def MessageStream(self, request, context):
|
|
"""MessageStream streams messages from a message table.
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def MessageAck(self, request, context):
|
|
"""MessageAck acks messages for a table.
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def MessageAckKeyspaceIds(self, request, context):
|
|
"""MessageAckKeyspaceIds routes Message Acks using the associated
|
|
keyspace ids.
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def SplitQuery(self, request, context):
|
|
"""Split a query into non-overlapping sub queries
|
|
API group: Map Reduce
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def GetSrvKeyspace(self, request, context):
|
|
"""GetSrvKeyspace returns a SrvKeyspace object (as seen by this vtgate).
|
|
This method is provided as a convenient way for clients to take a
|
|
look at the sharding configuration for a Keyspace. Looking at the
|
|
sharding information should not be used for routing queries (as the
|
|
information may change, use the Execute calls for that).
|
|
It is convenient for monitoring applications for instance, or if
|
|
using custom sharding.
|
|
API group: Topology
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def VStream(self, request, context):
|
|
"""VStream streams binlog events from the requested sources.
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
def UpdateStream(self, request, context):
|
|
"""UpdateStream asks the server for a stream of StreamEvent objects.
|
|
API group: Update Stream
|
|
"""
|
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
context.set_details('Method not implemented!')
|
|
raise NotImplementedError('Method not implemented!')
|
|
|
|
|
|
def add_VitessServicer_to_server(servicer, server):
|
|
rpc_method_handlers = {
|
|
'Execute': grpc.unary_unary_rpc_method_handler(
|
|
servicer.Execute,
|
|
request_deserializer=vtgate__pb2.ExecuteRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteResponse.SerializeToString,
|
|
),
|
|
'ExecuteBatch': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteBatch,
|
|
request_deserializer=vtgate__pb2.ExecuteBatchRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteBatchResponse.SerializeToString,
|
|
),
|
|
'StreamExecute': grpc.unary_stream_rpc_method_handler(
|
|
servicer.StreamExecute,
|
|
request_deserializer=vtgate__pb2.StreamExecuteRequest.FromString,
|
|
response_serializer=vtgate__pb2.StreamExecuteResponse.SerializeToString,
|
|
),
|
|
'ExecuteShards': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteShards,
|
|
request_deserializer=vtgate__pb2.ExecuteShardsRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteShardsResponse.SerializeToString,
|
|
),
|
|
'ExecuteKeyspaceIds': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteKeyspaceIds,
|
|
request_deserializer=vtgate__pb2.ExecuteKeyspaceIdsRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteKeyspaceIdsResponse.SerializeToString,
|
|
),
|
|
'ExecuteKeyRanges': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteKeyRanges,
|
|
request_deserializer=vtgate__pb2.ExecuteKeyRangesRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteKeyRangesResponse.SerializeToString,
|
|
),
|
|
'ExecuteEntityIds': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteEntityIds,
|
|
request_deserializer=vtgate__pb2.ExecuteEntityIdsRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteEntityIdsResponse.SerializeToString,
|
|
),
|
|
'ExecuteBatchShards': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteBatchShards,
|
|
request_deserializer=vtgate__pb2.ExecuteBatchShardsRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteBatchShardsResponse.SerializeToString,
|
|
),
|
|
'ExecuteBatchKeyspaceIds': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ExecuteBatchKeyspaceIds,
|
|
request_deserializer=vtgate__pb2.ExecuteBatchKeyspaceIdsRequest.FromString,
|
|
response_serializer=vtgate__pb2.ExecuteBatchKeyspaceIdsResponse.SerializeToString,
|
|
),
|
|
'StreamExecuteShards': grpc.unary_stream_rpc_method_handler(
|
|
servicer.StreamExecuteShards,
|
|
request_deserializer=vtgate__pb2.StreamExecuteShardsRequest.FromString,
|
|
response_serializer=vtgate__pb2.StreamExecuteShardsResponse.SerializeToString,
|
|
),
|
|
'StreamExecuteKeyspaceIds': grpc.unary_stream_rpc_method_handler(
|
|
servicer.StreamExecuteKeyspaceIds,
|
|
request_deserializer=vtgate__pb2.StreamExecuteKeyspaceIdsRequest.FromString,
|
|
response_serializer=vtgate__pb2.StreamExecuteKeyspaceIdsResponse.SerializeToString,
|
|
),
|
|
'StreamExecuteKeyRanges': grpc.unary_stream_rpc_method_handler(
|
|
servicer.StreamExecuteKeyRanges,
|
|
request_deserializer=vtgate__pb2.StreamExecuteKeyRangesRequest.FromString,
|
|
response_serializer=vtgate__pb2.StreamExecuteKeyRangesResponse.SerializeToString,
|
|
),
|
|
'Begin': grpc.unary_unary_rpc_method_handler(
|
|
servicer.Begin,
|
|
request_deserializer=vtgate__pb2.BeginRequest.FromString,
|
|
response_serializer=vtgate__pb2.BeginResponse.SerializeToString,
|
|
),
|
|
'Commit': grpc.unary_unary_rpc_method_handler(
|
|
servicer.Commit,
|
|
request_deserializer=vtgate__pb2.CommitRequest.FromString,
|
|
response_serializer=vtgate__pb2.CommitResponse.SerializeToString,
|
|
),
|
|
'Rollback': grpc.unary_unary_rpc_method_handler(
|
|
servicer.Rollback,
|
|
request_deserializer=vtgate__pb2.RollbackRequest.FromString,
|
|
response_serializer=vtgate__pb2.RollbackResponse.SerializeToString,
|
|
),
|
|
'ResolveTransaction': grpc.unary_unary_rpc_method_handler(
|
|
servicer.ResolveTransaction,
|
|
request_deserializer=vtgate__pb2.ResolveTransactionRequest.FromString,
|
|
response_serializer=vtgate__pb2.ResolveTransactionResponse.SerializeToString,
|
|
),
|
|
'MessageStream': grpc.unary_stream_rpc_method_handler(
|
|
servicer.MessageStream,
|
|
request_deserializer=vtgate__pb2.MessageStreamRequest.FromString,
|
|
response_serializer=query__pb2.MessageStreamResponse.SerializeToString,
|
|
),
|
|
'MessageAck': grpc.unary_unary_rpc_method_handler(
|
|
servicer.MessageAck,
|
|
request_deserializer=vtgate__pb2.MessageAckRequest.FromString,
|
|
response_serializer=query__pb2.MessageAckResponse.SerializeToString,
|
|
),
|
|
'MessageAckKeyspaceIds': grpc.unary_unary_rpc_method_handler(
|
|
servicer.MessageAckKeyspaceIds,
|
|
request_deserializer=vtgate__pb2.MessageAckKeyspaceIdsRequest.FromString,
|
|
response_serializer=query__pb2.MessageAckResponse.SerializeToString,
|
|
),
|
|
'SplitQuery': grpc.unary_unary_rpc_method_handler(
|
|
servicer.SplitQuery,
|
|
request_deserializer=vtgate__pb2.SplitQueryRequest.FromString,
|
|
response_serializer=vtgate__pb2.SplitQueryResponse.SerializeToString,
|
|
),
|
|
'GetSrvKeyspace': grpc.unary_unary_rpc_method_handler(
|
|
servicer.GetSrvKeyspace,
|
|
request_deserializer=vtgate__pb2.GetSrvKeyspaceRequest.FromString,
|
|
response_serializer=vtgate__pb2.GetSrvKeyspaceResponse.SerializeToString,
|
|
),
|
|
'VStream': grpc.unary_stream_rpc_method_handler(
|
|
servicer.VStream,
|
|
request_deserializer=vtgate__pb2.VStreamRequest.FromString,
|
|
response_serializer=vtgate__pb2.VStreamResponse.SerializeToString,
|
|
),
|
|
'UpdateStream': grpc.unary_stream_rpc_method_handler(
|
|
servicer.UpdateStream,
|
|
request_deserializer=vtgate__pb2.UpdateStreamRequest.FromString,
|
|
response_serializer=vtgate__pb2.UpdateStreamResponse.SerializeToString,
|
|
),
|
|
}
|
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
'vtgateservice.Vitess', rpc_method_handlers)
|
|
server.add_generic_rpc_handlers((generic_handler,))
|