memdb

package
v0.0.0-...-40c8b04 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client = redis.Conn

func Dial

func Dial(config Config) (Client, error)

type Config

type Config struct {
	Address      string
	DB           int
	TLSRequired  bool
	AuthRequired bool
	Password     string
	CACert       string
}

type Pool

type Pool = redis.Pool

func NewMockPool

func NewMockPool(conn *redigomock.Conn) *Pool

NewMockPool creates a mock pool for testing

func NewPool

func NewPool(config Config) *Pool

NewPool returns redis client pool when a client is required, use `pool.Get()` and close it once it is no longer needed.

func NewTestPool

func NewTestPool(config Config) *Pool

NewTestPool creates a connection pool for the integration test

Jump to

Keyboard shortcuts

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