mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 07:41:25 +00:00
25
ip/proto/ip.proto
Normal file
25
ip/proto/ip.proto
Normal file
@@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user