// StreamKeyRange is part of the pbs.UpdateStreamServer interface func (server *UpdateStream) StreamKeyRange(req *pb.StreamKeyRangeRequest, stream pbs.UpdateStream_StreamKeyRangeServer) (err error) { defer server.updateStream.HandlePanic(&err) return server.updateStream.StreamKeyRange(req.Position, req.KeyspaceIdType, req.KeyRange, req.Charset, func(reply *pb.BinlogTransaction) error { return stream.Send(&pb.StreamKeyRangeResponse{ BinlogTransaction: reply, }) }) }
// StreamKeyRange is part of the binlogservicepb.UpdateStreamServer interface func (server *UpdateStream) StreamKeyRange(req *binlogdatapb.StreamKeyRangeRequest, stream binlogservicepb.UpdateStream_StreamKeyRangeServer) (err error) { defer server.updateStream.HandlePanic(&err) return server.updateStream.StreamKeyRange(stream.Context(), req.Position, req.KeyRange, req.Charset, func(reply *binlogdatapb.BinlogTransaction) error { return stream.Send(&binlogdatapb.StreamKeyRangeResponse{ BinlogTransaction: reply, }) }) }
// StreamKeyRange is part of the pbs.UpdateStreamServer interface func (server *UpdateStream) StreamKeyRange(req *pb.StreamKeyRangeRequest, stream pbs.UpdateStream_StreamKeyRangeServer) (err error) { defer server.updateStream.HandlePanic(&err) return server.updateStream.StreamKeyRange(&proto.KeyRangeRequest{ Position: myproto.ProtoToReplicationPosition(req.Position), KeyspaceIdType: key.ProtoToKeyspaceIdType(req.KeyspaceIdType), KeyRange: key.ProtoToKeyRange(req.KeyRange), Charset: mproto.ProtoToCharset(req.Charset), }, func(reply *proto.BinlogTransaction) error { return stream.Send(&pb.StreamKeyRangeResponse{ BinlogTransaction: proto.BinlogTransactionToProto(reply), }) }) }