config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(home string, debug bool) error

createConfig idempotently creates the config.

func OverwriteConfig

func OverwriteConfig(cfg *Config) error

func ValidateConfig

func ValidateConfig(c *Config) error

Called to initialize the relayer.Chain types on Config

Types

type Config

type Config struct {
	DefaultChain string                               `yaml:"default_chain" json:"default_chain"`
	Chains       map[string]*client.ChainClientConfig `yaml:"chains" json:"chains"`

	Cl map[string]*client.ChainClient
}

Config represents the config file for the relayer

func (*Config) GetClient

func (c *Config) GetClient(chainID string) *client.ChainClient

func (*Config) GetDefaultClient

func (c *Config) GetDefaultClient() *client.ChainClient

func (Config) MustYAML

func (c Config) MustYAML() []byte

MustYAML returns the yaml string representation of the Paths

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