package proto

Import Path
	github.com/redis/go-redis/v9/internal/proto (on go.dev)

Dependency Relation
	imports 12 packages, and imported by 2 packages

Involved Source Files reader.go scan.go writer.go
Package-Level Type Names (total 3)
/* sort by: | */
(*Reader) Buffered() int Discard the data represented by line. DiscardNext read and discard the data represented by the next line. (*Reader) Peek(n int) ([]byte, error) PeekReplyType returns the data type of the next response without advancing the Reader, and discard the attribute type. ReadArrayLen Read and return the length of the array. (*Reader) ReadBool() (bool, error) ReadFixedArrayLen read fixed array length. ReadFixedMapLen reads fixed map length. (*Reader) ReadFloat() (float64, error) (*Reader) ReadInt() (int64, error) ReadLine Return a valid reply, it will check the protocol or redis error, and discard the attribute type. ReadMapLen reads the length of the map type. If responding to the array type (RespArray/RespSet/RespPush), it must be a multiple of 2 and return n/2. Other types will return an error. (*Reader) ReadReply() (interface{}, error) (*Reader) ReadSlice() ([]interface{}, error) (*Reader) ReadString() (string, error) (*Reader) ReadUint() (uint64, error) (*Reader) Reset(rd io.Reader) func NewReader(rd io.Reader) *Reader
( RedisError) Error() string ( RedisError) RedisError() RedisError : github.com/redis/go-redis/v9.Error RedisError : error const Nil const github.com/redis/go-redis/v9.Nil const github.com/redis/go-redis/v9.TxFailedErr
( Writer) Write([]byte) (int, error) (*Writer) WriteArg(v interface{}) error (*Writer) WriteArgs(args []interface{}) error ( Writer) WriteByte(c byte) error ( Writer) WriteString(string) (int, error) Writer : github.com/miekg/dns.Writer Writer : github.com/quic-go/quic-go/quicvarint.Writer Writer : gorm.io/gorm/clause.Writer Writer : internal/bisect.Writer Writer : io.ByteWriter Writer : io.StringWriter Writer : io.Writer func NewWriter(wr writer) *Writer
Package-Level Functions (total 6)
IsNilReply detects redis.Nil of RESP2.
func ParseErrorReply(line []byte) error
Scan parses bytes `b` to `v` with appropriate type.
func ScanSlice(data []string, slice interface{}) error
Package-Level Constants (total 16)
const Nil RedisError = "redis: nil" // nolint:errname
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.
redis resp protocol data type.