Documentation ¶
Index ¶
- Constants
- func ParseErrorReply(line []byte) error
- func Scan(b []byte, v interface{}) error
- func ScanSlice(data []string, slice interface{}) error
- type MultiBulkParse
- type Reader
- func (p *Reader) PeekBuffered() []byte
- func (p *Reader) ReadArrayLen() (int64, error)
- func (p *Reader) ReadArrayReply(m MultiBulkParse) (interface{}, error)
- func (r *Reader) ReadBytesReply() ([]byte, error)
- func (p *Reader) ReadFloatReply() (float64, error)
- func (r *Reader) ReadInt() (int64, error)
- func (p *Reader) ReadIntReply() (int64, error)
- func (p *Reader) ReadLine() ([]byte, error)
- func (p *Reader) ReadN(n int) ([]byte, error)
- func (p *Reader) ReadReply(m MultiBulkParse) (interface{}, error)
- func (p *Reader) ReadScanReply() ([]string, uint64, error)
- func (p *Reader) ReadStringReply() (string, error)
- func (p *Reader) ReadTmpBytesReply() ([]byte, error)
- func (r *Reader) ReadUint() (uint64, error)
- func (r *Reader) Reset(rd io.Reader)
- type WriteBuffer
Constants ¶
View Source
const ( ErrorReply = '-' StatusReply = '+' IntReply = ':' StringReply = '$' ArrayReply = '*' )
Variables ¶
This section is empty.
Functions ¶
func ParseErrorReply ¶ added in v5.1.4
Types ¶
type MultiBulkParse ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PeekBuffered ¶
func (*Reader) ReadArrayLen ¶
func (*Reader) ReadArrayReply ¶
func (p *Reader) ReadArrayReply(m MultiBulkParse) (interface{}, error)
func (*Reader) ReadBytesReply ¶
func (*Reader) ReadFloatReply ¶
func (*Reader) ReadIntReply ¶
func (*Reader) ReadReply ¶
func (p *Reader) ReadReply(m MultiBulkParse) (interface{}, error)
func (*Reader) ReadStringReply ¶
func (*Reader) ReadTmpBytesReply ¶ added in v5.2.1
type WriteBuffer ¶
type WriteBuffer struct {
// contains filtered or unexported fields
}
func NewWriteBuffer ¶
func NewWriteBuffer() *WriteBuffer
func (*WriteBuffer) Append ¶
func (w *WriteBuffer) Append(args []interface{}) error
func (*WriteBuffer) AppendBytes ¶
func (w *WriteBuffer) AppendBytes(p []byte)
func (*WriteBuffer) AppendString ¶
func (w *WriteBuffer) AppendString(s string)
func (*WriteBuffer) Bytes ¶
func (w *WriteBuffer) Bytes() []byte
func (*WriteBuffer) Len ¶
func (w *WriteBuffer) Len() int
func (*WriteBuffer) Reset ¶
func (w *WriteBuffer) Reset()
Click to show internal directories.
Click to hide internal directories.