Documentation ¶
Index ¶
Constants ¶
View Source
const ProxeusEnvPrefix = "PROXEUS_"
Variables ¶
This section is empty.
Functions ¶
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://sepolia.infura.io/v3/" usage:"Ethereum client URL"` EthWebSocketURL string `json:"ethWebSocketURL" default:"wss://sepolia.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:"0x15FeA089CC48B4f4596242c138156e3B53579B37"` 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
Click to show internal directories.
Click to hide internal directories.