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
longXboy 26e94aa2ad add swagger api examples 3 years ago
..
benchmark feat(examples): add benchmark example (#1134) 3 years ago
blog upgrade otel to v1 rc1 (#1132) 3 years ago
config examples: clean examples (#1036) 4 years ago
errors fix(http): fix error encoder (#1141) 3 years ago
header add response header (#1119) 3 years ago
helloworld cmd/protoc-gen-go-http: fix http protoc to bind query_string (#1126) 3 years ago
http fix(http): fix error encoder (#1141) 3 years ago
log Add logrus example (#1124) 3 years ago
metadata add response header (#1119) 3 years ago
metrics clean metrics (#1049) 4 years ago
middleware examples: add examples/middleware (#1121) 3 years ago
registry examples: clean examples (#1036) 4 years ago
swagger add swagger api examples 3 years ago
traces upgrade otel to v1 rc1 (#1132) 3 years ago
validate Feat/fix examples (#1129) 3 years ago
ws clean examples (#1041) 4 years ago
LICENSE examples (#748) 4 years ago
README.md add swagger api examples 3 years ago
go.mod add swagger api examples 3 years ago
go.sum add swagger api examples 3 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.
  • examples/swagger is implementation of server with embed swagger api.