zero-helper

module
v0.40.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT

README

zero-helper

模块

  • actor: Actor 模型
  • array: 切片操作,如切片转字符串,[1,2,3] -> 1+2+3
  • bloom: 封装布隆过滤器
  • buffer
    • circle: 环形缓存区
  • bytes: []byte相关
  • cache: 封装redis
  • codec: 编码与解码器
  • compress: 压缩与解压
  • config: 读取配置表
  • crypto: 加密与解密
  • database: 封装mysql
  • email: 发送邮件
  • entity: cache-aside,封装gormbigcache
  • file: 文件相关
  • graceful: 优雅的重启和关闭服务器
  • human: 身份证验证
  • ip: IP 字符串类型地址与整型的转换
  • json: 替换默认的 json 解析库
  • jwt: 封装 jwt
  • logger: 日志相关
  • os: 系统相关
  • random: 随机数
  • reflect: 封装 reflect
  • regexp: 一些正则表达式
  • time: 时间相关
  • timer: 定时器,时间轮
  • words: 字数统计

Directories

Path Synopsis
buffer
circle
Package circle 环形缓冲区 实现了 io.Reader, io.Writer, io.ReadWriter 接口 非线程安全
Package circle 环形缓冲区 实现了 io.Reader, io.Writer, io.ReadWriter 接口 非线程安全
Package codec 消息的编码与解码,支持 json、protobuf,默认 json 格式
Package codec 消息的编码与解码,支持 json、protobuf,默认 json 格式
protobuf
Package protobuf 谷歌官方实现
Package protobuf 谷歌官方实现
Package constants 定义一些常量
Package constants 定义一些常量
graceful
Package human 中国身份证验证与生成
Package human 中国身份证验证与生成
Package logger 日志接口,自定义日志需要实现本接口
Package logger 日志接口,自定义日志需要实现本接口
Package random 雪花算法修改版 0 - 毫秒时间戳(41 bit) - 序列号(12 bit) - 机器 id(10 bit) 0 - 69年 - 4000(每秒 1000 * 4000 个 uuid) - 1000
Package random 雪花算法修改版 0 - 毫秒时间戳(41 bit) - 序列号(12 bit) - 机器 id(10 bit) 0 - 69年 - 4000(每秒 1000 * 4000 个 uuid) - 1000
Package timer 定时器,时间轮 推荐使用 timer-pool.go 中的 TimerWheelPool 而不是直接使用 TimerWheel
Package timer 定时器,时间轮 推荐使用 timer-pool.go 中的 TimerWheelPool 而不是直接使用 TimerWheel

Jump to

Keyboard shortcuts

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