Documentation ¶
Index ¶
- func CreatePDClient(cfg *config.Config) (*pdclient.APIClient, error)
- type ClientMaintainer
- func (cm *ClientMaintainer) Close()
- func (cm *ClientMaintainer) GetEtcdClient(ctx context.Context) (*clientv3.Client, error)
- func (cm *ClientMaintainer) GetPDClient(ctx context.Context) (*pdclient.APIClient, error)
- func (cm *ClientMaintainer) Init(pdCfg config.PD, pdCli *pdclient.APIClient, etcdCli *clientv3.Client)
- func (cm *ClientMaintainer) IsInitialized() bool
- func (cm *ClientMaintainer) NeedRecreateClient(pdCfg config.PD) bool
- type Domain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientMaintainer ¶
type ClientMaintainer struct {
// contains filtered or unexported fields
}
func NewClientMaintainer ¶
func NewClientMaintainer() *ClientMaintainer
func (*ClientMaintainer) Close ¶
func (cm *ClientMaintainer) Close()
func (*ClientMaintainer) GetEtcdClient ¶
WARN: call this function will blocked until successfully created etcd client.
func (*ClientMaintainer) GetPDClient ¶
WARN: call this function will blocked until successfully created PD client.
func (*ClientMaintainer) IsInitialized ¶
func (cm *ClientMaintainer) IsInitialized() bool
func (*ClientMaintainer) NeedRecreateClient ¶
func (cm *ClientMaintainer) NeedRecreateClient(pdCfg config.PD) bool
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
func NewDomainForTest ¶
func (*Domain) GetEtcdClient ¶
WARN: call this function will blocked until successfully created etcd client.
Click to show internal directories.
Click to hide internal directories.