vitess.io/vitess@v0.16.2/proto/binlogservice.proto (about)

     1  /*
     2  Copyright 2019 The Vitess Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // This file contains the UpdateStream service definition, necessary
    18  // to make RPC calls to VtTablet for the binlog protocol, used by
    19  // filtered replication only.
    20  
    21  syntax = "proto3";
    22  option go_package = "vitess.io/vitess/go/vt/proto/binlogservice";
    23  
    24  package binlogservice;
    25  
    26  import "binlogdata.proto";
    27  
    28  // UpdateStream is the RPC version of binlog.UpdateStream.
    29  service UpdateStream {
    30    // StreamKeyRange returns the binlog transactions related to
    31    // the specified Keyrange.
    32    rpc StreamKeyRange(binlogdata.StreamKeyRangeRequest) returns (stream binlogdata.StreamKeyRangeResponse) {};
    33  
    34    // StreamTables returns the binlog transactions related to
    35    // the specified Tables.
    36    rpc StreamTables(binlogdata.StreamTablesRequest) returns (stream binlogdata.StreamTablesResponse) {};
    37  }