Versions in this module Expand all Collapse all v0 v0.2.0 Apr 18, 2023 Changes in this version type ID + func (id *ID) Scan(src any) error + func (id ID) Value() (driver.Value, error) v0.1.0 Mar 11, 2023 Changes in this version + func SetCounter(c Counter) + func SetMachineAndProcessID(pid MachineProcessID) + type Counter uint32 + func NewSecureCounter(reader io.Reader) (Counter, error) + func (c *Counter) Next() uint32 + type ID [timestampSize + processSize + counterSize]byte + var Nil ID + func Decode(s string) (ID, error) + func New() ID + func NewEpochs(epochs int64) ID + func (id *ID) UnmarshalJSON(data []byte) error + func (id *ID) UnmarshalText(b []byte) error + func (id ID) Count() uint32 + func (id ID) IsZero() bool + func (id ID) MarshalJSON() ([]byte, error) + func (id ID) MarshalText() ([]byte, error) + func (id ID) String() string + func (id ID) Timestamp() time.Time + type MachineProcessID [processSize]byte + func NewMachineProcessID(reader io.Reader) (MachineProcessID, error)