Documentation
¶
Index ¶
Constants ¶
View Source
const ( FlagConfigPath = "pricefeeder.config_path" FlagLogLevel = "pricefeeder.log_level" FlagEnablePriceFeeder = "pricefeeder.enable" )
View Source
const (
DefaultConfigTemplate = `` /* 168-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"` LogLevel string `mapstructure:"log_level"` Enable bool `mapstructure:"enable"` }
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.