Files
allow-domains/proto/geosite.proto
Kirill Sobakin 76f8f79434 Ref: add protobuf
2026-03-16 21:29:55 +03:00

38 lines
586 B
Protocol Buffer

// 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;
}