mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-23 11:53:33 +02:00
46 lines
No EOL
967 B
Protocol Buffer
46 lines
No EOL
967 B
Protocol Buffer
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 {
|
|
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;
|
|
}
|
|
// Domain matching type.
|
|
Type type = 1;
|
|
|
|
// 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;
|
|
} |