function

New

Resolve an application and bind it to an already-open document store.

Arguments

ArgumentTypeDescription
applicationConfigConfigThe application-owned executable configuration.
backendstore.StoreThe 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)

Source core/app.go:62

Related types

  • Config

    Executable application-owned Ridu configuration.

  • Store

    Starts atomic transactions for operations.

  • App

    A resolved application bound to operation services.