Documentation ¶
Index ¶
- func CreateConfig(cmd *cobra.Command) juno.Config
- func MakeEncodingConfig(managers []module.BasicManager) func() params.EncodingConfig
- func NewConfig(junoCfg juno.Config, databaseCfg *DatabaseConfig) juno.Config
- func ParseConfig(fileContents []byte) (juno.Config, error)
- func SetupConfigFlags(cmd *cobra.Command)
- type Config
- type DatabaseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConfig ¶
CreateConfig implements initcmd.ConfigCreator
func MakeEncodingConfig ¶
func MakeEncodingConfig(managers []module.BasicManager) func() params.EncodingConfig
MakeEncodingConfig creates an EncodingConfig to properly handle all the messages
func NewConfig ¶
func NewConfig(junoCfg juno.Config, databaseCfg *DatabaseConfig) juno.Config
NewConfig allows to build a new Config instance
func ParseConfig ¶
ParseConfig allows to read the given file contents as a Config instance
func SetupConfigFlags ¶
SetupConfigFlags implements initcmd.ConfigFlagSetup
Types ¶
type Config ¶
Config contains the configuration data for the parser
func (*Config) GetDatabaseConfig ¶
func (c *Config) GetDatabaseConfig() juno.DatabaseConfig
type DatabaseConfig ¶
type DatabaseConfig struct { juno.DatabaseConfig StoreHistoricalData bool `toml:"store_historical_data"` }
DatabaseConfig extends juno.databaseConfig allowing to specify whether or not to store historical data
func NewDatabaseConfig ¶
func NewDatabaseConfig(junoDbCfg juno.DatabaseConfig, storeHistoricalData bool) *DatabaseConfig
NewDatabaseConfig allows to build a new DatabaseConfig instance
func (*DatabaseConfig) ShouldStoreHistoricalData ¶
func (d *DatabaseConfig) ShouldStoreHistoricalData() bool
ShouldStoreHistoricalData tells whether or not to persist historical data
Click to show internal directories.
Click to hide internal directories.