ETS-based registry for tracking async approval requests.
This module maintains state for pending approval requests that are awaiting decisions from external systems (e.g., Slack, Jira, custom webhooks).
Summary
Functions
Returns a specification to start this module under a supervisor.
Cleans up expired approval requests.
Deletes an approval request from the registry.
Looks up an approval request by reference.
Registers a new async approval request.
Starts the approval registry.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec cleanup_expired(pos_integer()) :: non_neg_integer()
Cleans up expired approval requests.
@spec delete(reference()) :: :ok
Deletes an approval request from the registry.
Looks up an approval request by reference.
Registers a new async approval request.
Starts the approval registry.