configs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	MetricAddr   string   `mapstructure:"metric_addr"`
	Env          string   `mapstructure:"env"`
	LogLevel     string   `mapstructure:"log_level"`
	ChannelTypes []string `mapstructure:"channel_types"`
}

type Cache

type Cache struct {
	Filename    string `mapstructure:"filename"`
	StartHeight uint64 `mapstructure:"start_height"`
}

type Chain

type Chain struct {
	Source ChainCfg `mapstructure:"source"`
	Dest   ChainCfg `mapstructure:"dest"`
}

type ChainCfg

type ChainCfg struct {
	Cache      Cache      `mapstructure:"cache"`
	Tendermint Tendermint `mapstructure:"tendermint"`
}

type ChainKey

type ChainKey struct {
	Name         string `mapstructure:"name"`
	Password     string `mapstructure:"password"`
	PrivKeyArmor string `mapstructure:"priv_key_armor"`
}

type Config

type Config struct {
	App   App   `mapstructure:"app"`
	Chain Chain `mapstructure:"chain"`
}

func NewConfig

func NewConfig() *Config

type Fee

type Fee struct {
	Denom  string `mapstructure:"denom"`
	Amount int64  `mapstructure:"amount"`
}

type Tendermint

type Tendermint struct {
	ChainName string   `mapstructure:"chain_name"`
	ChainID   string   `mapstructure:"chain_id"`
	RPCAddr   string   `mapstructure:"rpc_addr"`
	GrpcAddr  string   `mapstructure:"grpc_addr"`
	Gas       uint64   `mapstructure:"gas"`
	Key       ChainKey `mapstructure:"key"`
	Fee       Fee      `mapstructure:"fee"`

	UpdateClientFrequency uint64 `mapstructure:"update_client_frequency"`
}

Jump to

Keyboard shortcuts

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