shannon

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 2 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"`
}

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