config

package
v0.0.0-...-cdf0fd8 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(cmd *cobra.Command) juno.Config

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

func ParseConfig(fileContents []byte) (juno.Config, error)

ParseConfig allows to read the given file contents as a Config instance

func SetupConfigFlags

func SetupConfigFlags(cmd *cobra.Command)

SetupConfigFlags implements initcmd.ConfigFlagSetup

Types

type Config

type Config struct {
	juno.Config
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

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