Documentation ¶
Index ¶
Constants ¶
View Source
const (
ClientIdentifier = "cosd"
)
View Source
const (
ClientTag = "v1.0.5"
)
Variables ¶
View Source
var DbCmd = func() *cobra.Command { cmd := &cobra.Command{ Use: "db", } initCmd := &cobra.Command{ Use: "init", Short: "initialize all db", Run: initAllDb, } cmd.AddCommand(initCmd) return cmd }
View Source
var InitCmd = func() *cobra.Command { cmd := &cobra.Command{ Use: "init", Short: "Initialize configuration files", Run: initConf, } cmd.Flags().StringVarP(&cfgName, "name", "n", "", "node name (default is cosd)") cmd.Flags().StringVarP(&chainName, "chain", "c", "", "chain name [main/test/dev], default is main") return cmd }
View Source
var NodeName string
View Source
var StartCmd = func() *cobra.Command { cmd := &cobra.Command{ Use: "start", Short: "start cosd node", Long: "start cosd node,if has arg 'replay',will sync the lost block to db", ValidArgs: []string{"replay"}, Run: startNode, } cmd.Flags().StringVarP(&cfgName, "name", "n", "", "node name (default is cosd)") cmd.Flags().StringArrayVarP(&pluginList, "plugin", "", []string{}, "--plugin=[trxsqlservice, dailystatservice, statelogservice, tokeninfoservice]") return cmd }
Functions ¶
func CheckDiskSpace ¶ added in v1.0.3
func InitCrashFile ¶ added in v1.0.3
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.