1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-16 02:47:03 +02:00
kratos/examples
longxboy 0aace47d08
fix: fix registry go mod(#1521)
fix: fix registry go mod
2021-09-28 10:25:46 +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 fix: examples lint error (#1454) 2021-09-09 20:45:08 +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 fix: examples lint error (#1454) 2021-09-09 20:45:08 +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 selector and filters examples (#1485) 2021-09-23 17:42:21 +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 feat(registry): support discovery registry center (#1480) 2021-09-28 10:15:35 +08:00
go.sum fix: fix registry go mod(#1521) 2021-09-28 10:25:46 +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.