mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
26 lines
404 B
Protocol Buffer
26 lines
404 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ip;
|
|
|
|
option go_package = "./proto;ip";
|
|
|
|
service Ip {
|
|
rpc Lookup(LookupRequest) returns (LookupResponse) {}
|
|
}
|
|
|
|
// Lookup the geolocation information for an IP address
|
|
message LookupRequest {
|
|
string ip = 1;
|
|
}
|
|
|
|
message LookupResponse {
|
|
string ip = 1;
|
|
int64 asn = 2;
|
|
string city = 3;
|
|
string country = 4;
|
|
double latitude = 5;
|
|
double longitude = 6;
|
|
string timezone = 7;
|
|
}
|
|
|