Help us shape the future of Go! Take the 2026 Go Developer Survey

redis

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 8 Imported by: 3

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