Services.Approvals (fnord v0.9.40)

View Source

Summary

Functions

Returns a specification to start this module under a supervisor.

Discards session-scoped approval state, as when a logical session boundary occurs within the same OS process (entering edit mode, starting a fresh follow-up). Config is resolved at confirm-time via impl dispatch, so no restart is needed to observe new settings.

Types

t()

@type t() :: %Services.Approvals{session: [any()]}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

confirm(args, kind)

@spec confirm(term(), atom()) ::
  {:ok, :approved} | {:denied, binary()} | {:error, binary()}

reset_session()

@spec reset_session() :: :ok

Discards session-scoped approval state, as when a logical session boundary occurs within the same OS process (entering edit mode, starting a fresh follow-up). Config is resolved at confirm-time via impl dispatch, so no restart is needed to observe new settings.

start_link(opts \\ [])