Skip to content

Commit

Permalink
middleware skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin67 committed May 28, 2024
1 parent 70a08f2 commit a8dcd33
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions lib/inngest/middleware.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
defmodule Inngest.Middleware do
@moduledoc """
Inngest Middleware specification
"""

@callback init() :: map()

@callback transform_input(map()) :: map()

@callback before_memoization(map()) :: map()

@callback after_memoization(map()) :: map()

@callback before_execution(map()) :: map()

@callback after_execution(map()) :: map()

@callback transform_output(map()) :: map()

@callback before_response(map()) :: map()
end

0 comments on commit a8dcd33

Please sign in to comment.