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 GetStartCmd ¶
GetStartCmd - initialize a command as the start command with tick
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"`
VerbosityFlag uint `mapstructure:"verbosity"`
GCMode string `mapstructure:"gcmode"`
}
func DefaultEthermintConfig ¶
func DefaultEthermintConfig() EthermintConfig
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
Click to show internal directories.
Click to hide internal directories.