github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/srv/geo/proto/geo.proto (about)

     1  syntax = "proto3";
     2  
     3  package geo;
     4  
     5  service Geo {
     6    // Finds the hotels contained nearby the current lat/lon.
     7    rpc Nearby(Request) returns (Result);
     8  }
     9  
    10  // The latitude and longitude of the current location.
    11  message Request {
    12    float lat = 1;
    13    float lon = 2;
    14  }
    15  
    16  message Result {
    17    repeated string hotelIds = 1;
    18  }