config

package
v0.0.0-...-db344e9 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	TestName                 string `mapstructure:"TEST_NAME"`
	NodeName                 string `mapstructure:"NODE_NAME"`
	NumTestAccounts          int    `mapstructure:"NUM_TEST_ACCOUNTS"`
	AdminAccountMnemonic     string `mapstructure:"ADMIN_ACCOUNT_MNEMONIC"`
	RpcUrl                   string `mapstructure:"RPC_URL"`
	OutputDir                string `mapstructure:"OUTPUT_DIR"`
	SendTransactionBatchSize int    `mapstructure:"SEND_TRANSACTION_BATCH_SIZE"`
}

func LoadEnvConfig

func LoadEnvConfig() (*EnvConfig, error)

Load config file via viper

Jump to

Keyboard shortcuts

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