Ref: add protobuf

This commit is contained in:
Kirill Sobakin
2026-03-16 21:29:55 +03:00
parent 623b97ff1b
commit 76f8f79434
3 changed files with 82 additions and 0 deletions

37
proto/geosite.proto Normal file
View File

@@ -0,0 +1,37 @@
// Source: github.com/v2fly/v2ray-core/app/router/routercommon/common.proto
syntax = "proto3";
package geosite;
option go_package = "geosite";
message Domain {
enum Type {
Plain = 0;
Regex = 1;
RootDomain = 2;
Full = 3;
}
Type type = 1;
string value = 2;
message Attribute {
string key = 1;
oneof typed_value {
bool bool_value = 2;
int64 int_value = 3;
}
}
repeated Attribute attribute = 3;
}
message GeoSite {
string country_code = 1;
repeated Domain domain = 2;
}
message GeoSiteList {
repeated GeoSite entry = 1;
}