redis

package
v0.0.0-...-c4af53f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close closes the Miniredis server

func Load

func Load(data io.Reader, c redis.Conn) error

Load loads sample data into the Miniredis server. `data` should be an io,Reader of a JSON object in the form of [{"uuid": "x", "segment": y}]

func Start

func Start() (string, error)

Start starts a Miniredis server and returns its address as a string and an error. If an error occurs in starting, the address will be empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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