Trogon.Commanded.Id behaviour (Trogon.Commanded v0.37.0)

Copy Markdown View Source

A module for dealing IDs.

Summary

Callbacks

Generates a new ID.

Functions

Generates a UUID using the version 4 scheme, as described in RFC 4122.

Callbacks

new()

@callback new() :: String.t()

Generates a new ID.

Functions

new()

@spec new() :: String.t()

Generates a UUID using the version 4 scheme, as described in RFC 4122.

iex> Trogon.Commanded.Id.new() |> String.length()
36