mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-27 20:46:51 -05:00
ef460f68f8
* Update protoc binary executable files to v3.13.0 * Write proto files in more standard way * Make go generate & vprotogen compatible with protoc-gen-gofast * Regenerate pb.go files according to new proto files * Clean go.sum by running go mod tidy * Implement mustEmbedUnimplementedServiceServer for gPRC services
52 lines
1.0 KiB
Protocol Buffer
52 lines
1.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package v2ray.core.app.policy;
|
|
option csharp_namespace = "V2Ray.Core.App.Policy";
|
|
option go_package = "v2ray.com/core/app/policy";
|
|
option java_package = "com.v2ray.core.app.policy";
|
|
option java_multiple_files = true;
|
|
|
|
message Second {
|
|
uint32 value = 1;
|
|
}
|
|
|
|
message Policy {
|
|
// Timeout is a message for timeout settings in various stages, in seconds.
|
|
message Timeout {
|
|
Second handshake = 1;
|
|
Second connection_idle = 2;
|
|
Second uplink_only = 3;
|
|
Second downlink_only = 4;
|
|
}
|
|
|
|
message Stats {
|
|
bool user_uplink = 1;
|
|
bool user_downlink = 2;
|
|
}
|
|
|
|
message Buffer {
|
|
// Buffer size per connection, in bytes. -1 for unlimited buffer.
|
|
int32 connection = 1;
|
|
}
|
|
|
|
Timeout timeout = 1;
|
|
Stats stats = 2;
|
|
Buffer buffer = 3;
|
|
}
|
|
|
|
message SystemPolicy {
|
|
message Stats {
|
|
bool inbound_uplink = 1;
|
|
bool inbound_downlink = 2;
|
|
bool outbound_uplink = 3;
|
|
bool outbound_downlink = 4;
|
|
}
|
|
|
|
Stats stats = 1;
|
|
}
|
|
|
|
message Config {
|
|
map<uint32, Policy> level = 1;
|
|
SystemPolicy system = 2;
|
|
}
|