redischecker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: 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 {
	// contains filtered or unexported fields
}

Checker redis 检查器

func NewChecker

func NewChecker(rc redis.RedisConf, opts ...redis.Option) *Checker

NewChecker 新建 redis 检查器

func NewCheckerWithRedis

func NewCheckerWithRedis(rds *redis.Redis) *Checker

NewCheckerWithRedis 通过已有 redis 客户端新建 redis 检查器

func (*Checker) Check

func (c *Checker) Check(ctx context.Context) health.Health

Check 检查 redis 健康情况

Jump to

Keyboard shortcuts

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