View Source Commanded.UUID (Commanded v1.4.8)

Generate and format random, version 4 UUIDs.

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.

Types

hex()

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

A hex-encoded UUID string.

raw()

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

A raw binary representation of a UUID.

Functions

binary_to_string!(raw_uuid)

@spec binary_to_string!(raw()) :: hex()

string_to_binary!(arg)

@spec string_to_binary!(hex()) :: raw()

Converts a string representing a UUID into a raw binary.

uuid4()

@spec uuid4() :: hex()

Generates a random, version 4 UUID.