Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChainId ¶
ETH ChainId for replay protection, see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md#rationale
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
Click to show internal directories.
Click to hide internal directories.