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
Sasha Melentyev 48d407cc9b
perf: add prealloc (#1846)
3 years ago
..
auth/jwt feat(middleware/auth): add auth middleware (#1274) 3 years ago
benchmark fix: examples lint error (#1454) 3 years ago
blog perf: add prealloc (#1846) 3 years ago
config feat(contrib/config): use key file extension as format & config load log (#1619) 3 years ago
errors fix: examples lint error (#1454) 3 years ago
event fix: examples lint error (#1454) 3 years ago
header fix: examples lint error (#1454) 3 years ago
helloworld fix: examples lint error (#1454) 3 years ago
http feat:add examples redirect url (#1807) 3 years ago
i18n style: format (#1667) 3 years ago
log test:remove testify go mod (#1766) 3 years ago
metadata fix: examples lint error (#1454) 3 years ago
metrics fix: examples lint error (#1454) 3 years ago
middleware examples: add examples/middleware (#1121) 3 years ago
registry test:remove testify go mod (#1766) 3 years ago
selector revert to select filters (#1656) 3 years ago
stream fix: examples lint error (#1454) 3 years ago
swagger fix: examples lint error (#1454) 3 years ago
tls test:remove testify go mod (#1766) 3 years ago
traces fix: examples lint error (#1454) 3 years ago
transaction feat(example/transaction/ent): add ent install in Makefile (#1844) 3 years ago
validate fix: examples lint error (#1454) 3 years ago
ws clean examples (#1041) 3 years ago
LICENSE examples (#748) 4 years ago
README.md add swagger api examples 3 years ago
go.mod feat(examples/transaction): feature transaction gorm (#1838) 3 years ago
go.sum feat(examples/transaction): feature transaction gorm (#1838) 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.