redis_checker

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 3 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 {
	RedisClient *redis.Client
}

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(redisClient *redis.Client) Checker

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

func (Checker) Check

func (this Checker) Check() health.Health

Check obtain the version string from redis info command

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