Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientRegister ¶
func ClusterRegister ¶
Types ¶
type ClientChecker ¶
type ClientChecker struct {
// contains filtered or unexported fields
}
ClientChecker represents redis client checker.
func NewClientChecker ¶
func NewClientChecker(client *redis.Client) *ClientChecker
NewClientChecker creates the redis client checker.
type ClientHealth ¶
type ClientHealth struct {
// contains filtered or unexported fields
}
ClientHealth represents client health.
func NewClientHealth ¶
func NewClientHealth() *ClientHealth
NewClientHealth returns a client health with default options.
func NewClientHealthWithConfigPath ¶
func NewClientHealthWithConfigPath(path string) (*ClientHealth, error)
NewClientHealthWithConfigPath returns a client health with default options.
func NewClientHealthWithOptions ¶
func NewClientHealthWithOptions(options *Options) *ClientHealth
NewClientHealthWithOptions returns a health with the options provided.
type ClusterClientChecker ¶
type ClusterClientChecker struct {
// contains filtered or unexported fields
}
ClientHealth represents redis cluster client checker.
func NewClusterClientChecker ¶
func NewClusterClientChecker(client *redis.ClusterClient) *ClusterClientChecker
NewClusterClientChecker creates the redis cluster client checker.
type ClusterHealth ¶
type ClusterHealth struct {
// contains filtered or unexported fields
}
ClusterHealth represents cluster health.
func NewClusterHealth ¶
func NewClusterHealth() *ClusterHealth
NewClusterHealth returns a health with default options.
func NewClusterHealthWithConfigPath ¶
func NewClusterHealthWithConfigPath(path string) (*ClusterHealth, error)
NewClusterHealthWithConfigPath returns a health with default options from config path.
func NewClusterHealthWithOptions ¶
func NewClusterHealthWithOptions(options *Options) *ClusterHealth
NewClusterHealthWithOptions returns a health with the options provided.
type Options ¶
Options struct which represents a health plugin for redis options.
func NewOptions ¶
NewOptions returns options from config file or environment vars.
func NewOptionsWithPath ¶
NewOptionsWithPath unmarshals a given key path into options and returns it.