functions

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package functions provides the studio admin API for edge functions.

Routes (all require service-role Bearer token):

GET  /list              — list deployed functions (scanned from functionsDir)
GET  /{name}/logs       — recent log lines for a function (?since=1h)
GET  /env               — list shared env var key names from .env.local
POST /env               — set a shared env var in .env.local
DELETE /env/{key}       — remove a shared env var from .env.local
GET  /{name}/env        — list function-specific env var key names
POST /{name}/env        — set a function-specific env var
DELETE /{name}/env/{key}— remove a function-specific env var

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(functionsDir string, manager *deno.Manager) http.Handler

Handler returns a chi.Router that serves the functions admin API. manager may be nil when edge functions are disabled; all routes return 404.

func RequireServiceRoleMiddleware

func RequireServiceRoleMiddleware(next http.Handler) http.Handler

RequireServiceRoleMiddleware rejects requests that don't carry the service-role key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL