kvcmds

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupCmd

type BackupCmd struct{}

func (BackupCmd) Alias

func (c BackupCmd) Alias() []string

func (BackupCmd) Handler

func (c BackupCmd) Handler() func(ctx context.Context)

func (BackupCmd) Help

func (c BackupCmd) Help() string

func (BackupCmd) LongHelp

func (c BackupCmd) LongHelp() string

func (BackupCmd) Name

func (c BackupCmd) Name() string

type BenchCmd

type BenchCmd struct {
	Workloads []BenchWorkload
}

func NewBenchCmd

func NewBenchCmd(ww ...BenchWorkload) BenchCmd

func (BenchCmd) Alias

func (c BenchCmd) Alias() []string

func (BenchCmd) Handler

func (c BenchCmd) Handler() func(ctx context.Context)

func (BenchCmd) Help

func (c BenchCmd) Help() string

func (BenchCmd) LongHelp

func (c BenchCmd) LongHelp() string

func (BenchCmd) Name

func (c BenchCmd) Name() string

type BenchWorkload

type BenchWorkload interface {
	Name() string
	Run(ctx context.Context) error
	Stop(ctx context.Context) error
}

func NewYcsbBench

func NewYcsbBench(pdAddr string) BenchWorkload

type CountCmd

type CountCmd struct{}

func (CountCmd) Alias

func (c CountCmd) Alias() []string

func (CountCmd) Handler

func (c CountCmd) Handler() func(ctx context.Context)

func (CountCmd) Help

func (c CountCmd) Help() string

func (CountCmd) LongHelp

func (c CountCmd) LongHelp() string

func (CountCmd) Name

func (c CountCmd) Name() string

type DeleteAllCmd

type DeleteAllCmd struct{}

func (DeleteAllCmd) Alias

func (c DeleteAllCmd) Alias() []string

func (DeleteAllCmd) Handler

func (c DeleteAllCmd) Handler() func(ctx context.Context)

func (DeleteAllCmd) Help

func (c DeleteAllCmd) Help() string

func (DeleteAllCmd) LongHelp

func (c DeleteAllCmd) LongHelp() string

func (DeleteAllCmd) Name

func (c DeleteAllCmd) Name() string

type DeleteCmd

type DeleteCmd struct{}

func (DeleteCmd) Alias

func (c DeleteCmd) Alias() []string

func (DeleteCmd) Handler

func (c DeleteCmd) Handler() func(ctx context.Context)

func (DeleteCmd) Help

func (c DeleteCmd) Help() string

func (DeleteCmd) LongHelp

func (c DeleteCmd) LongHelp() string

func (DeleteCmd) Name

func (c DeleteCmd) Name() string

type DeletePrefixCmd

type DeletePrefixCmd struct{}

func (DeletePrefixCmd) Alias

func (c DeletePrefixCmd) Alias() []string

func (DeletePrefixCmd) Handler

func (c DeletePrefixCmd) Handler() func(ctx context.Context)

func (DeletePrefixCmd) Help

func (c DeletePrefixCmd) Help() string

func (DeletePrefixCmd) LongHelp

func (c DeletePrefixCmd) LongHelp() string

func (DeletePrefixCmd) Name

func (c DeletePrefixCmd) Name() string

type EchoCmd

type EchoCmd struct{}

func (EchoCmd) Alias

func (c EchoCmd) Alias() []string

func (EchoCmd) Handler

func (c EchoCmd) Handler() func(ctx context.Context)

func (EchoCmd) Help

func (c EchoCmd) Help() string

func (EchoCmd) LongHelp

func (c EchoCmd) LongHelp() string

func (EchoCmd) Name

func (c EchoCmd) Name() string

type GetCmd

type GetCmd struct{}

func (GetCmd) Alias

func (c GetCmd) Alias() []string

func (GetCmd) Handler

func (c GetCmd) Handler() func(ctx context.Context)

func (GetCmd) Help

func (c GetCmd) Help() string

func (GetCmd) LongHelp

func (c GetCmd) LongHelp() string

func (GetCmd) Name

func (c GetCmd) Name() string

type HeadCmd

type HeadCmd struct{}

func (HeadCmd) Alias

func (c HeadCmd) Alias() []string

func (HeadCmd) Handler

func (c HeadCmd) Handler() func(ctx context.Context)

func (HeadCmd) Help

func (c HeadCmd) Help() string

func (HeadCmd) LongHelp

func (c HeadCmd) LongHelp() string

func (HeadCmd) Name

func (c HeadCmd) Name() string

type HexCmd

type HexCmd struct{}

func (HexCmd) Alias

func (c HexCmd) Alias() []string

func (HexCmd) Handler

func (c HexCmd) Handler() func(ctx context.Context)

func (HexCmd) Help

