type
Config
type Config struct {
// Name is the author-facing application name shown by framework tooling.
Name string
// NameTranslations overrides Name for configured admin interface languages.
NameTranslations map[string]string
// Admin configures the framework-owned administration interface.
Admin AdminConfig
// Localization configures content locales. The zero value disables content
// localization without affecting admin interface language.
Localization LocalizationConfig
// AllowIDOnCreate lets ordinary create operations accept a caller-supplied
// canonical string ID. It is disabled by default; migration imports retain
// their separate identity-preserving path regardless of this setting.
AllowIDOnCreate bool
// Collections declares every document collection owned by the application.
Collections []Collection
// Globals declares singleton documents with their own API and admin routes.
Globals []Global
// Endpoints declares application-level custom HTTP endpoints below /api.
// Handlers are anonymous by default and must enforce their own policy.
Endpoints []Endpoint
// Tasks registers compiled durable task handlers. Executable handlers are
// runtime-only and are intentionally excluded from the schema manifest.
Tasks []TaskDefinition
// Hooks observes application-wide lifecycle failures.
Hooks RootHooks
// Plugins lists compiled extensions in deterministic execution order.
Plugins []Plugin
// AfterCommit dispatches effects only after a successful transaction commits.
AfterCommit AfterCommitDispatcher
// Storage provides the application-wide object-storage adapter when App is
// constructed directly with New. Applications run through Execute should
// prefer WithUploadStorage so external clients are opened only at runtime.
// Storage is never serialized into the schema manifest.
Storage storage.Backend
// StorageNamespace is the stable, deployment-owned prefix for upload objects.
// It must remain unchanged when the display Name changes and must be unique
// among applications sharing one backend.
StorageNamespace string
pluginEndpoints []runtimePluginEndpoint
}Executable application-owned Ridu configuration.
Namestring- The author-facing application name shown by framework tooling.
NameTranslationsmap[string]string- Translated application names keyed by configured admin language.
AdminAdminConfig- Configures the framework-owned administration interface.
LocalizationLocalizationConfig- Configures content locales; the zero value disables content localization.
AllowIDOnCreatebool- Allows ordinary creates to accept a caller-supplied canonical string ID.
Collections[]Collection- Declares every application-owned document collection.
Globals[]Global- Declares singleton documents with API and admin routes.
Endpoints[]Endpoint- Declares root custom HTTP endpoints below /api.
Tasks[]TaskDefinition- Registers compiled durable-task handlers; executable code is excluded from the manifest.
HooksRootHooks- Observes application-wide lifecycle failures.
Plugins[]Plugin- Lists trusted compiled extensions in deterministic execution order.
AfterCommitAfterCommitDispatcher- Dispatches effects only after a successful transaction commit.
Storagestorage.Backend- Direct-construction object storage; Execute applications should prefer WithUploadStorage.
StorageNamespacestring- Stable deployment-owned upload-object prefix shared independently from the display name.
Resolve applies compiled plugin transforms to a defensive copy of the executable Go config before validation and manifest generation.