github.com/kaydxh/golang@v0.0.131/pkg/binlog/binlog.proto (about)

     1  syntax = "proto3";
     2  
     3  package go.pkg.binlog;
     4  import "google/protobuf/duration.proto";
     5  
     6  option go_package = "github.com/kaydxh/go.pkg.binlog;binlog";
     7  
     8  message Binlog {
     9    bool enabled = 1;
    10  
    11    BinlogType binlog_type = 2;
    12    int64 flush_batch_size = 3;
    13    google.protobuf.Duration max_flush_interval = 4;
    14    google.protobuf.Duration flush_timeout = 5;
    15  
    16    DBLog db_log = 20;
    17    FileLog file_log = 21;
    18  
    19    message DBLog {}
    20  
    21    message FileLog {
    22      string filepath = 3;
    23      google.protobuf.Duration max_age = 4;
    24      int64 max_count = 5;
    25      google.protobuf.Duration rotate_interval = 6;
    26      int64 rotate_size = 7;
    27    }
    28  }
    29  
    30  enum BinlogType {
    31    BinlogType_DB = 0;
    32    BinlogType_File = 1;
    33  }
    34