config

package
v0.50.9 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadDefaultValuesFromDefaultClientConfig

func ReadDefaultValuesFromDefaultClientConfig(ctx client.Context) (client.Context, error)

ReadDefaultValuesFromDefaultClientConfig reads default values from default client.toml file and updates them in client.Context The client.toml is then discarded.

func ReadFromClientConfig

func ReadFromClientConfig(ctx client.Context) (client.Context, error)

ReadFromClientConfig reads values from client.toml file and updates them in client Context

Types

type ClientConfig

type ClientConfig struct {
	ChainID        string `mapstructure:"chain-id" json:"chain-id"`
	KeyringBackend string `mapstructure:"keyring-backend" json:"keyring-backend"`
	Output         string `mapstructure:"output" json:"output"`
	Node           string `mapstructure:"node" json:"node"`
	BroadcastMode  string `mapstructure:"broadcast-mode" json:"broadcast-mode"`
}

func DefaultConfig

func DefaultConfig() *ClientConfig

func (*ClientConfig) SetBroadcastMode

func (c *ClientConfig) SetBroadcastMode(broadcastMode string)

func (*ClientConfig) SetChainID

func (c *ClientConfig) SetChainID(chainID string)

func (*ClientConfig) SetKeyringBackend

func (c *ClientConfig) SetKeyringBackend(keyringBackend string)

func (*ClientConfig) SetNode

func (c *ClientConfig) SetNode(node string)

func (*ClientConfig) SetOutput

func (c *ClientConfig) SetOutput(output string)

Jump to

Keyboard shortcuts

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