Documentation
¶
Overview ¶
@Title @Description @Author Wangwengang 2021/8/19 下午10:18 @Update Wangwengang 2021/8/19 下午10:18
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
A Node struct holds the basic information needed for a snowflake generator node
func (*Node) Generate ¶
Generate creates and returns a unique snowflake ID To help guarantee uniqueness - Make sure your system is keeping accurate system time - Make sure you never have multiple nodes running with the same node ID
func (*Node) GenerateBatch ¶
GenerateBatch creates and returns a batch of unique snowflake ID To help guarantee uniqueness - Make sure your system is keeping accurate system time - Make sure you never have multiple nodes running with the same node ID
Click to show internal directories.
Click to hide internal directories.