Last active
January 17, 2023 08:26
-
-
Save Niraj-Fonseka/da9fdad9e3d7ba0fc3304dd7121d5fbb to your computer and use it in GitHub Desktop.
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"; | |
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