Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandPing = "PING" CommandSet = "SET" CommandGet = "GET" CommandEcho = "ECHO" )
View Source
const ( RESPSimpleString = '+' RESPBulkString = '$' RESPArray = '*' RESPError = '-' )
Variables ¶
View Source
var ( ErrWrongNumberOfArguments = errors.New("ERR wrong number of arguments for command") ErrSyntax = errors.New("ERR syntax error") )
View Source
var (
CLRFBytes = []byte{'\r', '\n'}
)
Functions ¶
func BulkString ¶
func SimpleString ¶
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
Click to show internal directories.
Click to hide internal directories.