package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: May 29, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func SetNodeID(nodeID int64)
SetNodeID 设置当前机器节点ID(一般程序启动时就需要设置,且初始化)
type NodeInfo struct {
ID int64
}
NodeInfo 节点信息
Source Files
¶
Directories
¶
Package snowflake provides a very simple Twitter snowflake generator and parser.
|
Package snowflake provides a very simple Twitter snowflake generator and parser. |
Click to show internal directories.
Click to hide internal directories.