redis: github.com/go-redis/redis/internal/proto Index | Files

package proto

import "github.com/go-redis/redis/internal/proto"

Index

Package Files

reader.go scan.go writer.go

Constants

const (
    ErrorReply  = '-'
    StatusReply = '+'
    IntReply    = ':'
    StringReply = '$'
    ArrayReply  = '*'
)
const Nil = RedisError("redis: nil")

func ParseErrorReply Uses

func ParseErrorReply(line []byte) error

func Scan Uses

func Scan(b []byte, v interface{}) error

func ScanSlice Uses

func ScanSlice(data []string, slice interface{}) error

type MultiBulkParse Uses

type MultiBulkParse func(*Reader, int64) (interface{}, error)

type Reader Uses

type Reader struct {
    // contains filtered or unexported fields
}

func NewReader Uses

func NewReader(rd io.Reader) *Reader

func (*Reader) ReadArrayLen Uses

func (r *Reader) ReadArrayLen() (int64, error)

func (*Reader) ReadArrayReply Uses

func (r *Reader) ReadArrayReply(m MultiBulkParse) (interface{}, error)

func (*Reader) ReadFloatReply Uses

func (r *Reader) ReadFloatReply() (float64, error)

func (*Reader) ReadInt Uses

func (r *Reader) ReadInt() (int64, error)

func (*Reader) ReadIntReply Uses

func (r *Reader) ReadIntReply() (int64, error)

func (*Reader) ReadLine Uses

func (r *Reader) ReadLine() ([]byte, error)

func (*Reader) ReadReply Uses

func (r *Reader) ReadReply(m MultiBulkParse) (interface{}, error)

func (*Reader) ReadScanReply Uses

func (r *Reader) ReadScanReply() ([]string, uint64, error)

func (*Reader) ReadString Uses

func (r *Reader) ReadString() (string, error)

func (*Reader) ReadUint Uses

func (r *Reader) ReadUint() (uint64, error)

func (*Reader) Reset Uses

func (r *Reader) Reset(rd io.Reader)

type RedisError Uses

type RedisError string

func (RedisError) Error Uses

func (e RedisError) Error() string

type Writer Uses

type Writer struct {
    // contains filtered or unexported fields
}

func NewWriter Uses

func NewWriter(wr io.Writer) *Writer

func (*Writer) Flush Uses

func (w *Writer) Flush() error

func (*Writer) Reset Uses

func (w *Writer) Reset(wr io.Writer)

func (*Writer) WriteArgs Uses

func (w *Writer) WriteArgs(args []interface{}) error

Package proto imports 7 packages (graph) and is imported by 31 packages. Updated 2019-04-26. Refresh now. Tools for package owners.