health

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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 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