Skip to content

Instantly share code, notes, and snippets.

@aligoren
Created May 30, 2022 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aligoren/ac8c4de50472203b3a89108dc8c8b1b1 to your computer and use it in GitHub Desktop.
Save aligoren/ac8c4de50472203b3a89108dc8c8b1b1 to your computer and use it in GitHub Desktop.
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