redis

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2018 License: MIT, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Redis Redis
}

Checker is a checker that check a given redis

func NewChecker

func NewChecker(network, addr string) Checker

NewChecker returns a new redis.Checker

func NewCheckerWithRedis

func NewCheckerWithRedis(redis Redis) Checker

NewCheckerWithRedis returns a new redis.Checker configured with a custom Redis implementation

func (Checker) Check

func (c Checker) Check() health.Health

Check obtain the version string from redis info command

type RedigoRedis

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

RedigoRedis implements the interface Redis with redigo package

func NewRedigo

func NewRedigo(network, addr string) RedigoRedis

NewRedigo create a new redigoRedis with specified network and addr

func (RedigoRedis) GetVersion

func (r RedigoRedis) GetVersion() (string, error)

GetVersion return the redis version using the reigo package

type Redis

type Redis interface {
	GetVersion() (string, error)
}

Redis is a interface used to abstract the access of the Version string

Jump to

Keyboard shortcuts

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