Documentation ¶
Index ¶
- func CreateTOML(config *RootConfiguration) ([]byte, error)
- func SetBinding(ptr interface{}, f *pflag.Flag)
- func SetValue(ptr, value interface{})
- type BootnodeConfig
- type ChainConfig
- type DeployConfig
- type EthKeyConfig
- type EthereumConfig
- type FirewalldConfig
- type InitConfig
- type LoggingConfig
- type RootConfiguration
- type Setting
- type Settings
- type TransportConfig
- type UtilsConfig
- type ValidatorConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTOML ¶ added in v0.0.7
func CreateTOML(config *RootConfiguration) ([]byte, error)
func SetBinding ¶
SetBinding registers a particular Flag as tied to a particular pointer.
Types ¶
type BootnodeConfig ¶ added in v0.0.7
type ChainConfig ¶ added in v0.0.7
type DeployConfig ¶ added in v0.0.7
type EthKeyConfig ¶ added in v0.0.7
type EthereumConfig ¶ added in v0.0.7
type FirewalldConfig ¶ added in v0.0.7
type InitConfig ¶ added in v0.0.7
type LoggingConfig ¶ added in v0.0.7
type LoggingConfig struct { AliceNet string Consensus string Transport string App string Db string Gossipbus string Badger string PeerMan string LocalRPC string Dman string Peer string Yamux string Ethereum string Main string Deploy string Utils string Monitor string Dkg string Services string Settings string Validator string MuxHandler string Bootnode string P2pmux string Status string Test string }
type RootConfiguration ¶ added in v0.0.7
type RootConfiguration struct { ConfigurationFileName string LoggingLevels string // backwards compatibility Logging LoggingConfig Deploy DeployConfig Ethereum EthereumConfig Transport TransportConfig Utils UtilsConfig Validator ValidatorConfig Firewalld FirewalldConfig Chain ChainConfig BootNode BootnodeConfig EthKey EthKeyConfig Version string Initialization InitConfig }
var Configuration RootConfiguration
Configuration contains all active settings.
type Settings ¶
Settings stores all the command line arguments with values.
func LoadSettings ¶
LoadSettings loads the settings from commandline and the required config file.
func ParseCommandLine ¶
ParseCommandLine takes an array of string and turns them into keyvalue pairs.
func ParseConfigBuffer ¶
ParseConfigBuffer reads config from a generic Reader.
func ParseConfigFile ¶
ParseConfigFile reads the file using Viper.
func (Settings) FilterNamespaces ¶
FilterNamespaces returns a copy of settings belonging to given namespace or no namespace.
func (Settings) RequiredSettingsPresent ¶
RequiredSettingsPresent Foo.
type TransportConfig ¶ added in v0.0.7
type TransportConfig struct { Size int Timeout time.Duration OriginLimit int PeerLimitMin int PeerLimitMax int FirewallMode bool FirewallHost string Whitelist string PrivateKey string BootNodeAddresses string P2PListeningAddress string LocalStateListeningAddress string UPnP bool }
func (TransportConfig) BootNodes ¶ added in v0.0.7
func (t TransportConfig) BootNodes() []string
type UtilsConfig ¶ added in v0.0.7
type UtilsConfig struct {
Status bool
}
type ValidatorConfig ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.