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 ¶
func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
Click to show internal directories.
Click to hide internal directories.