config

package
v0.0.0-...-32eac98 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CONFIG_FILE_NAME = "./config.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	WalletFile      string `json:"WalletFile"`
	LogLevel        int    `json:"LogLevel"`
	MaxLogSize      int64  `json:"MaxLogSize"`
	ONTRPCAddress   string `json:"ONTRPCAddress"`
	ScannerInterval int    `json:"ScannerInterval"`
	GasPrice        uint64 `json:"GasPrice"`
	GasLimit        uint64 `json:"GasLimit"`
	ContractAddress string `json:"ContractAddress"`
	RandomOrgKey    string `json:"RandomOrgKey"`
}

Config holds parameters used by the application which can be overridden by setting environment variables.

var Configuration *Config

Jump to

Keyboard shortcuts

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