Documentation
¶
Overview ¶
Package router provides E2B-compatible HTTP route registration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
func Setup(r *gin.Engine, svcs Services, k8sClient client.Client, authMw gin.HandlerFunc, gatewayDomain string)
Setup registers all E2B-compatible routes on the given Gin engine using the generated StrictServerInterface. Routes are also registered at the PrivatePathPrefix path for compatibility with private path mode.
Types ¶
type Services ¶
type Services struct {
Sandbox service.SandboxService
APIKey service.APIKeyService
// Forwarder enables cross-cluster forwarding via E2B API.
// localClusterID is embedded in the forwarder itself; no separate field needed.
Forwarder *service.CrossClusterForwarder
}
Services bundles all service dependencies for E2B router handlers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package middleware provides E2B-compatible authentication middleware.
|
Package middleware provides E2B-compatible authentication middleware. |
Click to show internal directories.
Click to hide internal directories.