Categorygithub.com/zjc17/go-snowflake
modulepackage
0.0.5
Repository: https://github.com/zjc17/go-snowflake.git
Documentation: pkg.go.dev

# Functions

No description provided by the author

# Variables

设置 Epoch 为 2020/1/1 8:00.
FailCallbackFunc node id 失效后的回调函数,一般用于更新健康检查重启 pod.
必须小于 OccupiedInterval.
HeartBeatFunc 允许自定义的保持占有 node id 的心跳函数.
No description provided by the author
256 nodes.
NodeIdGeneratorFunc 允许自定义的分布式ID生成器.
No description provided by the author
No description provided by the author
RedisClient 默认使用 redis 进行分布式 node id 配置及心跳机制 使用默认 NodeIdGeneratorFunc 和 HeartBeatFunc 时必须设置.
16384 per millisecond.

# Structs

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author