examples

module
v0.0.0-...-61daed1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2025 License: MIT

README

examples

English | 简体中文

  • blog is simple crud project.
  • config is kratos config example.
  • errors is kratos errors example, it is generated through proto-gen-go-errors.
  • helloworld is helloworld example.
  • http is transport/http some examples of usage.
  • log is log example, including、logger、helper、filter、valuer, etc.
  • metadata is metadata example.
  • metrics is metrics example, in the example, prom is used to collect data.
  • registry is registration and discovery examples,including Etcd, Consul, Nacos.
  • traces is middleware/tracing example,middleware/tracing is implemented by opentelemetry.
  • validate is middleware/validate example, the verification code is generated by proto-gen-validate.
  • ws is implementation of transport interface with websocket example.
  • swagger is implementation of server with embed swagger api.

Directories

Path Synopsis
auth
jwt command
cmd/blog command
apollo command
errors
api
client command
server command
receiver command
sender command
header
client command
server command
client command
server command
http
cors command
download command
echo command
errors command
gin command
middlewares command
mux command
pprof command
redirect command
session command
static command
upload command
cmd/i18n command
metadata
client command
server command
registry
consul/client command
consul/server command
etcd/client command
etcd/cmuxServer command
etcd/server command
eureka/client command
eureka/server command
nacos/client command
nacos/server command
selector
client command
server command
sse
stream
client command
server command
swagger
server command
tls
client command
server command
traces
app/message command
app/user command
transaction
ent
ent/cmd/ent command
gorm/cmd/gorm command
mongo/cmd/mongo command
sqlc/cmd/sqlc command
api
ws
client command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL