redisserver

package
v0.32.3-rc Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package redisserver is package for starting a redis test server

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process() (addr string, cleanup func(), err error)

Process starts a redis-server test process

func Start

func Start() (addr string, cleanup func(), err error)

Start starts a redis-server when available, otherwise falls back to miniredis

Types

type Mini

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

Mini is a wrapper for *miniredis.MiniRedis which implements the io.Closer interface.

func NewMini added in v0.31.0

func NewMini() *Mini

NewMini creates a new Mini.

func (*Mini) Close added in v0.31.0

func (mini *Mini) Close() error

Close closes the miniredis server.

func (*Mini) Run added in v0.31.0

func (mini *Mini) Run() (addr string, cleanup func(), err error)

Run starts the miniredis server.

Jump to

Keyboard shortcuts

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