config

package
v0.0.0-...-b84eec1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChainId

func GetChainId() *big.Int

ETH ChainId for replay protection, see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md#rationale

func Setup

func Setup()

Types

type Configuration

type Configuration struct {
	PGPPublicServiceURL string `mapstructure:"pgpPublicServiceURL"`
	EthClientURL        string `mapstructure:"ETHCLIENTURL"`
	EthWebSocketURL     string `mapstructure:"ETHWEBSOCKETURL"`
	MainHostedURL       string `mapstructure:"mainHostedURL"`

	ServiceAddress string `mapstructure:"a"`

	StorageDir             string `mapstructure:"dir"`
	StorageProviderAddress string `mapstructure:"address"`
	ContractAddress        string `mapstructure:"contract"`
	XESContractAddress     string `mapstructure:"xesContract"`
	DevMode                bool   `mapstructure:"devMode"`
	ForceSpp               string `mapstructure:"forceSpp"`
	AutoTLS                bool   `mapstructure:"autotls"`
	TestMode               string `mapstructure:"TESTMODE"`

	PprofDebug bool `mapstructure:"pprof"`

	BlockchainNet string `mapstructure:"blockchainNet"`
}

This configuration can be used in three ways: 1. Using the defaults specified in flag 2. Using the specified arguments in flag 3. Using the config.json in the current dir or as specified by -cfg

var Config Configuration

func (Configuration) IsTestMode

func (me Configuration) IsTestMode() bool

Jump to

Keyboard shortcuts

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