Documentation
¶
Overview ¶
Package resp implements the REdis Serialization Protocol with the particular aim to communicate with Redis. See http://redis.io/topics/protocol for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidResponse = errors.New("invalid response") ErrInvalidType = errors.New("wrong redis type requested") )
RESP errors
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
Array contains a sequence of RESP items.
type RESP ¶
type RESP struct {
// contains filtered or unexported fields
}
RESP reads successive values in REdis Serialization Protocol. Values may be read by the method for their correct type. While type can be checked as many times as the caller wishes, each value may only be read once.
func (*RESP) Array ¶
Array returns a channel on which callers can receive successive elements of the RESP array.
func (*RESP) BulkString ¶
BulkString returns the value of a RESP as a reader.
func (*RESP) SimpleString ¶
SimpleString returns the value of a RESP as a simple string
Click to show internal directories.
Click to hide internal directories.