-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
defmodule Inngest.Dev.EventFn2 do | ||
@moduledoc false | ||
|
||
use Inngest.V1.Function | ||
alias Inngest.Function.{Opts, Trigger} | ||
|
||
@fn_opts %Opts{name: "test func v2"} | ||
@trigger %Trigger{event: "test/hello"} | ||
|
||
def run(args) do | ||
{:ok, "Hello world"} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
defmodule Inngest.V1.Function do | ||
Check warning on line 1 in lib/inngest/v1/function.ex GitHub Actions / Linter
|
||
alias Inngest.Config | ||
Check warning on line 2 in lib/inngest/v1/function.ex GitHub Actions / Dialyzer
|
||
end | ||
|
||
defmodule Inngest.Function.Opts do | ||
Check warning on line 5 in lib/inngest/v1/function.ex GitHub Actions / Linter
|
||
defstruct [ | ||
:id, | ||
:name, | ||
:retries | ||
] | ||
|
||
@type t() :: %__MODULE__{ | ||
id: binary(), | ||
name: binary(), | ||
retries: number() | ||
} | ||
end |