Versions in this module Expand all Collapse all v1 v1.0.0 Jul 27, 2026 Changes in this version + const Version + type Clock interface + Now func() time.Time + type ClockFunc func() time.Time + func (f ClockFunc) Now() time.Time + type Configurer interface + func WithClock(clock Clock) Configurer + func WithStartOfMintingTime(startOfMintingTime time.Time) Configurer + type CurrentTimeAfterEndOfMintingTimeError struct + func (e CurrentTimeAfterEndOfMintingTimeError) Error() string + type CurrentTimeBeforeStartOfMintingTimeError struct + func (e CurrentTimeBeforeStartOfMintingTimeError) Error() string + type Minter struct + func NewMinter(workerID uint64, configurers ...Configurer) (*Minter, error) + func (m *Minter) Mint() (uint64, error) + type SequenceNumberTooLargeError struct + func (e SequenceNumberTooLargeError) Error() string + type TimeMovedBackwardsError struct + func (e TimeMovedBackwardsError) Duration() time.Duration + func (e TimeMovedBackwardsError) Error() string + type WorkerIDTooLargeError struct + func (e WorkerIDTooLargeError) Error() string