function
New
Resolve an application and bind it to an already-open document store.
Arguments
| Argument | Type | Description |
|---|---|---|
applicationConfig | Config | The application-owned executable configuration. |
backend | store.Store | The opened singular document store; the caller retains lifecycle ownership. |
Returns
A fully initialized application, or configuration/runtime validation failure.
(*App, error)How it works
Use this when embedding Ridu into an existing Go process. Execute is the ordinary framework-owned server lifecycle.
An application compiled by ridu build receives the exact ordered migration-history fingerprint. The caller owns the pre-traffic readiness barrier for an application-owned HTTP server.
Full signature
func New(
applicationConfig Config,
backend store.Store,
) (*App, error)