Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BitLenTime = config.GetConfig().Flake.BitsLen.Time // bit length of time BitLenDatacenterID = config.GetConfig().Flake.BitsLen.DatacenterID // bit length of datacenter id BitLenMachineID = config.GetConfig().Flake.BitsLen.MachineID // bit length of machine id BitLenSequence = config.GetConfig().Flake.BitsLen.Sequence // bit length of sequence number Epoch = config.GetConfig().Flake.Epoch // the unix epoch in milliseconds )
These constants are the bit lengths of Flake ID parts.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.