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 (r *Reader) PeekBuffered() []byte
- func (r *Reader) ReadArrayLen() (int64, error)
- func (r *Reader) ReadArrayReply(m MultiBulkParse) (interface{}, error)
- func (r *Reader) ReadBytesReply() ([]byte, error)
- func (r *Reader) ReadFloatReply() (float64, error)
- func (r *Reader) ReadInt() (int64, error)
- func (r *Reader) ReadIntReply() (int64, error)
- func (r *Reader) ReadLine() ([]byte, error)
- func (r *Reader) ReadN(n int) ([]byte, error)
- func (r *Reader) ReadReply(m MultiBulkParse) (interface{}, error)
- func (r *Reader) ReadScanReply() ([]string, uint64, error)
- func (r *Reader) ReadStringReply() (string, error)
- func (r *Reader) ReadTmpBytesReply() ([]byte, error)
- func (r *Reader) ReadUint() (uint64, error)
- func (r *Reader) Reset(rd io.Reader)
- type RedisError
- type WriteBuffer
Constants ¶
View Source
const ( ErrorReply = '-' StatusReply = '+' IntReply = ':' StringReply = '$' ArrayReply = '*' )
View Source
const Nil = RedisError("redis: nil")
Variables ¶
This section is empty.
Functions ¶
func ParseErrorReply ¶
Types ¶
type MultiBulkParse ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) PeekBuffered ¶
func (*Reader) ReadArrayLen ¶
func (*Reader) ReadArrayReply ¶
func (r *Reader) ReadArrayReply(m MultiBulkParse) (interface{}, error)
func (*Reader) ReadBytesReply ¶
func (*Reader) ReadFloatReply ¶
func (*Reader) ReadIntReply ¶
func (*Reader) ReadReply ¶
func (r *Reader) ReadReply(m MultiBulkParse) (interface{}, error)
func (*Reader) ReadStringReply ¶
func (*Reader) ReadTmpBytesReply ¶
type RedisError ¶
type RedisError string
func (RedisError) Error ¶
func (e RedisError) Error() string
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.