Documentation ¶
Index ¶
- Constants
- func ExtractNodeIdFromId(uuid64 int64) int64
- func ExtractSequenceFromId(uuid64 int64) int64
- func ExtractTimestampFromId(uuid64 int64) int64
- func ExtractYearFromId(uuid64 int64) int
- func ExtractYearMonthDayFromId(uuid64 int64) string
- func ExtractYearMonthFromId(uuid64 int64) string
- func RandInt(min, max int) int
- type IdWorker
Constants ¶
View Source
const ( MIN_ID = 1000000000000000000 // 最小id NodeIdBits = uint(10) //节点 所占位置 )
Variables ¶
This section is empty.
Functions ¶
func ExtractTimestampFromId ¶
ExtractTimestampFromId 输出时间戳
Types ¶
Click to show internal directories.
Click to hide internal directories.