Created
May 30, 2022 18:14
-
-
Save aligoren/ac8c4de50472203b3a89108dc8c8b1b1 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 main; | |
option go_package = "./protos"; | |
service HealthService { | |
rpc GetSystemHealth(HealthRequest) returns (HealthResponse) {} | |
rpc GetCpuData(stream CpuRequest) returns (stream CpuResponse) {} | |
} | |
message HealthRequest { | |
string type = 1; | |
} | |
message HealthResponse { | |
string os = 1; | |
string data = 2; | |
} | |
message CpuRequest { | |
} | |
message CpuResponse { | |
string data = 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment