spec
Package spec provides a machine-readable specification of all luxd configuration flags.
import "github.com/luxfi/node/config/spec"Package spec provides a machine-readable specification of all luxd configuration flags. This is the single source of truth for configuration - all consumers (CLI, SDK, netrunner) should derive their flag knowledge from this spec.
Types
Category
Category groups related configuration flags.
ConfigSpec
ConfigSpec is the complete specification of all luxd configuration flags.
func Spec() *ConfigSpecfunc (s *ConfigSpec) DeprecatedFlags() []FlagSpecfunc (s *ConfigSpec) FlagsByCategory(cat Category) []FlagSpecfunc (s *ConfigSpec) GetFlag(key string) *FlagSpecfunc (s *ConfigSpec) JSON() ([]byte, error)Constraints
Constraints defines validation rules for a flag.
FlagSpec
FlagSpec describes a single configuration flag.
func (f *FlagSpec) ValidateValue(value interface{}) errorFlagType
FlagType represents the type of a configuration flag.