mirror of https://github.com/tikv/client-go.git
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:
parent
8dfd76bf46
commit
dc130aa0d3
|
|
@ -41,6 +41,7 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/pingcap/kvproto/pkg/keyspacepb"
|
||||
"github.com/pingcap/kvproto/pkg/metapb"
|
||||
"github.com/pingcap/kvproto/pkg/pdpb"
|
||||
"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 {
|
||||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue