Documentation ¶
Index ¶
Constants ¶
View Source
const ( // 时间戳使用32位存放,为了增加上限采用存储时减去此值,此值为2020-01-01 00:00:00时间戳 CEpoch = 1577808000 CWorkerIDBits = 5 // Num of WorkerID Bits CSequenceBits = 16 // Num of Sequence Bits )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.