config

package
v0.0.0-...-477c745 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfigFile

func SetConfigFile(f string)

Types

type AnchorConfig

type AnchorConfig struct {
	App struct {
		HomeDir                       string
		DBType                        string
		LdbPath                       string
		BoltPath                      string
		FactomdNodeURL                string
		ECPrivateKey                  string
		AllAnchorRecordPublicKeys     []string
		CurrentAnchorRecordPrivateKey string
		WindowSize                    uint32
	}
	Ethereum struct {
		WalletAddress      string
		WalletKeyPath      string
		WalletPassword     string
		ContractAddress    string
		GasLimit           string
		GethNodeURL        string
		GethIPCURL         string
		EthGasStationURL   string
		IgnoreWrongEntries bool
		TestNet            bool
		TestNetName        string
	}
	Log struct {
		LogPath  string
		LogLevel string
	}

	Proxy          string `long:"proxy" description:"Connect via SOCKS5 proxy (eg. 127.0.0.1:9050)"`
	DisableListen  bool   `` /* 217-byte string literal not displayed */
	DisableRPC     bool   `` /* 136-byte string literal not displayed */
	DisableTLS     bool   `` /* 127-byte string literal not displayed */
	DisableDNSSeed bool   `long:"nodnsseed" description:"Disable DNS seeding for peers"`
}

func ReReadConfig

func ReReadConfig() *AnchorConfig

func ReadConfig

func ReadConfig() *AnchorConfig

GetConfig reads the default anchormaker.conf file and returns an AnchorConfig object corresponding to the state of the file.

Jump to

Keyboard shortcuts

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