View Source OnePiece.Commanded.Id behaviour (OnePiece.Commanded v0.19.1)

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

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

Generates a new ID.

Functions

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

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

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