config

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: GPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOverrideConfigsHandler added in v1.7.10

func NewOverrideConfigsHandler() *overrideConfigsHandler

NewOverrideConfigsHandler creates a new instance of type overrideConfigsHandler

Types

type BlocksGeneratorConfig added in v1.7.1

type BlocksGeneratorConfig struct {
	AutoGenerateBlocks bool   `toml:"auto-generate-blocks"`
	BlockTimeInMs      uint64 `toml:"block-time-in-milliseconds"`
}

BlocksGeneratorConfig defined the configuration for the blocks generator

type Config

type Config struct {
	Config struct {
		Simulator struct {
			ServerPort        int    `toml:"server-port"`
			NumOfShards       int    `toml:"num-of-shards"`
			RoundsPerEpoch    int    `toml:"rounds-per-epoch"`
			RoundDurationInMs int    `toml:"round-duration-in-milliseconds"`
			InitialRound      int64  `toml:"initial-round"`
			InitialNonce      uint64 `toml:"initial-nonce"`
			InitialEpoch      uint32 `toml:"initial-epoch"`
			MxChainRepo       string `toml:"mx-chain-go-repo"`
			MxProxyRepo       string `toml:"mx-chain-proxy-go-repo"`
		} `toml:"simulator"`
		Logs struct {
			LogFileLifeSpanInMB  int    `toml:"log-file-life-span-in-mb"`
			LogFileLifeSpanInSec int    `toml:"log-file-life-span-in-sec"`
			LogFilePrefix        string `toml:"log-file-prefix"`
			LogsPath             string `toml:"logs-path"`
		} `toml:"logs"`
		BlocksGenerator BlocksGeneratorConfig `toml:"blocks-generator"`
	} `toml:"config"`
}

Config will hold the whole config file's data

type OverrideConfigs added in v1.7.4

type OverrideConfigs struct {
	OverridableConfigTomlValues []config.OverridableConfig
}

OverrideConfigs defines the struct used for the overridable configs

Jump to

Keyboard shortcuts

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