README ¶ pkg 开发过程中常使用pkg库。 安装 go get -u github.com/zhufuyi/pkg pkg列表 app 优雅的启动和停止服务 awss3 aws s3客户端 cache 内存和redis缓存 dingtalk 钉钉机器人客户端 discovery 服务发现 email 发邮件客户端 encoding json或proto编解码 errcode http和grpc错误码 gin 相关 validator gin请求参数校验 response gin返回数据封装 errorcode 错误码定义 metrics 监控指标 ratelimiter 限流 middleware gin中间件 grpc 相关 benchmark 压测 grpccli grpc 客户端 gtls TLS加密传输 hystrix 熔断 interceptor 一些grpc客户端和服务端的拦截器,包括jwt、logging、recovery、metrics、ratelimit、loadbalance、retry、hystrix、tracing、timeout keepalive 保持连接 loadbalance 负载均衡 metrics grpc指标 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 dingtalk discovery email encoding json proto errcode gin errcode middleware middleware/metrics middleware/ratelimiter render nolint nolint 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.