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

     1  syntax = "proto3";
     2  
     3  package yuhaiin.tools;
     4  
     5  option go_package = "github.com/Asutorufa/yuhaiin/pkg/protos/tools";
     6  
     7  import "google/protobuf/empty.proto";
     8  import "google/protobuf/wrappers.proto";
     9  
    10  service tools {
    11    // req: url
    12    rpc save_remote_bypass_file(google.protobuf.StringValue)
    13        returns (google.protobuf.Empty);
    14  
    15    rpc get_interface(google.protobuf.Empty) returns (Interfaces);
    16  }
    17  
    18  message Interfaces {
    19    repeated Interface interfaces = 1 [ json_name = "interfaces" ];
    20  }
    21  
    22  message Interface {
    23    string name = 1 [ json_name = "name" ];
    24    repeated string addresses = 2 [ json_name = "addresses" ];
    25  }