Documentation ¶
Index ¶
Constants ¶
View Source
const ( FlagConfigPath = "pricefeeder.config_path" FlagChainConfig = "pricefeeder.chain_config" FlagLogLevel = "pricefeeder.log_level" FlagOracleTickTime = "pricefeeder.oracle_tick_time" )
View Source
const (
DefaultConfigTemplate = `` /* 382-byte string literal not displayed */
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { ConfigPath string `mapstructure:"config_path"` ChainConfig bool `mapstructure:"chain_config"` LogLevel string `mapstructure:"log_level"` OracleTickTime time.Duration `mapstructure:"oracle_tick_time"` }
AppConfig defines the app configuration for the price feeder that must be set in the app.toml file.
func ReadConfigFromAppOpts ¶
func ReadConfigFromAppOpts(opts servertypes.AppOptions) (AppConfig, error)
ReadConfigFromAppOpts reads the config parameters from the AppOptions and returns the config.
func (*AppConfig) ValidateBasic ¶
ValidateBasic performs basic validation of the price feeder app config.
Click to show internal directories.
Click to hide internal directories.