config

package
v0.0.0-...-2ba887c Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentConfig

type AgentConfig struct {
	CentralCfg corecfg.CentralConfig `config:"central"`
	GatewayCfg *GatewayConfig        `config:"gateway-section"`
}

AgentConfig - represents the config for agent

type GatewayConfig

type GatewayConfig struct {
	corecfg.IConfigValidator
	LogFile        string `config:"logFile"`
	ProcessOnInput bool   `config:"processOnInput"`
	RestPort       string `config:"restPort"`
	ConfigKey1     string `config:"config_key_1"`
	ConfigKey2     string `config:"config_key_2"`
	ConfigKey3     string `config:"config_key_3"`
}

GatewayConfig - represents the config for gateway

func (*GatewayConfig) ValidateCfg

func (c *GatewayConfig) ValidateCfg() (err error)

ValidateCfg - Validates the gateway config

Jump to

Keyboard shortcuts

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