redis

package
v0.0.0-...-bdcd3c7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: Apache-2.0 Imports: 6 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) (int32, error)
	GetNumberSentinelSlavesInMemory(ip string) (int32, error)
	ResetSentinel(ip string) error
	GetSlaveOf(ip string) (string, error)
	IsMaster(ip string) (bool, error)
	MonitorRedis(ip string, monitor string, quorum string) error
	MakeMaster(ip string) error
	MakeSlaveOf(ip string, masterIP string) error
	GetSentinelMonitor(ip string) (string, error)
	SetCustomSentinelConfig(ip string, configs []string) error
	SetCustomRedisConfig(ip string, configs []string) error
}

Client defines the functions neccesary to connect to redis and sentinel to get or set what we nned

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