services

Supported runtimes, the handler contract and invoking a function.

Edge functions

Edge functions are single-file handlers deployed from the console or the API and served by the global runtime.

Runtimes

RuntimeEntry contract
javascript / typescriptexport default async function handler(request)
pythondef handler(request)
gofunc Handler(w, r)
phpfunction handler($request)
rustfn handler(req: Request) -> Response

Invoking

Each function has a stable public URL:

https://api.tngat.com/edge/f/<slug>
bash
curl -X POST https://api.tngat.com/edge/f/checkout \
  -H "Content-Type: application/json" \
  -d '{"cartId": "c_9f2"}'

Versions and rollback

Saving publishes a new version. Previous versions stay addressable, so a failed release is a one-click rollback in Functions → History.

Environment variables

Functions read the variables of the environment the version was deployed to — the same resolution order as applications. Secrets are injected at runtime and never bundled into the artifact.