config

package
v0.0.0-...-51e8661 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(path string) error

Types

type Bech32Prefix

type Bech32Prefix struct {
	AccountAddr   string `toml:"account_addr"`
	AccountPub    string `toml:"account_pub"`
	ValidatorAddr string `toml:"validator_addr"`
	ValidatorPub  string `toml:"validator_pub"`
	ConsensusAddr string `toml:"consensus_addr"`
	ConsensusPub  string `toml:"consensus_pub"`
}

type Escrow

type Escrow struct {
	Name       string `toml:"name"`
	Passphrase string `toml:"passphrase"`
	Home       string `toml:"home"`
}

type Node

type Node struct {
	ChainId              string       `toml:"chain_id"`
	Address              string       `toml:"address"`
	Escrow               Escrow       `toml:"escrow"`
	ClientId             string       `toml:"client_id"`
	ChannelId            string       `toml:"channel_id"`
	CounterpartyClientId string       `toml:"counterparty_client_id"`
	Bech32Prefix         Bech32Prefix `toml:"bech32_prefix"`
}

type RelayConfig

type RelayConfig struct {
	Title string `toml:"title"`
	Nodes []Node `toml:"nodes"`
}

func Load

func Load(path string) *RelayConfig

Jump to

Keyboard shortcuts

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