reply

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 5 Imported by: 13

Documentation

Overview

Package reply provides types and methods for the redis RPC replies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Key

func Key(v interface{}) string

Types

type BB

type BB [][]byte

func MakeBB

func MakeBB(size int) BB

func (BB) Len

func (bb BB) Len() int

func (BB) Less

func (bb BB) Less(i, j int) bool

func (BB) Redis

func (bb BB) Redis() [][]byte

func (*BB) Sappend

func (p *BB) Sappend(s string)

func (*BB) Sprint

func (p *BB) Sprint(args ...interface{})

func (BB) String

func (bb BB) String() string

func (BB) Swap

func (bb BB) Swap(i, j int)

type Blpop

type Blpop struct{ BB }

func MakeBlpop

func MakeBlpop(size int) Blpop

func (Blpop) Redis

func (r Blpop) Redis() [][]byte

type Brpop

type Brpop struct{ BB }

func MakeBrpop

func MakeBrpop(size int) Brpop

func (Brpop) Redis

func (r Brpop) Redis() [][]byte

type Del

type Del int

func (Del) Redis

func (r Del) Redis() int

type Get

type Get []byte

func (Get) Redis

func (r Get) Redis() []byte

type Hdel

type Hdel int

func (Hdel) Redis

func (r Hdel) Redis() int

type Hexists

type Hexists int

func (Hexists) Redis

func (r Hexists) Redis() int

type Hget

type Hget []byte

func MakeHget

func MakeHget(size int) Hget

func (Hget) Redis

func (r Hget) Redis() []byte

func (*Hget) Reflection

func (p *Hget) Reflection(fields []string, v interface{}) error

Reflection recursively descends the given struct to retrieve the value of the named member.

type Hgetall

type Hgetall struct{ BB }

func MakeHgetall

func MakeHgetall(size int) Hgetall

func (Hgetall) Redis

func (r Hgetall) Redis() [][]byte

func (*Hgetall) Reflection

func (p *Hgetall) Reflection(prefix string, v interface{})

Reflection recursively descends the given struct to retrieve the name, value of each member.

type Hkeys

type Hkeys struct{ BB }

func MakeHkeys

func MakeHkeys(size int) Hkeys

func (Hkeys) Redis

func (r Hkeys) Redis() [][]byte

func (*Hkeys) Reflection

func (p *Hkeys) Reflection(prefix string, v interface{})

Reflection recursively loads the receiver with the lowercased name of each member from the given struct.

type Hset

type Hset int

func (Hset) Redis

func (r Hset) Redis() int

type Lindex

type Lindex []byte

func (Lindex) Redis

func (r Lindex) Redis() []byte

type Lpush

type Lpush int

func (Lpush) Redis

func (r Lpush) Redis() int

type Lrange

type Lrange struct{ BB }

func MakeLrange

func MakeLrange(size int) Lrange

func (Lrange) Redis

func (r Lrange) Redis() [][]byte

type Rpush

type Rpush int

func (Rpush) Redis

func (r Rpush) Redis() int

type Values

type Values []reflect.Value

func (Values) Len

func (values Values) Len() int

func (Values) Less

func (values Values) Less(i, j int) bool

func (Values) Swap

func (values Values) Swap(i, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL