Protobuf3 & gRPC code generation for Finagle using io.buoyant:finagle-h2.
Status: Experimental; the runtime API may change.
The grpc-gen package assembles the protoc-gen-io.buoyant.grpc
protoc
plugin. This generator creates code that encodes/decodes idiomatic
Scala case classes for proto3 data structures and generates gRPC
server bindings using io.buoyant:finagle-h2.
A binary may be produced with the following command:
sbt> grpc-gen/assembly
...
[info] Packaging /.../l5d/grpc/gen/target/scala-2.11/protoc-gen-io.buoyant.grpc ...
The Grpc.grpcGenSettings
SBT settings may be mixed into a project to
automatically generate scala code from protobuf definitions. These
settings ensure that the protoc-gen-io.buoyant.grpc binary is
available so that the binary need not be manually installed.
The grpc-runtime package provides de/serialization and communication primitives used by generated code.
The grpc-eg project contains only the proto definitions for an example gRPC service, along with a test that exercises this service.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。