cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyntaxIncorrect = errors.New("syntax err")

ErrSyntaxIncorrect incorrect err

View Source
var ExecCmd = make(map[string]ExecCmdFunc)

ExecCmd exec cmd map, saving all the functions corresponding to a specified command.

Functions

func LKeyExists added in v1.2.8

func LKeyExists(db *rosedb.RoseDB, args []string) (res interface{}, err error)

func LValExists added in v1.2.8

func LValExists(db *rosedb.RoseDB, args []string) (res interface{}, err error)

Types

type ExecCmdFunc

type ExecCmdFunc func(*rosedb.RoseDB, []string) (interface{}, error)

ExecCmdFunc func for cmd execute.

type Server

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

Server a rosedb server.

func NewServer

func NewServer(config rosedb.Config) (*Server, error)

NewServer create a new rosedb server.

func (*Server) Listen

func (s *Server) Listen(addr string)

Listen listen the server.

func (*Server) Stop

func (s *Server) Stop()

Stop stops the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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