config_runtime

package
v0.98.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
const ID = "config_runtime"

Variables

This section is empty.

Functions

func Bundle

func Bundle(_ map[string]string) compiler.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

func BundleWithRoot(rootPath string) (compiler.Bundle, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL