shannon

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ShannonGatewayConfig

type ShannonGatewayConfig struct {
	FullNodeConfig shannonprotocol.FullNodeConfig `yaml:"full_node_config"`
	GatewayConfig  shannonprotocol.GatewayConfig  `yaml:"gateway_config"`

	// RedisConfig is the global Redis configuration passed from the top-level config.
	// Used by reputation storage (when storage_type is "redis") and leader election.
	RedisConfig *reputation.RedisConfig `yaml:"-"` // Not from YAML, passed programmatically
}

Fields that are unmarshaled from the config YAML must be capitalized.

func (*ShannonGatewayConfig) UnmarshalYAML

func (c *ShannonGatewayConfig) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML is a custom unmarshaller for GatewayConfig. It performs validation after unmarshaling the config.

func (ShannonGatewayConfig) Validate

func (c ShannonGatewayConfig) Validate() error

validate checks if the configuration is valid after loading it from the YAML file.

Jump to

Keyboard shortcuts

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