Closed daurnimator closed 6 years ago
This is only a protobuf encode/decode module, just as Google's own protobuf library. It only offers the basic implementation of protobuf data format, but not gRPC.
It only offers the basic implementation of protobuf data format, but not gRPC.
I'd like to use it as a base to build a gRPC library.
What would be required to have your parser emit the definition of a service
? (I want to use my own socket/http library(s))
you could just load the schema as the Lua table using pb.decode("google.protobuf.FileDescriptorSet", pb_file_string)
,and then you can do what you like with service. I just don't have an interface to read the service information. or use protoc
module, it may return the table format of the FileDescriptorProto
message of the schema.
I'm investingating various lua libraries for use with gRPC. Using the current git HEAD, I was able to parse a .proto file containing a gRPC service definition. However I'm not sure how to actually use the service: e.g.
pb.type("myservice")
doesn't return the service.For initial testing, I'm using the example service definition from here: