Skip to main content

Module snowflake

Module snowflake 

Source

Structs§

Snowflake
A distributed unique ID using the Snowflake algorithm. Layout: 42-bit timestamp (ms since custom epoch), 10-bit machine ID, 12-bit sequence.
SnowflakeGenerator
Lock-free snowflake ID generator.
SnowflakeParts
Decomposed parts of a Snowflake ID.

Enums§

SnowflakeError
Error returned when the snowflake generator cannot produce an ID.