health

package
v1.0.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientRegister

func ClientRegister(ctx context.Context, client *redis.Client) error

func ClusterRegister

func ClusterRegister(ctx context.Context, client *redis.ClusterClient) error

func ConfigAdd

func ConfigAdd(path string)

Types

type ClientChecker

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

func NewClientChecker

func NewClientChecker(client *redis.Client) *ClientChecker

func (*ClientChecker) Check

func (c *ClientChecker) Check(ctx context.Context) error

type ClientHealth

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

func NewClientHealth

func NewClientHealth() *ClientHealth

func NewClientHealthWithConfigPath

func NewClientHealthWithConfigPath(path string) (*ClientHealth, error)

func NewClientHealthWithOptions

func NewClientHealthWithOptions(options *Options) *ClientHealth

func (*ClientHealth) Register

func (i *ClientHealth) Register(ctx context.Context, client *redis.Client) error

type ClusterClientChecker

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

func NewClusterClientChecker

func NewClusterClientChecker(client *redis.ClusterClient) *ClusterClientChecker

func (*ClusterClientChecker) Check

func (c *ClusterClientChecker) Check(ctx context.Context) error

type ClusterHealth

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

func NewClusterHealth

func NewClusterHealth() *ClusterHealth

func NewClusterHealthWithConfigPath

func NewClusterHealthWithConfigPath(path string) (*ClusterHealth, error)

func NewClusterHealthWithOptions

func NewClusterHealthWithOptions(options *Options) *ClusterHealth

func (*ClusterHealth) Register

func (i *ClusterHealth) Register(ctx context.Context, client *redis.ClusterClient) error

type Options

type Options struct {
	Name        string
	Enabled     bool
	Description string
	Required    bool
}

func NewOptions

func NewOptions() (*Options, error)

func NewOptionsWithPath

func NewOptionsWithPath(path string) (opts *Options, err error)

Jump to

Keyboard shortcuts

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