Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateID ¶
GenerateID generates a int64 id.
It is composed of unix timestamp, shard, and random number. For the first 42 bits is unix timestamp, the next 12 bits is shard, and the remaining 10 bits is a random number.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.