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

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> OnePiece.Commanded.Id.new() |> String.length()
36