redissentinel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDialTimeout     = 15 * time.Second
	DefaultConnMaxIdleTime = 3 * time.Second
	DefaultPoolSize        = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*rd.SentinelClient
}

type KubeDBClientBuilder

type KubeDBClientBuilder struct {
	// contains filtered or unexported fields
}

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, db *dbapi.RedisSentinel) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetRedisSentinelClient

func (o *KubeDBClientBuilder) GetRedisSentinelClient(ctx context.Context) (*Client, error)

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

Jump to

Keyboard shortcuts

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