redis

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFaker = errors.New("it is a faker database")

ErrFaker is a faker.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	DB redis.UniversalClient

	WatcherConfigFuncs []daemon.WatcherConfigFunc
	daemon.ShutdownFunc
	daemon.HealthCheckFunc
	// contains filtered or unexported fields
}

Connector is a wrapped redis sentinel client.

func New

func New(pHost, pClient string, log logrus.FieldLogger) *Connector

New get a instance of redis sentinel client.

Jump to

Keyboard shortcuts

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