[][src]Module akashi::snowflake

Unique 64-bit IDs.

Structs

SnowflakeGenerator

Generates Snowflake IDs.

Constants

EPOCH_SECONDS

The epoch used when generating Snowflakes, represented in milliseconds since the UNIX epoch.

MAX_GROUP_ID

The highest possible worker ID a Snowflake can contain.

MAX_WORKER_ID

The highest possible worker ID a Snowflake can contain.

Functions

snowflake_group_id

Get the group ID from a Snowflake.

snowflake_sequence

Get the sequence number from a Snowflake.

snowflake_timestamp

Get the time at which a Snowflake was generated.

snowflake_worker_id

Get the worker ID from a Snowflake.

Type Definitions

Snowflake

This type is used to represent unique IDs across Akashi.