cmd

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseDir = ".ninja"
	ConfFileName   = "config.json"
	MainNet        = "main"
	TestNet        = "test"
)
View Source
const (
	MaxBlockNoToShow = 100
)
View Source
const (
	ThreadName = "Internal Rpc Cmd Thread"
)

Variables

View Source
var ChainCmd = &cobra.Command{
	Use:   "chain",
	Short: "chain ",
	Long:  `TODO::.`,
}
View Source
var ConfigCmd = &cobra.Command{
	Use:   "config",
	Short: "ninja config -r|--reset -s|show",
	Long:  `TODO::.`,
	Run:   configAction,
}
View Source
var DebugCmd = &cobra.Command{
	Use:   "debug",
	Short: "debug ",
	Long:  `TODO::.`,
	Run:   debug,
}
View Source
var InitCmd = &cobra.Command{
	Use:   "init",
	Short: "ninja init -d [DIR]",
	Long:  `TODO::.`,
	Run:   initNode,
}
View Source
var WalletCmd = &cobra.Command{
	Use:   "wallet",
	Short: "ninja wallet",
	Long:  `TODO::.`,
	Run:   walletAction,
}

Functions

func DialToCmdService

func DialToCmdService() pbs.CmdServiceClient

func StartCmdRpc

func StartCmdRpc(address string)

Types

type CfgPerNetwork

type CfgPerNetwork struct {
	Name     string            `json:"name"`
	PCfg     *node.Config      `json:"node"`
	UCfg     *utils.Config     `json:"utils"`
	WCfg     *wallet.Config    `json:"wallet"`
	RCfg     *websocket.Config `json:"websocket"`
	ChainCfg *chatchain.Config `json:"chat_chain"`
	HttpCfg  *http_rpc.Config  `json:"http_rpc"`
}

func (CfgPerNetwork) String

func (c CfgPerNetwork) String() string

type StoreCfg

type StoreCfg map[string]*CfgPerNetwork

func (StoreCfg) DebugPrint

func (sc StoreCfg) DebugPrint()

Jump to

Keyboard shortcuts

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