1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/examples
longxboy 7530fadde0
Feat/fix examples (#1129)
remove github protobuf dependency
2021-06-30 15:33:08 +08:00
..
blog Feat/fix examples (#1129) 2021-06-30 15:33:08 +08:00
config examples: clean examples (#1036) 2021-06-12 20:20:18 +08:00
errors add examples/errors (#1077) 2021-06-17 17:57:23 +08:00
header add response header (#1119) 2021-06-29 15:33:18 +08:00
helloworld cmd/protoc-gen-go-http: fix http protoc to bind query_string (#1126) 2021-06-30 14:13:28 +08:00
http Middleware/metadata v2 (#1050) 2021-06-14 00:59:07 +08:00
log Add logrus example (#1124) 2021-06-29 19:53:55 +08:00
metadata add response header (#1119) 2021-06-29 15:33:18 +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 examples: clean examples (#1036) 2021-06-12 20:20:18 +08:00
traces Feat/fix examples (#1129) 2021-06-30 15:33:08 +08:00
validate Feat/fix examples (#1129) 2021-06-30 15:33:08 +08:00
ws clean examples (#1041) 2021-06-13 08:42:26 +08:00
go.mod Feat/fix examples (#1129) 2021-06-30 15:33:08 +08:00
go.sum Feat/fix examples (#1129) 2021-06-30 15:33:08 +08:00
LICENSE examples (#748) 2021-03-05 23:49:25 +08:00
README.md update examples (#1108) 2021-06-25 10:10:50 +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.