Codebase list golang-github-go-kit-kit / d62a90e
transport/*/README.md: minor copyediting Peter Bourgon 8 years ago
3 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
55
66 First, define your service using protobuf3.
77 This is explained [in gRPC documentation](http://www.grpc.io/docs/#defining-a-service).
8 [See add.proto](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/pb/add.proto) for an example.
8 See [add.proto](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/pb/add.proto) for an example.
99 Make sure the proto definition matches your service's Go kit (interface) definition.
1010
1111 Next, get the protoc compiler.
2727
2828 Finally, write a tiny binding from your service definition to the gRPC definition.
2929 It's a simple conversion from one domain to another.
30 [See grpc_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/grpc_binding.go) for an example.
30 See [grpc_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/grpc_binding.go) for an example.
3131
3232 That's it!
3333 The gRPC binding can be bound to a listener and serve normal gRPC requests.
44
55 Using net/rpc with Go kit is very simple.
66 Just write a simple binding from your service definition to the net/rpc definition.
7 [See netrpc_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/netrpc_binding.go) for an example.
7 See [netrpc_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/netrpc_binding.go) for an example.
88
99 That's it!
1010 The net/rpc binding can be registered to a name, and bound to an HTTP handler, the same as any other net/rpc endpoint.
00 # Thrift
11
2 [Thrift](https://thrift.apache.org/) is a popular IDL and transport package from Apache, popularized by Facebook.
2 [Thrift](https://thrift.apache.org/) is a large IDL and transport package from Apache, popularized by Facebook.
33 Thrift is well-supported in Go kit, for organizations that already have significant Thrift investment.
44 And using Thrift with Go kit is very simple.
55