Skip to content
New issue

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

Doesn't go-micro support lowercase grpc method name in proto ? #2698

Open
PerfecterDay opened this issue Mar 17, 2024 Discussed in #2697 · 0 comments
Open

Doesn't go-micro support lowercase grpc method name in proto ? #2698

PerfecterDay opened this issue Mar 17, 2024 Discussed in #2697 · 0 comments

Comments

@PerfecterDay
Copy link

Discussed in #2697

Originally posted by PerfecterDay March 14, 2024
Hi @asim , I have a proto file defined a rpcc service below :

service Greeter {
  rpc handle (Request) returns (Response) {
  }
}

in xxx.pb.micro.go, Handle method generated. And I have debug a little, find out go-micro use reflect to get the service name and method, and then register them in somewhere.
but I see in xxx.pb.micro.go, it use lowercase method to gennerate request. This will lead 'unknown service Greeter.handle'

func (c *greeterService) Handle(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) {
	req := c.c.NewRequest(c.name, "Greeter.handle", in)
	out := new(Response)
	err := c.c.Call(ctx, req, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

So my question is does go-micro only support uppercase name ? Any suggetion will be appreciate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant