inject

package
v0.0.0-...-d7cb029 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	String = "string"
	Hash   = "hash"
	List   = "list"
	Set    = "set"
	Zset   = "zset"
)

Variables

This section is empty.

Functions

func InjectData

func InjectData(conn redigo.Conn) (map[string]interface{}, error)

Types

type Base

type Base interface {
	Run() (map[string]interface{}, error) // return key map
	GetType() string
}

type TpHash

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

func NewTpHash

func NewTpHash(conn redigo.Conn, keyNum, fieldNum int) *TpHash

func (*TpHash) GetType

func (th *TpHash) GetType() string

func (*TpHash) Run

func (th *TpHash) Run() (map[string]interface{}, error)

type TpString

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

func NewTpString

func NewTpString(conn redigo.Conn, keyNum int) *TpString

func (*TpString) GetType

func (ts *TpString) GetType() string

func (*TpString) Run

func (ts *TpString) Run() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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