You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/examples
包子 725d60134c
examples: add examples/middleware (#1121)
4 years ago
..
blog feat(cmd): support the validate pb file generate for kratos proto client command (#1094) 4 years ago
config examples: clean examples (#1036) 4 years ago
errors add examples/errors (#1077) 4 years ago
helloworld update examples (#1108) 4 years ago
http Middleware/metadata v2 (#1050) 4 years ago
log examples: clean examples (#1036) 4 years ago
metadata Revert/root ctx v2 (#1088) 4 years ago
metrics clean metrics (#1049) 4 years ago
middleware examples: add examples/middleware (#1121) 4 years ago
registry examples: clean examples (#1036) 4 years ago
traces Fix rename tracing.WithPropagators to tracing.WithPropagator (#1095) 4 years ago
validate add examples/validate (#1093) 4 years ago
ws clean examples (#1041) 4 years ago
LICENSE examples (#748) 4 years ago
README.md update examples (#1108) 4 years ago
go.mod examples: add cors example (#1048) 4 years ago
go.sum examples: add cors example (#1048) 4 years ago

README.md

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.