mirror of
https://github.com/go-micro/go-micro.git
synced 2025-03-29 20:39:48 +02:00
https://github.com/golang/protobuf/issues/1077 package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead. (SA1019)
23 lines
407 B
Protocol Buffer
23 lines
407 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
option go_package = "../greeter";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
service Greeter {
|
|
rpc Hello(Request) returns (Response) {
|
|
option (google.api.http) = { post: "/hello"; body: "*"; };
|
|
}
|
|
rpc Stream(stream Request) returns (stream Response) {
|
|
option (google.api.http) = { get: "/stream"; };
|
|
}
|
|
}
|
|
|
|
message Request {
|
|
string name = 1;
|
|
}
|
|
|
|
message Response {
|
|
string msg = 1;
|
|
}
|