github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/protos/statistic/config.proto (about)

     1  syntax = "proto3";
     2  
     3  package yuhaiin.statistic;
     4  
     5  option go_package = "github.com/Asutorufa/yuhaiin/pkg/protos/statistic";
     6  
     7  /*
     8          "tcp", "tcp4", "tcp6"
     9          "udp", "udp4", "udp6"
    10          "ip", "ip4", "ip6"
    11          "unix", "unixgram", "unixpacket"
    12  */
    13  enum type {
    14    unknown = 0;
    15    tcp = 1;
    16    tcp4 = 2;
    17    tcp6 = 3;
    18    udp = 4;
    19    udp4 = 5;
    20    udp6 = 6;
    21    ip = 7;
    22    ip4 = 8;
    23    ip6 = 9;
    24    unix = 10;
    25    unixgram = 11;
    26    unixpacket = 12;
    27  }
    28  
    29  message net_type {
    30    type conn_type = 1 [ json_name = "conn_type" ];
    31    type underlying_type = 2 [ json_name = "underlying_type" ];
    32  }
    33  
    34  message connection {
    35    string addr = 1 [ json_name = "addr" ];
    36    uint64 id = 2 [ json_name = "id" ];
    37    net_type type = 3 [ json_name = "type" ];
    38    map<string, string> extra = 4 [ json_name = "extra" ];
    39  }