Documentation
¶
Index ¶
Constants ¶
const DefaultMatcherBodySize = 1 << 20 // 1MB
DefaultMatcherBodySize is the default request body prefix (in bytes) exposed to body matchers when a node has BodyRegexp/BodyJSON matchers but no explicit bodySize.
const MaxMatcherBodySize = 10 << 20 // 10MB
MaxMatcherBodySize is the hard cap for matcher body prefix. Values above this are silently clamped. Protects against unbounded in-memory buffering when a node opts in to body matching.
Variables ¶
This section is empty.
Functions ¶
func IsReference ¶ added in v0.28.1
func IsReference(cfg *config.NodeConfig) bool
IsReference reports whether cfg contains only a non-empty name. Such a config references a definition from the top-level nodes section. Any additional field, even a zero-valued one set explicitly (e.g. an empty but non-nil connector), makes the config inline. NOTE: keep this in sync with NodeConfig — a new field must be added here, otherwise a config setting only that field would misresolve as a reference.
func ParseProbeConfig ¶ added in v0.28.1
func ParseProbeConfig(cfg *config.ProbeConfig) *chain.ProbeConfig
ParseProbeConfig converts a config.ProbeConfig into a chain.ProbeConfig. Returns nil when the config is invalid (e.g. empty addr).
func ResolveConfig ¶ added in v0.28.1
func ResolveConfig(cfg *config.NodeConfig) (*config.NodeConfig, error)
ResolveConfig resolves a name-only config through the global node registry and returns an independent copy of the definition. Inline configs are returned unchanged to preserve their existing parsing behavior.
Types ¶
This section is empty.