Documentation ¶
Overview ¶
RESP decoder. See: http://redis.io/topics/protocol
RESP encoder. See: http://redis.io/topics/protocol
RESP protocol encoder/decoder.
Index ¶
Constants ¶
View Source
const ( StringHeader = '+' ErrorHeader = '-' IntegerHeader = ':' BulkHeader = '$' ArrayHeader = '*' )
Variables ¶
View Source
var ( ErrInvalidInput = errors.New(`resp: Invalid input.`) ErrInvalidDelimiter = errors.New(`resp: Failed to get limits.`) ErrMessageIsTooLarge = errors.New(`resp: Message is too large.`) ErrIncompleteMessage = errors.New(`resp: Message is incomplete.`) ErrExpectingPointer = errors.New(`resp: Expecting pointer value.`) ErrUnsupportedConversion = errors.New(`resp: Unsupported conversion: %s to %s.`) ErrMessageIsNil = errors.New(`resp: Message is nil.`) )
Functions ¶
Types ¶
type RESPWriter ¶
func NewRESPWriter ¶
func NewRESPWriter(writer io.Writer) *RESPWriter
func (*RESPWriter) WriteCommand ¶
func (w *RESPWriter) WriteCommand(args ...string) (err error)
Click to show internal directories.
Click to hide internal directories.