1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
kratos/examples
2021-12-27 16:39:28 +08:00
..
auth/jwt feat(middleware/auth): add auth middleware (#1274) 2021-09-10 10:49:18 +08:00
benchmark fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
blog feat(cmd/kratos): generating API documentation using Gnostic (#1716) 2021-12-27 16:39:28 +08:00
config feat(contrib/config): use key file extension as format & config load log (#1619) 2021-11-10 20:10:28 +08:00
errors fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
event fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
header fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
helloworld fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
http make the output of gin example right (#1598) 2021-11-04 22:07:01 +08:00
i18n style: format (#1667) 2021-12-08 00:17:24 +08:00
log fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
metadata fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
metrics fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
middleware examples: add examples/middleware (#1121) 2021-06-28 23:50:30 +08:00
registry Update main.go (#1627) 2021-11-18 00:39:27 +08:00
selector revert to select filters (#1656) 2021-11-29 10:55:11 +08:00
stream fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
swagger fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
tls refactor: move from io/ioutil to io and os packages (#1633) 2021-11-16 13:22:35 +08:00
traces fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
validate fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
ws clean examples (#1041) 2021-06-13 08:42:26 +08:00
go.mod deps: update kratos version to 2.1.3 (#1706) 2021-12-22 14:15:09 +08:00
go.sum fix: nacos a vulnerable dependency was referenced (#1639) 2021-11-19 15:29:16 +08:00
LICENSE examples (#748) 2021-03-05 23:49:25 +08:00
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.