redisctx

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "redis"

Name is Context Type name.

Variables

This section is empty.

Functions

func New

func New() venom.TestCaseContext

New returns a new TestCaseContext.

Types

type Client

type Client interface {
	Close() error
	Do(commandName string, args ...interface{}) (reply interface{}, err error)
}

Client represents interface of redis client used by venom

type RedisTestCaseContext

type RedisTestCaseContext struct {
	venom.CommonTestCaseContext
	Client Client
}

RedisTestCaseContext represents the context of a testcase.

func (*RedisTestCaseContext) Close

func (tcc *RedisTestCaseContext) Close() error

Close the context.

func (*RedisTestCaseContext) Init

func (tcc *RedisTestCaseContext) Init() error

Init Initialize the context.

Jump to

Keyboard shortcuts

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