1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
kratos/examples
2021-09-06 21:32:05 +08:00
..
benchmark feat(examples): add benchmark example (#1134) 2021-07-01 09:49:35 +08:00
blog refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
config fix(config/apollo): rename func NewSouceWithConfig (#1425) 2021-09-06 21:32:05 +08:00
errors fix(http): fix error encoder (#1141) 2021-07-03 15:22:13 +08:00
event chore(examples/event): add memory and rename Message to Event (#1282) 2021-09-05 21:39:19 +08:00
header add response header (#1119) 2021-06-29 15:33:18 +08:00
helloworld refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
http refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
i18n refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
log Add logrus example (#1124) 2021-06-29 19:53:55 +08:00
metadata refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
metrics fix change unit to seconds (#1408) 2021-09-02 15:20:36 +08:00
middleware examples: add examples/middleware (#1121) 2021-06-28 23:50:30 +08:00
registry refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
stream refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
swagger feat: change grpc gateway import path (#1295) 2021-08-04 17:47:48 +08:00
tls refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
traces refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
validate refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
ws clean examples (#1041) 2021-06-13 08:42:26 +08:00
go.mod feat: add apollo example and some problems of fix apollo config (#1411) 2021-09-02 15:04:58 +08:00
go.sum fix: sra to aegis (#1420) 2021-09-05 22:42:38 +08:00
LICENSE
README.md add swagger api examples 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.