mirror of
https://codeberg.org/andyscott/OpenWeather-gRPC-API.git
synced 2024-12-20 12:03:10 -05:00
Update proto files
This commit is contained in:
parent
ff0debbb30
commit
4296dbc43c
2 changed files with 26 additions and 2 deletions
22
proto/location.proto
Normal file
22
proto/location.proto
Normal file
|
@ -0,0 +1,22 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package weather;
|
||||
|
||||
option go_package = "codeberg.org/andcscott/OpenWeatherMap-gRPC-API/proto";
|
||||
|
||||
//import "location_types.proto";
|
||||
//import "units.proto"
|
||||
|
||||
message RequestLocation {
|
||||
//LocationType location_type = 1; NOT IMPLEMENTED YET
|
||||
//Units units = 2; NOT IMPLEMENTED YET
|
||||
string city = 1;
|
||||
// optional string zip_code = 2; NOT IMPLEMENTED YET
|
||||
// optional string state = 2; // US Only / NOT IMPLEMENTED YET
|
||||
// optional string country = 3; // Must be an ISO 3166 code / NOT IMPLEMENTED YET
|
||||
}
|
||||
|
||||
message SendLocation {
|
||||
float latitude = 1;
|
||||
float longitude = 2;
|
||||
}
|
|
@ -6,8 +6,10 @@ option go_package = "codeberg.org/andcscott/OpenWeatherMap-gRPC-API/proto";
|
|||
|
||||
import "current.proto";
|
||||
import "extended.proto";
|
||||
import "location.proto";
|
||||
|
||||
service WeatherService {
|
||||
rpc Current(RequestCurrent) returns (SendCurrent);
|
||||
rpc Extended(RequestExtended) returns (SendExtended);
|
||||
rpc Current(RequestCurrent) returns (SendCurrent);
|
||||
rpc Extended(RequestExtended) returns (SendExtended);
|
||||
rpc Location(RequestLocation) returns (SendLocation);
|
||||
}
|
Loading…
Reference in a new issue