6cf6f95f58
CodeQL / Analyze (push) Has been cancelled
Sync to Gitee / Run (push) Has been cancelled
Go / build & test (1.25.x) (push) Has been cancelled
Go / build & test (1.26.x) (push) Has been cancelled
Lint / resolve module (push) Has been cancelled
Lint / lint module (push) Has been cancelled
30 lines
658 B
Protocol Buffer
30 lines
658 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package helloworld;
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
option go_package = "github.com/go-kratos/kratos/v3/internal/testdata/helloworld";
|
|
|
|
// The greeting service definition.
|
|
service Greeter {
|
|
// Sends a greeting
|
|
rpc SayHello (HelloRequest) returns (HelloReply) {
|
|
option (google.api.http) = {
|
|
get: "/helloworld/{name}",
|
|
};
|
|
}
|
|
// Sends a greeting
|
|
rpc SayHelloStream (stream HelloRequest) returns (stream HelloReply);
|
|
}
|
|
|
|
// The request message containing the user's name.
|
|
message HelloRequest {
|
|
string name = 1;
|
|
}
|
|
|
|
// The response message containing the greetings
|
|
message HelloReply {
|
|
string message = 1;
|
|
}
|