Files
services/ip/proto/ip.proto
Asim Aslam 4b01ad59f2 Ip (#133)
* add the ip service

* update readme
2021-06-02 16:13:11 +01:00

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;
}