Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
type IDGenerator struct {
// contains filtered or unexported fields
}
IDGenerator generates unique uint64 ID using snowflake algorithm
func MakeGenerator ¶
func MakeGenerator(node string) *IDGenerator
MakeGenerator creates a new IDGenerator
Click to show internal directories.
Click to hide internal directories.