config

package
Version: v0.0.0-...-3ab8858 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ProxeusEnvPrefix = "PROXEUS_"

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Configuration

type Configuration struct {
	SettingsFile    string `json:"settingsFile" default:"~/.proxeus/settings/main.json" usage:"Path to the settings file"`
	EthClientURL    string `json:"ethClientURL" default:"https://ropsten.infura.io/v3/" usage:"Ethereum client URL"`
	EthWebSocketURL string `json:"ethWebSocketURL" default:"wss://ropsten.infura.io/ws/v3/" usage:"Ethereum websocket URL"`

	ServiceAddress string `json:"serviceAddress" default:":1323" usage:"address and port of this service"`

	AutoTLS bool `` /* 148-byte string literal not displayed */

	XESContractAddress string `json:"XESContractAddress" default:"0x84E0b37e8f5B4B86d5d299b0B0e33686405A3919"`

	AirdropWalletfile string `json:"airdropWalletfile" usage:"Path to File containing Private Key of the Wallet to fund Airdrops of XES and Ether."`
	AirdropWalletkey  string `json:"airdropWalletkey" usage:"Path to File containing the Key for the Airdrop Private Key."`

	model.Settings // extend cmd line args with settings
}

This configuration can be used in two ways: 1. Using the default meta in a struct 2. Using the specified arguments in flag

var Config *Configuration

func New

func New() *Configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL