View Source Commanded.UUID (Commanded v1.4.1)

Generate and format random, version 4 UUIDs.

Link to this section Summary

Types

A hex-encoded UUID string.

A raw binary representation of a UUID.

Functions

Converts a string representing a UUID into a raw binary.

Generates a random, version 4 UUID.

Link to this section Types

@type hex() :: <<_::288>>

A hex-encoded UUID string.

@type raw() :: <<_::128>>

A raw binary representation of a UUID.

Link to this section Functions

Link to this function

binary_to_string!(raw_uuid)

View Source
@spec binary_to_string!(raw()) :: hex()
@spec string_to_binary!(hex()) :: raw()

Converts a string representing a UUID into a raw binary.

@spec uuid4() :: hex()

Generates a random, version 4 UUID.