Documentation
¶
Index ¶
Constants ¶
View Source
const ( WorkerIdBits = 10 // worker id MaxWorkerId = -1 ^ (-1 << 10) // worker id mask SequenceBits = 12 // sequence MaxSequence = -1 ^ (-1 << 12) //sequence mask )
Variables ¶
Functions ¶
func DefaultWorkId ¶
func DefaultWorkId() uint32
Types ¶
Click to show internal directories.
Click to hide internal directories.