grpc-gateway-buf-consul-swa.../hello.proto

26 lines
442 B
Protocol Buffer
Raw Permalink Normal View History

2024-01-30 07:41:21 +00:00
syntax = "proto3";
package io.github.helloworlde;
option go_package = "github.com/helloworlde/grpc-gateway;grpc_gateway";
import "google/protobuf/wrappers.proto";
import "google/api/annotations.proto";
service HelloService{
rpc Hello(HelloMessage) returns (HelloResponse){
option (google.api.http) = {
get: "/hello"
};
}
}
message HelloMessage {
string message = 1;
}
message HelloResponse {
string result = 1;
}