Documentation ¶
Overview ¶
Package uuid provides a UUID 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 ErrGeneratingID = errors.New("failed to generate uuid")
ErrGeneratingID indicates error in generating UUID
Functions ¶
Types ¶
type IDProvider ¶
IDProvider specifies an API for generating unique identifiers.
func NewMock ¶
func NewMock() IDProvider
NewMock creates "mirror" uuid provider, i.e. generated token will hold value provided by the caller.
Click to show internal directories.
Click to hide internal directories.