# `IDUtils.Scheme.Catalog`
[🔗](https://github.com/moefuerst/id_utils/blob/v0.1.0/lib/id_utils/scheme/catalog.ex#L1)

Catalog of identifier schemes supported by IDUtils.

# `t`

```elixir
@type t() :: [{atom(), module()}]
```

A keyword list of scheme modules.

# `all`

```elixir
@spec all() :: t()
```

Returns the ordered scheme mapping.

Note: The order of the schemes is important for detecting schemes correctly. If you work with
this data structure, make sure to preserve its order.

# `extend`

```elixir
@spec extend(t()) :: t()
```

Extends the built-in scheme catalog with custom schemes.

This function will simply append custom schemes to the built-in catalog. It raises an
`ArgumentError` if a custom scheme key already exists in the built-in catalog. For advanced
customization, use `all/0` and modify the resulting `t:t/0` directly.

## Parameters

  * `custom_schemes` - A list of custom schemes to append to the built-in list.

# `list`

```elixir
@spec list() :: [atom()]
```

Lists the names of all built-in supported schemes.

# `module_for`

```elixir
@spec module_for(atom(), [] | t()) :: {:ok, module()} | {:error, :unknown_scheme}
```

Returns the module associated with a scheme name.

## Parameters

  * `scheme_name` - The name of the scheme to look up.
  * `scheme_list` - An optional list of schemes (defaults to the built-in list).

# `name_for`

```elixir
@spec name_for(module(), [] | t()) :: {:ok, atom()} | {:error, :unknown_scheme}
```

Returns the name associated with a scheme module.

## Parameters

  * `scheme_module` - The scheme module to look up.
  * `scheme_list` - An optional list of schemes (defaults to the built-in list).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
