Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxRawKVScanLimit = 10240
Functions ¶
func InitTiKVClient ¶
Types ¶
type Client ¶
type Client interface {
GetClientMode() TiKV_MODE
GetClusterID() string
GetStores() ([]StoreInfo, error)
GetPDs() ([]PDInfo, error)
GetPDClient() pd.Client
Put(ctx context.Context, kv KV) error
BatchPut(ctx context.Context, kv []KV) error
Get(ctx context.Context, k Key) (KV, error)
Scan(ctx context.Context, prefix []byte) (KVS, int, error)
Delete(ctx context.Context, k Key) error
BatchDelete(ctx context.Context, kvs []KV) error
DeletePrefix(ctx context.Context, prefix Key, limit int) (Key, int, error)
}
func GetTiKVClient ¶
func GetTiKVClient() Client
type PDInfo ¶
func (PDInfo) TableTitle ¶
type StoreInfo ¶
type StoreInfo struct {
ID string
Version string
Addr string
State string
StatusAddress string
Labels string
}
func (StoreInfo) TableTitle ¶
Click to show internal directories.
Click to hide internal directories.