Documentation
¶
Index ¶
Constants ¶
View Source
const ( // TypeBlobString simple types TypeBlobString = '$' // $<length>\r\n<bytes>\r\n TypeSimpleString = '+' // +<string>\r\n TypeSimpleError = '-' // -<string>\r\n TypeNumber = ':' // :<number>\r\n TypeNull = '_' // _\r\n TypeDouble = ',' // ,<floating-point-number>\r\n TypeBoolean = '#' // #t\r\n or #f\r\n TypeBlobError = '!' // !<length>\r\n<bytes>\r\n TypeVerbatimString = '=' // =<length>\r\n<format(3 bytes):><bytes>\r\n TypeBigNumber = '(' // (<big number>\n // TypeArray Aggregate data types TypeArray = '*' // *<elements number>\r\n... numelements other types ... TypeMap = '%' // %<elements number>\r\n... numelements key/value pair of other types ... TypeSet = '~' // ~<elements number>\r\n... numelements other types ... TypeAttribute = '|' // |~<elements number>\r\n... numelements map type ... TypePush = '>' // ><elements number>\r\n<first item is String>\r\n... numelements-1 other types ... // TypeStream special type TypeStream = "$EOF:" // )
Variables ¶
View Source
var CRLF = "\r\n"
View Source
var ErrInvalidSyntax = errors.New("resp:invalid syntax")
Functions ¶
func ValueToRow ¶
Types ¶
type AOFHandle ¶
type AOFHandle struct {
// contains filtered or unexported fields
}
func NewAOFHandle ¶
func NewAOFHandle() *AOFHandle
type RedisReader ¶
Reader struct
type RedisWriter ¶
func NewRedisWriter ¶
func NewRedisWriter(writer io.Writer) *RedisWriter
type SyncList ¶
type SyncList struct {
// contains filtered or unexported fields
}
func NewSyncList ¶
func NewSyncList() *SyncList
Click to show internal directories.
Click to hide internal directories.