Grpc hello service implementation
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
syntax = "proto3";
|
||||
package music_agregator.hello.v1;
|
||||
option go_package = "homelab.lan/music-agregator/gen/music_agregator/v1/hello";
|
||||
|
||||
service HelloService {
|
||||
rpc Ping(PingRequest) returns (PongResponse) {}
|
||||
rpc Echo(EchoRequest) returns (EchoResponse) {}
|
||||
}
|
||||
|
||||
message PingRequest {
|
||||
|
||||
}
|
||||
message PongResponse {
|
||||
}
|
||||
|
||||
message EchoRequest {
|
||||
string msg = 1;
|
||||
}
|
||||
|
||||
message EchoResponse {
|
||||
string response = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user