commands

package
v0.0.0-...-93bf087 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	STATE_NONE int = iota
	STATE_WORD
	STATE_QUOTE
	STATE_ESCAPED
)

Variables

View Source
var (
	OK        = []byte("ok")
	TRUE      = []byte("true")
	FALSE     = []byte("false")
	SCAN_MORE = []byte(`"it" for more`)
)
View Source
var (
	NotEnoughArgumentsErr = errors.New("not enough arguments")
	TooManyArgumentsErr   = errors.New("too many arguments")
)
View Source
var (
	DbsFullErr = errors.New("DBs full. Launch with -dbs X to allow X number of databases to be opened")
)
View Source
var (
	GetFormatErr = errors.New("second argument must be 'json' or 'hex'")
)

Functions

This section is empty.

Types

type Ascii

type Ascii struct {
}

func (Ascii) Execute

func (cmd Ascii) Execute(context *core.Context, input []byte) (err error)

type Del

type Del struct {
}

func (Del) Execute

func (cmd Del) Execute(context *core.Context, input []byte) (err error)

type Exists

type Exists struct {
}

func (Exists) Execute

func (cmd Exists) Execute(context *core.Context, input []byte) (err error)

type Get

type Get struct {
}

func (Get) Execute

func (cmd Get) Execute(context *core.Context, input []byte) (err error)

type Help

type Help struct {
}

func (Help) Execute

func (cmd Help) Execute(context *core.Context, input []byte) (err error)

type Iterate

type Iterate struct {
}

func (Iterate) Execute

func (cmd Iterate) Execute(context *core.Context, input []byte) (err error)

type Keys

type Keys struct {
}

func (Keys) Execute

func (cmd Keys) Execute(context *core.Context, input []byte) (err error)

type Put

type Put struct {
}

func (Put) Execute

func (cmd Put) Execute(context *core.Context, input []byte) (err error)

type Scan

type Scan struct {
}

func (Scan) Execute

func (cmd Scan) Execute(context *core.Context, input []byte) (err error)

type Stats

type Stats struct {
}

func (Stats) Execute

func (cmd Stats) Execute(context *core.Context, input []byte) (err error)

type Use

type Use struct {
}

func (Use) Execute

func (cmd Use) Execute(context *core.Context, input []byte) (err error)

Jump to

Keyboard shortcuts

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