redis

package
v0.0.0-...-b3ec277 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetNumberSentinelsInMemory(ip string, auth *util.AuthConfig) (int32, error)
	GetNumberSentinelSlavesInMemory(ip string, auth *util.AuthConfig) (int32, error)
	ResetSentinel(ip string, auth *util.AuthConfig) error
	GetSlaveMasterIP(ip string, auth *util.AuthConfig) (string, error)
	IsMaster(ip string, auth *util.AuthConfig) (bool, error)
	MonitorRedis(ip string, monitor string, quorum string, auth *util.AuthConfig) error
	MakeMaster(ip string, auth *util.AuthConfig) error
	MakeSlaveOf(ip string, masterIP string, auth *util.AuthConfig) error
	GetSentinelMonitor(ip string, auth *util.AuthConfig) (string, error)
	SetCustomSentinelConfig(ip string, configs []string, auth *util.AuthConfig) error
	SetCustomRedisConfig(ip string, configs map[string]string, auth *util.AuthConfig) error
	GetAllRedisConfig(rClient *rediscli.Client) (map[string]string, error)
}

Client defines the functions necessary to connect to redis and sentinel to get or set what we need

func New

func New() Client

New returns a redis client

Jump to

Keyboard shortcuts

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