ledisdb/server/const.go

25 lines
514 B
Go
Raw Normal View History

package server
2014-05-02 13:08:20 +04:00
import (
"errors"
)
var (
ErrEmptyCommand = errors.New("empty command")
ErrNotFound = errors.New("command not found")
2014-05-03 10:55:12 +04:00
ErrCmdParams = errors.New("invalid command param")
ErrValue = errors.New("value is not an integer or out of range")
2014-05-02 13:08:20 +04:00
)
var (
Delims = []byte("\r\n")
NullBulk = []byte("-1")
NullArray = []byte("-1")
2014-05-03 10:55:12 +04:00
PONG = "PONG"
OK = "OK"
SErrCmdParams = "ERR invalid command param"
SErrValue = "ERR value is not an integer or out of range"
2014-05-02 13:08:20 +04:00
)