config

package
v1.6.5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
			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"`
	} `toml:"config"`
}

Config will hold the whole config file's data

Jump to

Keyboard shortcuts

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