Documentation ¶
Overview ¶
Package ulid contains ULID generator.
Package ulid provides a ULID identity provider.
Index ¶
Constants ¶
View Source
const Prefix = "123e4567-e89b-12d3-a456-"
Prefix represents the prefix used to generate UUID mocks.
Variables ¶
View Source
var ( ErrInitializingShortID = errors.New("failed to initialize short id provider") ErrGeneratingID = errors.New("generating id failed") ErrEncodeID = errors.New("encoding id failed") )
ErrGeneratingID indicates error in generating ULID.
Functions ¶
func NewMock ¶
func NewMock() supermq.IDProvider
NewMock creates "mirror" uuid provider, i.e. generated token will hold value provided by the caller.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.