redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedis

func NewRedis(address string, opts ...func(h *Redis)) checker.Checker

NewRedis creates the Redis checker

Types

type Option

type Option func(s *Redis)

Option configures a Redis.

func WithExpectKey

func WithExpectKey(key string) Option

WithExpectKey configures a key expectation

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout configures a timeout for establishing new connections

type Redis

type Redis struct {
	*checker.LogAware
	// contains filtered or unexported fields
}

Redis represents Redis checker

func (*Redis) Check

func (r *Redis) Check(ctx context.Context) bool

Check checks Redis connection

Jump to

Keyboard shortcuts

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