Run NodesReferenceconfig

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() *ConfigSpec
func (s *ConfigSpec) DeprecatedFlags() []FlagSpec
func (s *ConfigSpec) FlagsByCategory(cat Category) []FlagSpec
func (s *ConfigSpec) GetFlag(key string) *FlagSpec
func (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{}) error

FlagType

FlagType represents the type of a configuration flag.