Documentation
¶
Index ¶
Constants ¶
View Source
const ( CEpoch = 1474802888000 CWorkerIdBits = 10 // Num of WorkerId Bits CSenquenceBits = 12 // Num of Sequence Bits CWorkerIdShift = 12 CTimeStampShift = 22 CSequenceMask = 0xfff // equal as getSequenceMask() CMaxWorker = 0x3ff // equal as getMaxWorkerId() )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IdWorker ¶
type IdWorker struct {
// contains filtered or unexported fields
}
IdWorker Struct
func NewIdWorker ¶
NewIdWorker Func: Generate NewIdWorker with Given workerid
Click to show internal directories.
Click to hide internal directories.