type
Config
Executable application-owned Ridu configuration.
Properties
| Property | Type | Description |
|---|---|---|
Name | string | The author-facing application name shown by framework tooling. |
NameTranslations | map[string]string | Translated application names keyed by configured admin language. |
Admin | AdminConfig | Configures the framework-owned administration interface. |
Localization | LocalizationConfig | Configures content locales; the zero value disables content localization. |
AllowIDOnCreate | bool | Allows ordinary creates to accept a caller-supplied canonical string ID. |
Blocks | []field.Block | Blocks declares shared immutable definitions selected by field and embedded references. |
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. |
Hooks | RootHooks | Observes application-wide lifecycle failures. |
Plugins | []Plugin | Lists trusted compiled extensions in deterministic execution order. |
AfterCommit | AfterCommitDispatcher | Dispatches effects only after a successful transaction commit. |
Storage | storage.Backend | Direct-construction object storage; Execute applications should prefer WithUploadStorage. |
StorageNamespace | string | Stable 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
}