Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents a snowflake ID generator node
func MustNewNode ¶
MustNewNode creates a snowflake ID generator node. Panics if nodeID is outside the valid range [0, 1023]
func NewNode ¶
NewNode creates a snowflake ID generator node. nodeID must be in the range [0, 1023] as per snowflake specifications
Click to show internal directories.
Click to hide internal directories.