config

package
v0.0.0-...-017134c Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	RPCEndpoint string `toml:"rpc_endpoint"`
	LCDEndpoint string `toml:"lcd_endpoint"`
}

ClientConfig defines all client configuration parameters.

type Config

type Config struct {
	Client ClientConfig `toml:"client"`
	Wallet WalletConfig `toml:"wallet"`
}

Config defines all necessary configuration parameters.

func ParseConfig

func ParseConfig(configPath string) Config

ParseConfig attempts to read and parse a Juno config from the given file path. An error reading or parsing the config results in a panic.

type WalletConfig

type WalletConfig struct {
	Mnemonic string `toml:"mnemonic"`
}

WalletConfig defines all wallet configuration parameters.

Jump to

Keyboard shortcuts

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