Documentation
¶
Index ¶
Constants ¶
View Source
const ( CR byte = '\r' LF byte = '\n' )
View Source
const ( ASKING = "asking" MOVED = "moved" ASK = "ask" CLUSTERDOWN = "clusterdown" )
Variables ¶
View Source
var ( // ErrBadRespType represents bad resp type ErrBadRespType = errors.New("bad resp type") // ErrBadCRLFEnd for invalid crlf ErrBadCRLFEnd = errors.New("bad CRLF end") // ErrBadArrayLen for invalid array len ErrBadArrayLen = errors.New("bad array len") // ErrBadArrayLenTooLong too long array len ErrBadArrayLenTooLong = errors.New("bad array len, too long") // ErrBadBulkStringLen for invalid bulk string len ErrBadBulkStringLen = errors.New("bad bulk string len") // ErrBadBulkStringLenTooLong for too long bulk string len ErrBadBulkStringLenTooLong = errors.New("bad bulk string len, too long") // ErrBadMultiBulkLen for invalid multi-bulk len ErrBadMultiBulkLen = errors.New("bad multi-bulk len") // ErrBadMultiBulkContent for invalid multi-bulk content ErrBadMultiBulkContent = errors.New("bad multi-bulk content, should be bulkbytes") )
View Source
var CRLF = []byte{CR, LF}
crlf is the delimter in redis protocol.
Functions ¶
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements Reader for buffer
func NewReaderSize ¶
NewReaderSize creates Reader with buffer size
Click to show internal directories.
Click to hide internal directories.