commands

package
v0.1.4-beta Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: GPL-3.0 Imports: 56 Imported by: 0

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 *TravisConfig)

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 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
}

type TravisConfig

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

func DefaultConfig

func DefaultConfig() *TravisConfig

func ParseConfig

func ParseConfig() (*TravisConfig, error)

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

Jump to

Keyboard shortcuts

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