commands

package
v0.0.0-...-8b70bb9 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: GPL-3.0 Imports: 56 Imported by: 2 modules, 1 package

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

View Source
const (
	FlagChainID   = "chain-id"
	FlagENV       = "env"
	FlagVMGenesis = "vm-genesis"
)
View Source
const EyesCacheSize = 10000

nolint

View Source
const (
	FlagLogLevel = "log_level"
)

nolint

View Source
const (
	SubFlag = "sub"
)

Variables

View Source
var InitCmd = GetInitCmd()
View Source
var ShowNodeIDCmd = &cobra.Command{
	Use:   "show_node_id",
	Short: "Show this node's ID",
	RunE:  showNodeID,
}

ShowNodeIDCmd dumps node's ID to the standard output.

Functions

func AppendVMConfig

func AppendVMConfig(configFilePath string, conf *EchoinConfig)

func GetInitCmd

func GetInitCmd() *cobra.Command

func GetStartCmd

func GetStartCmd() *cobra.Command

GetStartCmd - initialize a command as the start command with tick

func SetUpRoot

func SetUpRoot(cmd *cobra.Command)

SetUpRoot - initialize the root command

Types

type BaseConfig

type BaseConfig struct {
	// The root directory for all data.
	// This should be set in viper so it can unmarshal into this struct
	RootDir string `mapstructure:"home"`
}

func DefaultBaseConfig

func DefaultBaseConfig() BaseConfig

type EchoinConfig

type EchoinConfig struct {
	BaseConfig BaseConfig      `mapstructure:",squash"`
	TMConfig   tmcfg.Config    `mapstructure:",squash"`
	EMConfig   EthermintConfig `mapstructure:"vm"`
}

func DefaultConfig

func DefaultConfig() *EchoinConfig

func ParseConfig

func ParseConfig() (*EchoinConfig, error)

copied from tendermint/commands/root.go to call our revised EnsureRoot

type EthermintConfig

type EthermintConfig struct {
	ChainId             uint   `mapstructure:"chainid"`
	RootDir             string `mapstructure:"home"`
	ABCIAddr            string `mapstructure:"abci_laddr"`
	ABCIProtocol        string `mapstructure:"abci_protocol"`
	RPCEnabledFlag      bool   `mapstructure:"rpc"`
	RPCListenAddrFlag   string `mapstructure:"rpcaddr"`
	RPCPortFlag         uint   `mapstructure:"rpcport"`
	RPCCORSDomainFlag   string `mapstructure:"rpccorsdomain"`
	RPCApiFlag          string `mapstructure:"rpcapi"`
	RPCVirtualHostsFlag string `mapstructure:"rpcvhosts"`
	WSEnabledFlag       bool   `mapstructure:"ws"`
	WSListenAddrFlag    string `mapstructure:"wsaddr"`
	WSPortFlag          uint   `mapstructure:"wsport"`
	WSApiFlag           string `mapstructure:"wsapi"`
	IPCDisabledFlag     bool   `mapstructure:"ipcdisable"`
	VerbosityFlag       uint   `mapstructure:"verbosity"`
	GCMode              string `mapstructure:"gcmode"`
	ListenPortFlag      uint   `mapstructure:"listenport"`
}

func DefaultEthermintConfig

func DefaultEthermintConfig() EthermintConfig

type Services

type Services struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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