1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-03 22:52:24 +02:00
kratos/examples
2021-08-17 23:07:06 +08:00
..
benchmark feat(examples): add benchmark example (#1134) 2021-07-01 09:49:35 +08:00
blog fix example blog makefile (#1296) 2021-08-05 09:24:39 +08:00
config fix(examples/config): fixed spelling mistake (#1186) 2021-07-14 16:03:16 +08:00
errors fix(http): fix error encoder (#1141) 2021-07-03 15:22:13 +08:00
event chore(examples/event): examples of increasing use of event (#1228) 2021-07-22 18:03:19 +08:00
header add response header (#1119) 2021-06-29 15:33:18 +08:00
helloworld feat(transport): add transport tls config (#1267) 2021-07-28 13:36:15 +08:00
http style: add gosimple linter and gofmt linter (#1242) 2021-07-25 12:09:38 +08:00
i18n chore(examples/i18n): typo (#1250) 2021-07-26 09:04:17 +08:00
log Add logrus example (#1124) 2021-06-29 19:53:55 +08:00
metadata feat(transport): add transport tls config (#1267) 2021-07-28 13:36:15 +08:00
metrics clean metrics (#1049) 2021-06-13 15:38:33 +08:00
middleware examples: add examples/middleware (#1121) 2021-06-28 23:50:30 +08:00
registry fix:etcd<3.13 block question (#1317) 2021-08-11 18:51:00 +08:00
stream feat: kratos tool support generate stream service code (#1284) 2021-08-06 11:11:45 +08:00
swagger feat: change grpc gateway import path (#1295) 2021-08-04 17:47:48 +08:00
tls fix: correct client code in the example of TLS connection (#1355) 2021-08-17 23:07:06 +08:00
traces feat: enhance tracing (#1300) 2021-08-05 18:51:20 +08:00
validate add v2.0.0 2021-07-08 13:54:09 +08:00
ws clean examples (#1041) 2021-06-13 08:42:26 +08:00
go.mod fix:etcd<3.13 block question (#1317) 2021-08-11 18:51:00 +08:00
go.sum fix:etcd<3.13 block question (#1317) 2021-08-11 18:51:00 +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.