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 generate unique id
func NewIDGenerator ¶
func NewIDGenerator(nodeID int64) (*IDGenerator, error)
NewIDGenerator NewIDGenerator
func (*IDGenerator) ParseBase36 ¶
func (g *IDGenerator) ParseBase36(id string) (snowflake.ID, error)
ParseBase36 ParseBase36
Click to show internal directories.
Click to hide internal directories.