Structs§
- Parsed
Id parse - Parsed snowflake ID components 解析后的雪花ID组件
- Pid
auto_pid - Process ID with heartbeat, stops on drop 带心跳的进程号,drop 时自动停止
- Snowflake
snowflake - Snowflake ID generator 雪花 ID 生成器
Enums§
Constants§
- EPOCH
snowflake - Default epoch: 2025-12-22 00:00:00 UTC 默认纪元:2025-12-22 00:00:00 UTC
- MAX_PID
- Maximum process ID count (10 bits = 1024) 进程号数量上限(10位 = 1024)
- PID_
BITS
Functions§
- allocate
auto_pid - Allocate a process ID from Redis 从 Redis 分配进程号
- parse
parse - Parse snowflake ID to components 解析雪花ID为组件