cmd

package
v0.0.0-...-13b0add Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddTestCmd = &cobra.Command{
	Use:   "add",
	Short: "add a test to the db test web server",
	Long:  "add a test to the db test web server",
	Args:  cobra.MinimumNArgs(0),
	Run: func(cmd *cobra.Command, args []string) {
		if loaderPath == "" {
			addTest()
		} else {
			LoadRandgenConf()
		}
	},
}
View Source
var StartCmd = &cobra.Command{
	Use:   "start [options ]",
	Short: "start the db test web server",
	Long:  "start the db test web server",
	Args:  cobra.MinimumNArgs(0),
	Run: func(cmd *cobra.Command, args []string) {
		StartServer()
	},
}
View Source
var WatchTestCmd = &cobra.Command{
	Use:   "watch [watch tests]",
	Short: "watch test",
	Long:  "watch test",
	Args:  cobra.MinimumNArgs(0),
	Run: func(cmd *cobra.Command, args []string) {
		watchTest()
	},
}

Functions

func LoadRandgenConf

func LoadRandgenConf()

func PathExist

func PathExist(_path string) bool

func StartServer

func StartServer()

Types

type RandgenConfOpt

type RandgenConfOpt struct {
	LoopInterval int
	QueryCount   int
	QueryLoader  string
	DataLoader   string
	Name         string
	// contains filtered or unexported fields
}

func NewRandgenConf

func NewRandgenConf(yyFile string, zzFile string, loop int) *RandgenConfOpt

func (*RandgenConfOpt) Add

func (c *RandgenConfOpt) Add()

Jump to

Keyboard shortcuts

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