function

New

func New( applicationConfig Config, backend store.Store, ) (*App, error)

Create an application from config and a document store.

Source ridu.go:240

@param applicationConfig
Executable Ridu config.
@param backend
Store used by every operation.
@returns
The application or an error.

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

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

Related types

  • Config

    The complete author-owned application definition.

  • Store

    Starts atomic transactions for operations.

  • App

    A resolved application bound to operation services.