calcinator v1.6.0 Calcinator.Meta.Beam

Stores and extracts BEAM metadata from JSONAPI meta.

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

repo and owner process in a versioned format

Types

repo()
repo() :: [module, ...] | module

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

token()
token() :: version1_token
version1_token()

Functions

decode(encoded)
decode(String.t) :: map | no_return

Decodes the repo and owner process for the connection.

encode(repo_or_token)
encode(repo | token) :: String.t

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

get(meta)
get(map) :: map
put(meta, repo_or_token)
put(map, repo | token) :: map

Puts BEAM metadata into meta

version1_token(repo)
version1_token(repo) :: version1_token
versioned(repo)
versioned(version1_token) :: {:v1, version1_token}
versioned(repo) :: {atom, token}

repo and owner process in a versioned format