Skip to content

Instantly share code, notes, and snippets.

@Niraj-Fonseka
Last active January 17, 2023 08:26
Show Gist options
  • Save Niraj-Fonseka/da9fdad9e3d7ba0fc3304dd7121d5fbb to your computer and use it in GitHub Desktop.
Save Niraj-Fonseka/da9fdad9e3d7ba0fc3304dd7121d5fbb to your computer and use it in GitHub Desktop.
syntax = "proto3";
package sensors;
option go_package="sensorpb";
message SensorRequest {
}
message SensorResponse {
int64 value = 1;
}
service Sensor{
rpc TempSensor(SensorRequest) returns (stream SensorResponse) {};
rpc HumiditySensor(SensorRequest) returns (stream SensorResponse) {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment