Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make functions aware of their app #92

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix example
  • Loading branch information
amh4r committed Feb 5, 2025
commit 36ca5e71a2da7bd90e215fc2fa71756463436024
7 changes: 5 additions & 2 deletions examples/http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ import (
)

func main() {
c := inngestgo.NewClient(inngestgo.ClientOpts{
c, err := inngestgo.NewClient(inngestgo.ClientOpts{
AppID: "billing",
})
if err != nil {
panic(err)
}

h := inngestgo.NewHandler("billing", inngestgo.HandlerOpts{})
h := inngestgo.NewHandler(c, inngestgo.HandlerOpts{})

// CreateFunction is a factory method which creates new Inngest functions (step functions,
// or workflows) with a specific configuration.
Expand Down
Loading