Skip to content

Instantly share code, notes, and snippets.

@autodidaddict
Last active July 27, 2018 18:34
Show Gist options
  • Save autodidaddict/c7c7f0adc922802b2aa7203f4e34b3c8 to your computer and use it in GitHub Desktop.
Save autodidaddict/c7c7f0adc922802b2aa7203f4e34b3c8 to your computer and use it in GitHub Desktop.
gRPC Ballerina Blog Posts - 3
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