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
包子 eaf0ceab0c
chore(registry): unified management of decentralized warehouses (#1368)
3 years ago
..
benchmark feat(examples): add benchmark example (#1134) 4 years ago
blog fix example blog makefile (#1296) 3 years ago
config fix(examples/config): fixed spelling mistake (#1186) 4 years ago
errors fix(http): fix error encoder (#1141) 4 years ago
event chore(examples/event): examples of increasing use of event (#1228) 3 years ago
header add response header (#1119) 4 years ago
helloworld feat(transport): add transport tls config (#1267) 3 years ago
http style: add gosimple linter and gofmt linter (#1242) 3 years ago
i18n chore(examples/i18n): typo (#1250) 3 years ago
log Add logrus example (#1124) 4 years ago
metadata feat(transport): add transport tls config (#1267) 3 years ago
metrics clean metrics (#1049) 4 years ago
middleware examples: add examples/middleware (#1121) 4 years ago
registry chore(registry): unified management of decentralized warehouses (#1368) 3 years ago
stream feat: kratos tool support generate stream service code (#1284) 3 years ago
swagger feat: change grpc gateway import path (#1295) 3 years ago
tls fix: correct client code in the example of TLS connection (#1355) 3 years ago
traces feat: enhance tracing (#1300) 3 years ago
validate add v2.0.0 4 years ago
ws clean examples (#1041) 4 years ago
LICENSE examples (#748) 4 years ago
README.md add swagger api examples 4 years ago
go.mod chore(registry): unified management of decentralized warehouses (#1368) 3 years ago
go.sum chore(registry): unified management of decentralized warehouses (#1368) 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.