package
1.13.7
Repository: https://github.com/starudream/go-lib.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.
No description provided by the author
MachineID returns the machine ID of a Sonyflake ID.
NewSonyflake returns a new Sonyflake configured with the given Settings.
SequenceNumber returns the sequence number of a Sonyflake ID.

# Constants

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

# 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.