config

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 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://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

Jump to

Keyboard shortcuts

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