Skip to content

v0.0.99

Compare
Choose a tag to compare
@chenjie199234 chenjie199234 released this 26 Feb 11:00
· 245 commits to main since this release

change the protobuf plugin for pbex,web,crpc,cgrpc
now:
pbex.method is a string slice
methods in proto file need to add pbex.method to declare which server will this method expose to
e.g.

service example{
	rpc example_method(req)returns(resp){
		option (pbex.method)="get";//this method can expose to web server with http method GET.
		option (pbex.method)="crpc";//this method can expose to crpc server
		option (pbex.method)="grpc";//this method can expose to grpc server
	}
}