Documentation
¶
Overview ¶
Package appruntime provides internal functionality for use by Encore to run Encore applications. Packages within this directory are intended exclusively for use by the Encore compiler and by the API framework module (encore.dev), which layers endpoints, auth handlers and middleware on top of this SDK. They should not be called directly from Encore applications. The APIs can change at any time.
This tree deliberately sits outside internal/: Go's internal rule is module-path-based, so encore.dev — a separate module — could not reach it otherwise. The naming mirrors encore.dev/appruntime, whose packages serve the same "semi-public plumbing" role.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clients sends the calls of the service clients Encore generates, which fail with a *services.CallError and take services.CallOption values and services.ClientSettings: see sdk.encore.dev/v2/services.
|
Package clients sends the calls of the service clients Encore generates, which fail with a *services.CallError and take services.CallOption values and services.ClientSettings: see sdk.encore.dev/v2/services. |
|
exported
|
|
|
stack
Package stack collects stack traces.
|
Package stack collects stack traces. |
|
infrasdk
|
|
|
sdkcore
Package sdkcore links the Encore SDK core Rust library (crates/encore_sdk_core) over its C ABI and exposes its infrastructure integrations — secrets, SQL, Pub/Sub, object storage, and metrics — to the Go SDK.
|
Package sdkcore links the Encore SDK core Rust library (crates/encore_sdk_core) over its C ABI and exposes its infrastructure integrations — secrets, SQL, Pub/Sub, object storage, and metrics — to the Go SDK. |
|
shared
|
|
|
appconf
Package appconf answers whether the process runs under Encore.
|
Package appconf answers whether the process runs under Encore. |
|
cloud
Package cloud contains some helpers for referring to different cloud implementations
|
Package cloud contains some helpers for referring to different cloud implementations |
|
drain
Package drain holds the app's shutdown drains, registered with sdk.encore.dev/v2/shutdown.OnShutdown and run when the shutdown begins.
|
Package drain holds the app's shutdown drains, registered with sdk.encore.dev/v2/shutdown.OnShutdown and run when the shutdown begins. |
|
serverspan
Package serverspan is how the handlers a request reaches tell the server span Encore started for it, as encore.Serve does for every request, what they know of it: the route it matched, and whether it is sensitive.
|
Package serverspan is how the handlers a request reaches tell the server span Encore started for it, as encore.Serve does for every request, what they know of it: the route it matched, and whether it is sensitive. |