imple pd client (#597)

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>

Signed-off-by: Cabinfever_B <cabinfeveroier@gmail.com>
This commit is contained in:
Yongbo Jiang 2022-10-11 14:27:39 +08:00 committed by GitHub
parent 8dfd76bf46
commit dc130aa0d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/pingcap/kvproto/pkg/keyspacepb"
"github.com/pingcap/kvproto/pkg/metapb" "github.com/pingcap/kvproto/pkg/metapb"
"github.com/pingcap/kvproto/pkg/pdpb" "github.com/pingcap/kvproto/pkg/pdpb"
"github.com/pkg/errors" "github.com/pkg/errors"
@ -251,3 +252,11 @@ func (c *pdClient) GetLeaderAddr() string { return "mockpd" }
func (c *pdClient) UpdateOption(option pd.DynamicOption, value interface{}) error { func (c *pdClient) UpdateOption(option pd.DynamicOption, value interface{}) error {
return nil return nil
} }
func (c *pdClient) LoadKeyspace(ctx context.Context, name string) (*keyspacepb.KeyspaceMeta, error) {
return nil, nil
}
func (c *pdClient) WatchKeyspaces(ctx context.Context) (chan []*keyspacepb.KeyspaceMeta, error) {
return nil, nil
}