Xray-core/common/matcher/geosite/geosite.proto

46 lines
967 B
Protocol Buffer
Raw Normal View History

2021-03-24 15:01:20 +00:00
syntax = "proto3";
package xray.common.matcher.geosite;
option csharp_namespace = "Xray.Common.Matcher.GeoSite";
option go_package = "github.com/xtls/xray-core/common/matcher/geosite";
option java_package = "com.xray.common.matcher.geosite";
option java_multiple_files = true;
message Domain {
2021-03-27 09:41:46 +00:00
enum Type {
// The value is used as is.
Plain = 0;
// The value is used as a regular expression.
Regex = 1;
// The value is a root domain.
Domain = 2;
// The value is a domain.
Full = 3;
}
2021-03-24 15:01:20 +00:00
// Domain matching type.
2021-03-27 09:41:46 +00:00
Type type = 1;
2021-03-24 15:01:20 +00:00
// Domain value.
string value = 2;
message Attribute {
string key = 1;
oneof typed_value {
bool bool_value = 2;
int64 int_value = 3;
}
}
// Attributes of this domain. May be used for filtering.
repeated Attribute attribute = 3;
}
message GeoSite {
string country_code = 1;
repeated Domain domain = 2;
}
message GeoSiteList {
repeated GeoSite entry = 1;
}