package
0.2.1
Repository: https://github.com/pschlump/radix.v2.git
Documentation: pkg.go.dev

# Functions

Dial connects to the given Redis server.
DialTimeout connects to the given Redis server with the given timeout, which will be used as the read/write timeout when communicating with redis.
IsTimeout is a helper function for determining if an IOErr Resp was caused by a network timeout.
KeyFromArgs is a helper function which other library packages which wrap this one might find useful.
NewResp takes the given value and interprets it into a resp encoded byte stream.
NewRespFlattenedStrings is like NewResp except it looks through the given value and converts any types (except slices/maps) into strings, and flatten any embedded slices/maps into a single slice.
NewRespReader creates and returns a new RespReader which will read from the given io.Reader.
NewRespSimple is like NewResp except it encodes its string as a resp SimpleStr type, whereas NewResp will encode all strings as BulkStr.

# Constants

An error returned by redis, e.g.
Different RespTypes.
Different RespTypes.
Err combines both IOErr and AppErr, which both indicate that the Err field on their Resp is filled.
Different RespTypes.
An error which prevented reading/writing, e.g.
Different RespTypes.
Different RespTypes.
Str combines both SimpleStr and BulkStr, which are considered strings to the Str() method.

# Variables

ErrPipelineEmpty is returned from PipeResp() to indicate that all commands which were put into the pipeline have had their responses read.

# Structs

Client describes a Redis client.
Resp represents a single response or message being sent to/from a redis server.
RespReader is a wrapper around an io.Reader which will read Resp messages off of the io.Reader.

# Type aliases

RespType is a field on every Resp which indicates the type of the data it contains.