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.
Click to show internal directories.
Click to hide internal directories.