Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdWorker ¶
type IdWorker struct {
// contains filtered or unexported fields
}
func NewIdWorker ¶
func (*IdWorker) GetDeviceID ¶ added in v0.0.4
获取数据中心ID和机器ID
func (*IdWorker) GetFormatedGenTime ¶ added in v0.0.4
获取创建ID时的时间字符串(精度:秒)
func (*IdWorker) GetGenTimestamp ¶ added in v0.0.4
获取创建ID时的时间戳
Click to show internal directories.
Click to hide internal directories.