1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
kratos/examples
2021-11-10 20:10: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 typo(examples/blog): change ”make run“ to ”kratos run“ (#1474) 2021-09-14 19:32:59 +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 fix: examples lint error (#1454) 2021-09-09 20:45:08 +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 feat(registry): support discovery registry center (#1480) 2021-09-28 10:15:35 +08:00
selector feat: add base fitler to improve performace (#1612) 2021-11-08 15:22:04 +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 fix: examples lint error (#1454) 2021-09-09 20:45:08 +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 test: add nacos test (#1603) 2021-11-05 16:45:46 +08:00
go.sum test: add nacos test (#1603) 2021-11-05 16:45:46 +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.