function
New
Create an application from config and a document store.
Example
app, err := ridu.New(content.Config(), backend)
if err != nil {
log.Fatal(err)
}
post, err := app.Local().Find(ctx, "posts", postID, ridu.FindOptions{})Arguments
| Argument | Type | Description |
|---|---|---|
applicationConfig | Config | Executable Ridu config. |
backend | store.Store | Store used by every operation. |
Returns
The application or an error.
(*App, error)How it works
When compiled by ridu build, the application carries the exact ordered migration-history fingerprint used by official adapter readiness. Application-owned servers remain responsible for running readiness before admitting traffic.
Full signature
func New(
applicationConfig Config,
backend store.Store,
) (*App, error)