rly

package
v0.14.1-0...-8b31b97 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 Chain

type Chain struct {
	Key            string  `yaml:"key" json:"key"`
	ChainID        string  `yaml:"chain-id" json:"chain-id"`
	RPCAddr        string  `yaml:"rpc-addr" json:"rpc-addr"`
	AccountPrefix  string  `yaml:"account-prefix" json:"account-prefix"`
	Gas            uint64  `yaml:"gas,omitempty" json:"gas,omitempty"`
	GasAdjustment  float64 `yaml:"gas-adjustment,omitempty" json:"gas-adjustment,omitempty"`
	GasPrices      string  `yaml:"gas-prices,omitempty" json:"gas-prices,omitempty"`
	DefaultDenom   string  `yaml:"default-denom,omitempty" json:"default-denom,omitempty"`
	Memo           string  `yaml:"memo,omitempty" json:"memo,omitempty"`
	TrustingPeriod string  `yaml:"trusting-period" json:"trusting-period"`
}

func NewChain

func NewChain(id, addr string) *Chain

type Chains

type Chains []*Chain

type Config

type Config struct {
	Global GlobalConfig `yaml:"global" json:"global"`
	Chains Chains       `yaml:"chains" json:"chains"`
	Paths  Paths        `yaml:"paths" json:"paths"`
}

type GlobalConfig

type GlobalConfig struct {
	Timeout       string `yaml:"timeout" json:"timeout"`
	LiteCacheSize int    `yaml:"lite-cache-size" json:"lite-cache-size"`
}

type Path

type Path struct {
	Src      *PathEnd     `yaml:"src" json:"src"`
	Dst      *PathEnd     `yaml:"dst" json:"dst"`
	Strategy *StrategyCfg `yaml:"strategy" json:"strategy"`
}

func NewPath

func NewPath(src, dst *PathEnd) *Path

type PathEnd

type PathEnd struct {
	ChainID string `yaml:"chain-id,omitempty" json:"chain-id,omitempty"`
	PortID  string `yaml:"port-id,omitempty" json:"port-id,omitempty"`
	Order   string `yaml:"order,omitempty" json:"order,omitempty"`
	Version string `yaml:"version,omitempty" json:"version,omitempty"`
}

func NewPathEnd

func NewPathEnd(sid, did string) *PathEnd

type Paths

type Paths map[string]*Path

type StrategyCfg

type StrategyCfg struct {
	Type string `json:"type" yaml:"type"`
}

Jump to

Keyboard shortcuts

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