Versions in this module Expand all Collapse all v0 v0.6.0 Jan 9, 2020 v0.3.1 Nov 15, 2018 Changes in this version + var ErrInvalidProtocol = errors.New("invalid protocol") + func ReadArray(r io.Reader) (int, error) + func ReadBulkString(r io.Reader) (string, error) + func ReadError(r io.Reader) (string, error) + func ReadInteger(r io.Reader) (int64, error) + func ReadSimpleString(r io.Reader) (string, error) + func ReplyBulkString(w io.Writer, msg string) error + func ReplyError(w io.Writer, msg string) error + func ReplyInteger(w io.Writer, val int64) error + func ReplyNullBulkString(w io.Writer) error + func ReplySimpleString(w io.Writer, msg string) error + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (r *Decoder) Array() (int, error) + func (r *Decoder) BulkString() (string, error) + func (r *Decoder) Error() (string, error) + func (r *Decoder) Integer() (int64, error) + func (r *Decoder) SimpleString() (string, error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func ReplyArray(w io.Writer, size int) (*Encoder, error) + func (r *Encoder) Array(size int) error + func (r *Encoder) BulkString(s string) error + func (r *Encoder) Error(s string) error + func (r *Encoder) Integer(v int64) error + func (r *Encoder) NullBulkString() error + func (r *Encoder) SimpleString(s string) error + type Reader struct + func (r *Reader) Read(p []byte) (int, error) + func (r *Reader) ReadBytes(delim byte) ([]byte, error)