Codebase list golang-github-go-kit-kit / 3b9658d9-4065-4804-9af8-16961c419f60/v0.11.0
Merge pull request #1129 from sagikazarmark/improve-example-references Improve example references Márk Sági-Kazár authored 2 years ago GitHub committed 2 years ago
6 changed file(s) with 9 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
0 examples/addsvc/addsvc
1 examples/addsvc/client/client
2 examples/apigateway/apigateway
3 examples/profilesvc/profilesvc
4 examples/stringsvc1/stringsvc1
5 examples/stringsvc2/stringsvc2
6 examples/stringsvc3/stringsvc3
70 *.coverprofile
81
92 # Compiled Object files, Static and Dynamic libs (Shared Objects)
6969 which is a central repository of instrumentation libraries.
7070
7171 [Dapper]: http://research.google.com/pubs/pub36356.html
72 [addsvc]:https://github.com/go-kit/kit/tree/master/examples/addsvc
72 [addsvc]: https://github.com/go-kit/examples/tree/master/addsvc
7373 [README]: https://github.com/go-kit/kit/blob/master/tracing/zipkin/README.md
7474
7575 [OpenTracing]: http://opentracing.io
4747 ```
4848
4949 [zipkin-go]: https://github.com/openzipkin/zipkin-go
50 [addsvc]:https://github.com/go-kit/kit/tree/master/examples/addsvc
50 [addsvc]: https://github.com/go-kit/examples/tree/master/addsvc
5151 [Log]: https://github.com/go-kit/kit/tree/master/log
5252
5353 ### Tracing Resources
1212 First, define your service using protobuf3. This is explained
1313 [in gRPC documentation](http://www.grpc.io/docs/#defining-a-service).
1414 See
15 [add.proto](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/pb/add.proto)
15 [addsvc.proto](https://github.com/go-kit/examples/blob/master/addsvc/pb/addsvc.proto)
1616 for an example. Make sure the proto definition matches your service's go-kit
1717 (interface) definition.
1818
4242 Finally, write a tiny binding from your service definition to the gRPC
4343 definition. It's a simple conversion from one domain to another.
4444 See
45 [grpc_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/grpc_binding.go)
45 [grpc.go](https://github.com/go-kit/examples/blob/master/addsvc/pkg/addtransport/grpc.go)
4646 for an example.
4747
4848 That's it!
4949 The gRPC binding can be bound to a listener and serve normal gRPC requests.
5050 And within your service, you can use standard go-kit components and idioms.
51 See [addsvc](https://github.com/go-kit/examples/blob/master/addsvc/) for
51 See [addsvc](https://github.com/go-kit/examples/tree/master/addsvc/) for
5252 a complete working example with gRPC support. And remember: go-kit services
5353 can support multiple transports simultaneously.
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.
1111 And within your service, you can use standard Go kit components and idioms.
12 See [addsvc](https://github.com/go-kit/kit/tree/master/examples/addsvc) for a complete working example with net/rpc support.
12 See [addsvc](https://github.com/go-kit/examples/tree/master/addsvc) for a complete working example with net/rpc support.
1313 And remember: Go kit services can support multiple transports simultaneously.
55
66 First, define your service in the Thrift IDL.
77 The [Thrift IDL documentation](https://thrift.apache.org/docs/idl) provides more details.
8 See [add.thrift](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/_thrift/add.thrift) for an example.
8 See [addsvc.thrift](https://github.com/go-kit/examples/blob/master/addsvc/thrift/addsvc.thrift) for an example.
99 Make sure the Thrift definition matches your service's Go kit (interface) definition.
1010
1111 Next, [download Thrift](https://thrift.apache.org/download) and [install the compiler](https://thrift.apache.org/docs/install/).
2121
2222 Finally, write a tiny binding from your service definition to the Thrift definition.
2323 It's a straightforward conversion from one domain to the other.
24 See [thrift_binding.go](https://github.com/go-kit/kit/blob/ec8b02591ee873433565a1ae9d317353412d1d27/examples/addsvc/thrift_binding.go) for an example.
24 See [thrift.go](https://github.com/go-kit/examples/blob/master/addsvc/pkg/addtransport/thrift.go) for an example.
2525
2626 That's it!
2727 The Thrift binding can be bound to a listener and serve normal Thrift requests.
2828 And within your service, you can use standard Go kit components and idioms.
2929 Unfortunately, setting up a Thrift listener is rather laborious and nonidiomatic in Go.
30 Fortunately, [addsvc](https://github.com/go-kit/kit/tree/master/examples/addsvc) is a complete working example with Thrift support.
30 Fortunately, [addsvc](https://github.com/go-kit/examples/tree/master/addsvc) is a complete working example with Thrift support.
3131 And remember: Go kit services can support multiple transports simultaneously.