Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidNode - invalid node id ErrInvalidNode = fmt.Errorf("invalid node id; must be 0 ≤ id < %d", maxNode) // ErrStartZero - the error of starting time is zero ErrStartZero = errors.New("the start time cannot be a zero value") // ErrStartFuture - the error of starting time is in the future ErrStartFuture = errors.New("the start time cannot be greater than the current millisecond") // ErrStartExceed - the start time is more than 69 years ago. ErrStartExceed = errors.New("the maximum life cycle of the snowflake algorithm is 69 years") // ErrGeneratorClosed ErrGeneratorClosed = errors.New("generator is closed") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.