EndPointBlank.RequestStore (end_point_blank_elixir v0.12.0)

Copy Markdown View Source

Per-process storage for request-scoped data.

Uses the process dictionary so each request process (Phoenix allocates one per request) has isolated state — the Elixir equivalent of thread-local storage used by the Ruby, Java, and JS libraries.

Summary

Functions

Generates a random UUID v4 string.

The calling organization's EndPointBlank id, from intake's /authorize answer (data[0].source_organization_id, sc-1571). nil when intake is older than that field or the organization has no id there.

Functions

clear()

generate_uuid()

Generates a random UUID v4 string.

get_conn()

get_source_env_id()

get_source_organization_id()

The calling organization's EndPointBlank id, from intake's /authorize answer (data[0].source_organization_id, sc-1571). nil when intake is older than that field or the organization has no id there.

get_uuid()

put_conn(conn)

put_source_env_id(id)

put_source_organization_id(id)

put_uuid(uuid)