commands

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientIdentifier       = "cosd"
	TesterClientIdentifier = "testcosd"
)

Variables

View Source
var ClearCmd = func() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "clear",
		Short: "Clear all tester data",
		Run:   clear,
	}
	return cmd
}
View Source
var InitCmd = func() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "init count(default 3)",
		Short: "Initialize configuration files for multi cosd",
		Run:   initConf,
	}
	return cmd
}
View Source
var NodeCnt int64
View Source
var StartCmd = func() *cobra.Command {
	cmd := &cobra.Command{
		Use:   "start cosd-path count(default 3)",
		Short: "start multi cosd node",
		Run:   AutoTest,
	}
	cmd.Flags().Int64VarP(&NodeCnt, "number", "n", 3, "number of cosd thread")
	return cmd
}

Functions

func AutoTest

func AutoTest(cmd *cobra.Command, args []string)

func RegisterService

func RegisterService(app *node.Node, cfg node.Config)

func StartNode

func StartNode()

Types

type GlobalObject

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

Jump to

Keyboard shortcuts

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