calcinator v5.0.0 Calcinator.Meta.Beam View Source

Stores and extracts BEAM metadata from JSONAPI meta.

Link to this section Summary

Types

A list of Ecto.Repo module names OR a single Ecto.Repo module name

Functions

Decodes the repo and owner process for the connection

Encodes and versions the repo and current process, so it can be used for the connection ownership

Puts BEAM metadata into meta

Puts BEAM metadata into meta if its not already present

repo and owner process in a versioned format

Link to this section Types

Link to this type repo() View Source
repo() :: [module, ...] | module

A list of Ecto.Repo module names OR a single Ecto.Repo module name

Link to this section Functions

Link to this function decode(encoded) View Source
decode(String.t) :: map | no_return

Decodes the repo and owner process for the connection.

Link to this function encode(repo_or_token) View Source
encode(repo | token) :: String.t

Encodes and versions the repo and current process, so it can be used for the connection ownership

Link to this function get(meta) View Source
get(map) :: map
Link to this function put(meta, repo_or_token) View Source
put(map, repo | token) :: map

Puts BEAM metadata into meta

Link to this function put_new_lazy(meta, repo_or_token_generator) View Source

Puts BEAM metadata into meta if its not already present

Link to this function version1_token(repo) View Source
version1_token(repo) :: version1_token
Link to this function versioned(version1_token) View Source
versioned(version1_token) :: {:v1, version1_token}
versioned(repo) :: {atom, token}

repo and owner process in a versioned format