config

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd() *cobra.Command

Cmd returns a CLI command to interactively create an application CLI config file.

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 (*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