func (c HexCmd) Help() string

func (HexCmd) LongHelp

func (c HexCmd) LongHelp() string

func (HexCmd) Name

func (c HexCmd) Name() string

type LoadCsvCmd

type LoadCsvCmd struct{}

func (LoadCsvCmd) Alias

func (c LoadCsvCmd) Alias() []string

func (LoadCsvCmd) Handler

func (c LoadCsvCmd) Handler() func(ctx context.Context)

func (LoadCsvCmd) Help

func (c LoadCsvCmd) Help() string

func (LoadCsvCmd) LongHelp

func (c LoadCsvCmd) LongHelp() string

func (LoadCsvCmd) Name

func (c LoadCsvCmd) Name() string

type PrintSysVarsCmd

type PrintSysVarsCmd struct{}

func (PrintSysVarsCmd) Alias

func (c PrintSysVarsCmd) Alias() []string

func (PrintSysVarsCmd) Handler

func (c PrintSysVarsCmd) Handler() func(ctx context.Context)

func (PrintSysVarsCmd) Help

func (c PrintSysVarsCmd) Help() string

func (PrintSysVarsCmd) LongHelp

func (c PrintSysVarsCmd) LongHelp() string

func (PrintSysVarsCmd) Name

func (c PrintSysVarsCmd) Name() string

type PrintVarsCmd

type PrintVarsCmd struct{}

func (PrintVarsCmd) Alias

func (c PrintVarsCmd) Alias() []string

func (PrintVarsCmd) Handler

func (c PrintVarsCmd) Handler() func(ctx context.Context)

func (PrintVarsCmd) Help

func (c PrintVarsCmd) Help() string

func (PrintVarsCmd) LongHelp

func (c PrintVarsCmd) LongHelp() string

func (PrintVarsCmd) Name

func (c PrintVarsCmd) Name() string

type PutCmd

type PutCmd struct{}

func (PutCmd) Alias

func (c PutCmd) Alias() []string

func (PutCmd) Handler

func (c PutCmd) Handler() func(ctx context.Context)

func (PutCmd) Help

func (c PutCmd) Help() string

func (PutCmd) LongHelp

func (c PutCmd) LongHelp() string

func (PutCmd) Name

func (c PutCmd) Name() string

type ScanCmd

type ScanCmd struct{}

func (ScanCmd) Alias

func (c ScanCmd) Alias() []string

func (ScanCmd) Handler

func (c ScanCmd) Handler() func(ctx context.Context)

func (ScanCmd) Help

func (c ScanCmd) Help() string

func (ScanCmd) LongHelp

func (c ScanCmd) LongHelp() string

func (ScanCmd) Name

func (c ScanCmd) Name() string

type ScanPrefixCmd

type ScanPrefixCmd struct{}

func (ScanPrefixCmd) Alias

func (c ScanPrefixCmd) Alias() []string

func (ScanPrefixCmd) Handler

func (c ScanPrefixCmd) Handler() func(ctx context.Context)

func (ScanPrefixCmd) Help

func (c ScanPrefixCmd) Help() string

func (ScanPrefixCmd) LongHelp

func (c ScanPrefixCmd) LongHelp() string

func (ScanPrefixCmd) Name

func (c ScanPrefixCmd) Name() string

type SysVarCmd

type SysVarCmd struct{}

func NewSysVarCmd

func NewSysVarCmd() SysVarCmd

func (SysVarCmd) Alias

func (c SysVarCmd) Alias() []string

func (SysVarCmd) Handler

func (c SysVarCmd) Handler() func(ctx context.Context)

func (SysVarCmd) Help

func (c SysVarCmd) Help() string

func (SysVarCmd) LongHelp

func (c SysVarCmd) LongHelp() string

func (SysVarCmd) Name

func (c SysVarCmd) Name() string

type VarCmd

type VarCmd struct{}

func NewVarCmd

func NewVarCmd() VarCmd

func (VarCmd) Alias

func (c VarCmd) Alias() []string

func (VarCmd) Handler

func (c VarCmd) Handler() func(ctx context.Context)

func (VarCmd) Help

func (c VarCmd) Help() string

func (VarCmd) LongHelp

func (c VarCmd) LongHelp() string

func (VarCmd) Name

func (c VarCmd) Name() string

type YcsbBench

type YcsbBench struct {
	Context context.Context
	Cancel  context.CancelFunc

	DB       ycsb.DB
	Workload ycsb.Workload
	// contains filtered or unexported fields
}

func (*YcsbBench) Name

func (y *YcsbBench) Name() string

func (*YcsbBench) Run

func (y *YcsbBench) Run(ctx context.Context) error

func (*YcsbBench) Start

func (y *YcsbBench) Start(load bool)

func (*YcsbBench) Stop

func (y *YcsbBench) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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