Sap v0.1.0 Sap.Context View Source

A data type to hold both the connection data and the status of a decision path.

Link to this section Summary

Functions

Updates a Sap.Context to set the status to :error. In a decision path, this is used to halt the processing in the rest of the path

Creates a Sap.Context from a Plug.Conn. The created context has a status of :ok

Link to this section Types

Link to this type t() View Source
t() :: %Sap.Context{conn: Plug.Conn.t(), status: :ok | :error}

Link to this section Functions

Link to this function error(context) View Source
error(t()) :: t()

Updates a Sap.Context to set the status to :error. In a decision path, this is used to halt the processing in the rest of the path.

Creates a Sap.Context from a Plug.Conn. The created context has a status of :ok.