Versions in this module Expand all Collapse all v1 v1.0.1 Aug 31, 2021 Changes in this version + const MachineIDLength + const MaxMachineID + const MaxSequence + const MaxTimestamp + const SequenceLength + const TimestampLength + func AtomicResolver(ms int64) (uint16, error) + func ID() uint64 + func NextID() (uint64, error) + func PrivateIPToMachineID() uint16 + func SetMachineID(m uint16) + func SetSequenceResolver(seq SequenceResolver) + func SetStartTime(s time.Time) + type SID struct + ID uint64 + MachineID uint64 + Sequence uint64 + Timestamp uint64 + func ParseID(id uint64) SID + func (id *SID) GenerateTime() time.Time + type SequenceResolver func(ms int64) (uint16, error)