Documentation
¶
Index ¶
Constants ¶
View Source
const PathPrefix = "/e2b"
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
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.
Click to show internal directories.
Click to hide internal directories.