# README
zero-helper
模块
- actor: Actor 模型
- array: 切片操作,如切片转字符串,
[1,2,3] -> 1+2+3
- bloom: 封装布隆过滤器
- buffer
- circle: 环形缓存区
- bytes:
[]byte
相关 - cache: 封装
redis
- codec: 编码与解码器
- collections: slice, map
- compress: 压缩与解压
- config: 读取配置表
- crypto: 加密与解密
- database: 封装
mysql
- email: 发送邮件
- entity:
cache-aside
,封装gorm
和bigcache
- file: 文件相关
- graceful: 优雅的重启和关闭服务器
- human: 身份证验证
- ip: IP 字符串类型地址与整型的转换
- json: 替换默认的
json
解析库 - jwt: 封装
jwt
- locker: 分布式锁
- logger: 日志相关
- os: 系统相关
- random: 随机数
- choice: 权重随机
- shortsf: 46 位,workID [1,8]
- snowflake: 64 位,workID [0,1023]
- uuid: 单机版
- reflect: 封装
reflect
- regexp: 一些正则表达式
- time: 时间相关
- timer: 定时器,时间轮
- words: 字数统计
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package codec 消息的编码与解码,支持 json、protobuf,默认 json 格式.
No description provided by the author
No description provided by the author
No description provided by the author
Package constants 定义一些常量.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package human 中国身份证验证与生成.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package logger 日志接口,自定义日志需要实现本接口.
No description provided by the author
Package random 雪花算法修改版
时间回拨处理: 1 当相差 15 ms 之内时,等待时间追上 2 当超过 15 ms 时,直接替换节点 id 2.1 需要实现 nextWorkIDFunc 和 backWorkIDFunc 函数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package timer 定时器,时间轮 推荐使用 timer-pool.go 中的 TimerWheelPool 而不是直接使用 TimerWheel.
No description provided by the author
No description provided by the author
No description provided by the author