Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDGenerator ¶
IDGenerator is the interface for generating unique ID
func NewSonyFlake ¶
func NewSonyFlake() (IDGenerator, error)
NewSonyFlake returns new SonyFlake ID generator
Click to show internal directories.
Click to hide internal directories.