github.com/v2fly/v2ray-core/v4@v4.45.2/app/policy/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package v2ray.core.app.policy;
     4  option csharp_namespace = "V2Ray.Core.App.Policy";
     5  option go_package = "github.com/v2fly/v2ray-core/v4/app/policy";
     6  option java_package = "com.v2ray.core.app.policy";
     7  option java_multiple_files = true;
     8  
     9  message Second {
    10    uint32 value = 1;
    11  }
    12  
    13  message Policy {
    14    // Timeout is a message for timeout settings in various stages, in seconds.
    15    message Timeout {
    16      Second handshake = 1;
    17      Second connection_idle = 2;
    18      Second uplink_only = 3;
    19      Second downlink_only = 4;
    20    }
    21  
    22    message Stats {
    23      bool user_uplink = 1;
    24      bool user_downlink = 2;
    25    }
    26  
    27    message Buffer {
    28      // Buffer size per connection, in bytes. -1 for unlimited buffer.
    29      int32 connection = 1;
    30    }
    31  
    32    Timeout timeout = 1;
    33    Stats stats = 2;
    34    Buffer buffer = 3;
    35  }
    36  
    37  message SystemPolicy {
    38    message Stats {
    39      bool inbound_uplink = 1;
    40      bool inbound_downlink = 2;
    41      bool outbound_uplink = 3;
    42      bool outbound_downlink = 4;
    43    }
    44  
    45    Stats stats = 1;
    46  }
    47  
    48  message Config {
    49    map<uint32, Policy> level = 1;
    50    SystemPolicy system = 2;
    51  }