Documentation
¶
Overview ¶
Package snowflake provides a unique ID generation based on Twitter Snowflake algorithm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snowflake ¶
type Snowflake struct {
// contains filtered or unexported fields
}
Snowflake represents a Snowflake generator with a unique generator.
func (Snowflake) ValidateNumber ¶ added in v0.2.15
func (Snowflake) ValidateString ¶ added in v0.2.15
ValidateString checks if the provided ID is a valid Snowflake ID.
Click to show internal directories.
Click to hide internal directories.