function
New
func New(
applicationConfig Config,
backend store.Store,
) (*App, error)Create an application from config and a document store.
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.
Example
app, err := ridu.New(content.Config(), backend)
if err != nil {
log.Fatal(err)
}
post, err := app.Local().Find(ctx, "posts", postID, nil)