node

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 23 Imported by: ? 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

Index

Constants

View Source
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.

View Source
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 ParseNode

func ParseNode(hop string, cfg *config.NodeConfig, log logger.Logger) (*chain.Node, error)

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.

Jump to

Keyboard shortcuts

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