Documentation
¶
Index ¶
- Constants
- type Client
- type ClusterClient
- type KubeDBClientBuilder
- func (o *KubeDBClientBuilder) GetRedisClient(ctx context.Context) (*Client, error)
- func (o *KubeDBClientBuilder) GetRedisClusterClient(ctx context.Context) (*ClusterClient, error)
- func (o *KubeDBClientBuilder) WithDatabase(database int) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
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 ClusterClient ¶ added in v0.0.6
type ClusterClient struct {
*rd.ClusterClient
}
type KubeDBClientBuilder ¶
type KubeDBClientBuilder struct {
// contains filtered or unexported fields
}
func NewKubeDBClientBuilder ¶
func NewKubeDBClientBuilder(kc client.Client, db *dbapi.Redis) *KubeDBClientBuilder
func (*KubeDBClientBuilder) GetRedisClient ¶
func (o *KubeDBClientBuilder) GetRedisClient(ctx context.Context) (*Client, error)
func (*KubeDBClientBuilder) GetRedisClusterClient ¶ added in v0.0.6
func (o *KubeDBClientBuilder) GetRedisClusterClient(ctx context.Context) (*ClusterClient, error)
func (*KubeDBClientBuilder) WithDatabase ¶ added in v0.2.0
func (o *KubeDBClientBuilder) WithDatabase(database int) *KubeDBClientBuilder
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.