1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-05 13:15:11 +02:00
kratos/examples
Tony Chen 5ca42fe921
feat(transport): add transport tls config (#1267)
* add http tls config

* add grpc tls config

* add examples tls

* fix resolver parseTarget

* support https for discovery

* add isSecure
* clean code

Co-authored-by: longXboy <longxboyhi@gmail.com>
Co-authored-by: 包子 <baozhecheng@foxmail.com>
2021-07-28 13:36:15 +08:00
..
2021-06-29 15:33:18 +08:00
2021-07-26 09:04:17 +08:00
2021-06-29 19:53:55 +08:00
2021-06-13 15:38:33 +08:00
2021-07-27 15:35:47 +08:00
2021-07-08 13:54:09 +08:00
2021-07-08 13:54:09 +08:00
2021-07-08 13:54:09 +08:00
2021-06-13 08:42:26 +08:00
2021-07-27 11:45:09 +08:00
2021-07-27 11:39:46 +08:00
2021-03-05 23:49:25 +08:00
2021-07-07 14:37:58 +08:00

examples

  • examples/blog is simple crud project.
  • examples/config is kratos config example.
  • examples/errors is kratos errors example, it is generated through proto-gen-go-errors.
  • examples/helloworld is helloworld example.
  • examples/http is transport/http some examples of usage.
  • examples/log is log example, including、logger、helper、filter、valuer, etc.
  • examples/metadata is metadata example.
  • examples/metrics is metrics example, in the example, prom is used to collect data.
  • examples/registry is registration and discovery examples,including Etcd, Consul, Nacos.
  • examples/traces is middleware/tracing example,middleware/tracing is implemented by opentelemetry.
  • examples/validate is middleware/validate example, the verification code is generated by proto-gen-validate.
  • examples/ws is implementation of transport interface with websocket example.
  • examples/swagger is implementation of server with embed swagger api.