mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-03-26 06:46:24 +03:00
Ref: add protobuf
This commit is contained in:
37
proto/geosite.proto
Normal file
37
proto/geosite.proto
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user