We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// The greeting service definition. service Greeter { // Sends a greeting rpc sayHello (HelloRequest) returns (HelloReply) { option (google.api.http) = { // 定义一个 GET 接口,并且把 name 映射到 HelloRequest get: "/helloworld/{name}", // 可以添加附加接口 additional_bindings { // 定义一个 POST 接口,并且把 body 映射到 HelloRequest post: "/v1/greeter/say_hello", body: "*", } }; } }
kratos proto server
// Unable to export func (s *GreeterService) sayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error) { return &pb.HelloReply{}, nil }
The text was updated successfully, but these errors were encountered:
fix:#2002 definition service lowercase generation cannot be exported (#…
5c66fcd
…2003) * fix:#2002 * fix:lint
3375816
No branches or pull requests
What happened:
The text was updated successfully, but these errors were encountered: