Versions in this module Expand all Collapse all v1 v1.1.0 Jul 17, 2024 Changes in this version + type Config struct + Counter uint32 + Datacenter uint16 + Generator uint32 + Random uint32 + Time time.Time + Worker uint16 v1.0.0 Jul 12, 2024 Changes in this version + var ErrInvalidFOxID = errors.New("invalid FOxID") + type Builder struct + Counter uint32 + Datacenter uint16 + Generator uint32 + Random uint32 + Time time.Time + Worker uint16 + type FOxID [16]byte + func Empty() (id FOxID) + func Generate(builder Builder) (id FOxID) + func Parse(s string) (id *FOxID, err error) + func (id *FOxID) Bytes() []byte + func (id *FOxID) Counter() uint32 + func (id *FOxID) Datacenter() uint16 + func (id *FOxID) GenerateRandom() + func (id *FOxID) Generator() uint32 + func (id *FOxID) IncrementCounter() + func (id *FOxID) Random() uint32 + func (id *FOxID) SetCounter(value uint32) + func (id *FOxID) SetDatacenter(value uint16) + func (id *FOxID) SetGenerator(value uint32) + func (id *FOxID) SetRandom(value uint32) + func (id *FOxID) SetTime(t time.Time) + func (id *FOxID) SetTimestamp(timestamp uint64) + func (id *FOxID) SetWorker(value uint16) + func (id *FOxID) String() string + func (id *FOxID) Time() time.Time + func (id *FOxID) Timestamp() uint64 + func (id *FOxID) Worker() uint16