Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // GetTS gets a timestamp from PD. GetTS() (int64, int64, error) // GetRegion gets a region and its leader Peer from PD by key. // The region may expire after split. Caller is responsible for caching and // taking care of region change. // Also it may return nil if PD finds no Region for the key temporarily, // client should retry later. GetRegion(key []byte) (*metapb.Region, *metapb.Peer, error) // GetStore gets a store from PD by store id. // The store may expire later. Caller is responsible for caching and taking care // of store change. GetStore(storeID uint64) (*metapb.Store, error) // Close closes the client. Close() }
Client is a PD (Placement Driver) client. It should not be used after calling Close().
Click to show internal directories.
Click to hide internal directories.