type

Config

Executable application-owned Ridu configuration.

Properties

PropertyTypeDescription
NamestringThe author-facing application name shown by framework tooling.
NameTranslationsmap[string]stringTranslated application names keyed by configured admin language.
AdminAdminConfigConfigures the framework-owned administration interface.
LocalizationLocalizationConfigConfigures content locales; the zero value disables content localization.
AllowIDOnCreateboolAllows ordinary creates to accept a caller-supplied canonical string ID.
Blocks[]field.BlockBlocks declares shared immutable definitions selected by field and embedded references.
Collections[]CollectionDeclares every application-owned document collection.
Globals[]GlobalDeclares singleton documents with API and admin routes.
Endpoints[]EndpointDeclares root custom HTTP endpoints below /api.
Tasks[]TaskDefinitionRegisters compiled durable-task handlers; executable code is excluded from the manifest.
HooksRootHooksObserves application-wide lifecycle failures.
Plugins[]PluginLists trusted compiled extensions in deterministic execution order.
AfterCommitAfterCommitDispatcherDispatches effects only after a successful transaction commit.
Storagestorage.BackendDirect-construction object storage; Execute applications should prefer WithUploadStorage.
StorageNamespacestringStable deployment-owned upload-object prefix shared independently from the display name.

How it works

Resolve applies compiled plugin transforms to a defensive copy of the executable Go config before validation and manifest generation.

Full signature

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 // Blocks declares shared immutable definitions selected by field and embedded references. Blocks []field.Block // 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 // contains filtered or unexported fields }

Source core/config.go:19