package
1.8.95
Repository: https://github.com/bizvip/go-utils.git
Documentation: pkg.go.dev

# Functions

Decompose returns a set of Sonyflake ID parts.
ElapsedTime returns the elapsed time when the given Sonyflake ID was generated.
MachineID returns the machine ID of a Sonyflake ID.
New returns a new Sonyflake configured with the given Settings.
NewSonyflake returns a new Sonyflake configured with the given Settings.
No description provided by the author
No description provided by the author
SequenceNumber returns the sequence number of a Sonyflake ID.

# Constants

bit length of machine id.
bit length of sequence number.
bit length of time.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Settings configures Sonyflake: StartTime is the time since which the Sonyflake time is defined as the elapsed time.
Sonyflake is a distributed unique ID generator.

# Type aliases

No description provided by the author