e2b

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const PathPrefix = "/e2b"

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(mux *http.ServeMux, d Deps)

RegisterRoutes mounts the supported E2B control-plane compatibility surface.

func WriteError

func WriteError(w http.ResponseWriter, status int, message string)

WriteError writes the E2B error envelope shape expected by the SDK.

Types

type Deps

type Deps struct {
	Service *service.Service
	Logger  *slog.Logger
	Auth    func(http.Handler) http.Handler
	// TemplateMapJSON maps template ids → images (SB_E2B_TEMPLATE_MAP_JSON),
	// ClientID is the client id the SDK echoes (SB_E2B_CLIENT_ID). Both are
	// read once in config; the facade parses TemplateMapJSON and applies its
	// own defaults.
	TemplateMapJSON string
	ClientID        string
}

Deps are the shared dependencies the E2B facade needs from the top-level API package.

Jump to

Keyboard shortcuts

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