github.com/micro/go-micro/examples@v0.0.0-20210105173217-bf4ab679e18b/booking/api/hotel/proto/hotel.proto (about) 1 syntax = "proto3"; 2 3 package hotel; 4 5 import "github.com/micro/go-micro/examples/booking/srv/profile/proto/profile.proto"; 6 import "github.com/micro/go-micro/examples/booking/srv/rate/proto/rate.proto"; 7 8 service Hotel { 9 rpc Rates(Request) returns (Response) {}; 10 } 11 12 message Request { 13 string inDate = 1; 14 string outDate = 2; 15 } 16 17 message Response { 18 repeated profile.Hotel hotels = 1; 19 repeated rate.RatePlan ratePlans = 2; 20 }