Express v1.3.3 Express.Operations.LogMessage View Source

Sends a message to the Logger.

Exop library operation.

Takes parameters:

  • message (String)
  • type of the message (error/warn/info)

Link to this section Summary

Functions

Operation’s entry point. Takes defined contract as the single parameter. Contract itself is a Keyword.t list: [param_name: param_value]

Runs an operation’s process/1 function after a contract validation

Link to this section Types

Link to this type auth_result() View Source
auth_result ::
  :ok |
  {:error, {:auth, :undefined_user}} |
  {:error, {:auth, :undefined_policy}} |
  {:error, {:auth, :unknown_policy}} |
  {:error, {:auth, :unknown_action}} |
  {:error, {:auth, atom}}
Link to this type interrupt_result() View Source
interrupt_result() :: {:interrupt, any}

Link to this section Functions

Link to this function contract() View Source
contract() :: [map]
Link to this function defined_params(received_params) View Source
defined_params(Keyword.t | map) :: map
Link to this function interrupt(reason \\ nil) View Source
interrupt(any) :: no_return

Operation’s entry point. Takes defined contract as the single parameter. Contract itself is a Keyword.t list: [param_name: param_value]

Callback implementation for Exop.Operation.process/1.

Runs an operation’s process/1 function after a contract validation

Link to this function run!(received_params \\ []) View Source
run!(Keyword.t | map | nil) :: any | RuntimeError