1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-04-11 11:42:10 +02:00
kratos/examples
YuanXin Hu e739f1d282
Example for Polaris (#1850)
* fix (registry/polaris): fix get unhealthy service

* fix (example/polaris): add polaris example
2022-03-01 19:58:24 +08:00
..
2022-02-27 12:29:51 +08:00
2021-09-09 20:45:08 +08:00
2021-09-09 20:45:08 +08:00
2021-09-09 20:45:08 +08:00
2021-12-08 00:17:24 +08:00
2022-01-14 10:02:42 +08:00
2021-09-09 20:45:08 +08:00
2021-09-09 20:45:08 +08:00
2022-03-01 19:58:24 +08:00
2021-11-29 10:55:11 +08:00
2021-09-09 20:45:08 +08:00
2021-09-09 20:45:08 +08:00
2022-01-14 10:02:42 +08:00
2021-09-09 20:45:08 +08:00
2021-09-09 20:45:08 +08:00
2021-06-13 08:42:26 +08:00
2022-03-01 19:58:24 +08:00
2022-03-01 19:58:24 +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.