Last active
July 27, 2018 18:34
-
-
Save autodidaddict/c7c7f0adc922802b2aa7203f4e34b3c8 to your computer and use it in GitHub Desktop.
gRPC Ballerina Blog Posts - 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
import "google/protobuf/wrappers.proto"; | |
service DroneMgmt { | |
rpc GetDrone(google.protobuf.StringValue) returns (DroneInfo); | |
rpc AddDrone(DroneInfo) returns (DroneInfo); | |
rpc UpdateDrone(DroneInfo) returns (DroneInfo); | |
} | |
message DroneInfo { | |
string id = 1; | |
string name = 2; | |
int64 battery_remaining = 3; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment