Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster represents a mock cluster in mock-tikv server.
func NewCluster ¶
NewCluster creates a mock cluster in mock-tikv server.
type MockCluster ¶
type MockCluster struct { ID uint64 `json:"id"` Members []*MockMember `json:"members"` }
MockCluster contains the mock cluster info respond from mock-tikv. It should be kept synced with mock-tikv.
type MockMember ¶
type MockMember struct { Name string `json:"name"` MemberID uint64 `json:"member_id"` ClientUrls []string `json:"client_urls"` }
MockMember contains the mock PD member respond from mock-tikv. It should be kept synced with mock-tikv.
Click to show internal directories.
Click to hide internal directories.