function

New

Create an application from config and a document store.

Example

go
app, err := ridu.New(content.Config(), backend)
if err != nil {
  log.Fatal(err)
}
post, err := app.Local().Find(ctx, "posts", postID, ridu.FindOptions{})

Arguments

ArgumentTypeDescription
applicationConfigConfigExecutable Ridu config.
backendstore.StoreStore 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)

Source ridu.go:318

Related types

  • Config

    The complete author-owned application definition.

  • Store

    Starts atomic transactions for operations.

  • App

    A resolved application bound to operation services.