Documentation
¶
Overview ¶
Package config_runtime provides a host-enabled runtime config file loader. Unlike @config.load, it returns structured values to the executing pipeline. The host must supply the trusted file root; flow source cannot set it.
Typical host setup:
bundle, err := config_runtime.BundleWithRoot("/etc/myapp/config")
Typical flow use:
{} -> config_runtime.load @{ path: "settings.json" } -> AppConfig.validate
Index ¶
Constants ¶
const ID = "config_runtime"
Variables ¶
This section is empty.
Functions ¶
func Bundle ¶
Bundle is the source-level @require factory. It intentionally does not accept filesystem roots from flow source; only a host may provide the trusted root through BundleWithRoot.
func BundleWithRoot ¶
BundleWithRoot enables the runtime loader for a host using an explicit, trusted directory. Paths supplied to config_runtime.load are always relative to this root. The host owns the returned bundle and should run its Shutdowns after the runner invocation completes.
Types ¶
type LoadRequest ¶
type LoadRequest struct {
Path string `json:"path" validate:"required"`
}
LoadRequest names one file relative to the host-configured root.