mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
comment ip proto
This commit is contained in:
@@ -10,16 +10,24 @@ service Ip {
|
|||||||
|
|
||||||
// Lookup the geolocation information for an IP address
|
// Lookup the geolocation information for an IP address
|
||||||
message LookupRequest {
|
message LookupRequest {
|
||||||
|
// IP to lookup. If not specified we assume the caller.
|
||||||
string ip = 1;
|
string ip = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LookupResponse {
|
message LookupResponse {
|
||||||
|
// IP of the query
|
||||||
string ip = 1;
|
string ip = 1;
|
||||||
|
// Autonomous system number
|
||||||
int64 asn = 2;
|
int64 asn = 2;
|
||||||
|
// Name of the city
|
||||||
string city = 3;
|
string city = 3;
|
||||||
|
// Name of the country
|
||||||
string country = 4;
|
string country = 4;
|
||||||
|
// Latitude e.g 52.523219
|
||||||
double latitude = 5;
|
double latitude = 5;
|
||||||
|
// Longitude e.g 13.428555
|
||||||
double longitude = 6;
|
double longitude = 6;
|
||||||
|
// Timezone e.g Europe/Rome
|
||||||
string timezone = 7;
|
string timezone = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user