README ¶ pkg 开发过程中常使用pkg库。 安装 go get -u github.com/zhufuyi/pkg pkg列表 app 优雅的启动和停止服务 awss3 aws s3客户端 cache 内存和redis缓存 conf 解析yaml、json、toml配置文件 dingtalk 钉钉机器人客户端 discovery 服务发现 email 发邮件客户端 encoding json或proto编解码 errcode http和grpc错误码 gin 相关 response gin返回数据封装 validator gin请求参数校验 handlerfunc gin handler函数 middleware gin中间件 auth 鉴权 cors 跨域 logging 日志 request id 请求id tracing 链路跟踪 ratelimit 限流 metrics 指标 grpc 相关 benchmark 压测 grpccli grpc 客户端 gtls TLS加密传输 hystrix 熔断 keepalive 保持连接 loadbalance 负载均衡 metrics grpc指标 interceptor 客户端和服务端的拦截器 recovery 恢复 jwtAuth 鉴权 logging 日志 timeout 超时 retry 重试 ratelimit 重试 hystrix 熔断 metrics 指标 tracing 链路跟踪 gobash bash命令 gocron 定时任务 gocrypto 加密解密 gofile 文件处理 gohttp http客户端 goredis redis客户端 jwt 鉴权 jy2struct json或yaml转struct krand 随机数和字符串生成器 logger 日志 mconf 文本处理 mongo 客户端 mysql 客户端 nats 客户端 redis 客户端 registry 服务注册 replacer 替换模板内容 snowflake id生成器 sql2code 根据sql生成不同用途代码 tracer 链路跟踪 utils Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files doc.go Directories ¶ Show internal Expand all Path Synopsis app awss3 cache conf internal/config dingtalk discovery email encoding json proto errcode gin errcode handlerfunc middleware middleware/metrics middleware/ratelimiter response validator gobash gocron gocrypto comCipher nolint nolint gofile gohttp goredis grpc benchmark grpccli gtls gtls/certfile hystrix interceptor keepalive loadbalance metrics jwt jy2struct krand logger mconf mongo demo qmgo mysql example/dao example/model query nats npub nsub redis nolint nolint registry consul etcd nacos replacer snowflake sql2code parser tracer utils Click to show internal directories. Click to hide internal directories.