Documentation
¶
Index ¶
Constants ¶
View Source
const JobIDV1 = 1
Variables ¶
This section is empty.
Functions ¶
func ExtractJobIDVersion ¶ added in v1.0.15
func GenJobIDWithVersion ¶ added in v1.0.15
GenJobIDWithVersion generates a job ID with version prefix and delaySecond. For the legacy version 0 job ID, the version prefix is not included, we use the version prefix to distinguish different job payload format.
Use the last four bytes of the 16-byte's ULID to store the delaySecond. The last fours bytes was some random value in ULID, so changing that value won't affect anything except randomness.
func GenUniqueID ¶
func GenUniqueID() string
Generate Unique ID Currently using ULID, this maybe conflict with other process with very low possibility
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.