Documentation
¶
Index ¶
- type Harness
- func (h *Harness) AddNodeToCluster(leaderId int, newId int)
- func (h *Harness) CheckAppend(c *kvclient.KVClient, key, value string) (string, bool)
- func (h *Harness) CheckCAS(c *kvclient.KVClient, key, compare, value string) (string, bool)
- func (h *Harness) CheckGet(c *kvclient.KVClient, key string, wantValue string)
- func (h *Harness) CheckGetNotFound(c *kvclient.KVClient, key string)
- func (h *Harness) CheckGetTimesOut(c *kvclient.KVClient, key string)
- func (h *Harness) CheckPeerList(id int, wantPeers []int)
- func (h *Harness) CheckPut(c *kvclient.KVClient, key, value string) (string, bool)
- func (h *Harness) CheckPutWithLease(c *kvclient.KVClient, key, value string, leaseID int64) (string, bool)
- func (h *Harness) CheckSingleLeader() int
- func (h *Harness) CrashService(id int)
- func (h *Harness) DelayNextHTTPResponseFromService(id int)
- func (h *Harness) DisconnectServiceFromPeers(id int)
- func (h *Harness) NewClient() *kvclient.KVClient
- func (h *Harness) NewClientSingleService(id int) *kvclient.KVClient
- func (h *Harness) NewClientWithRandomAddrsOrder() *kvclient.KVClient
- func (h *Harness) ReconnectServiceToPeers(id int)
- func (h *Harness) RemoveNodeFromCluster(leaderId int, targetId int)
- func (h *Harness) RestartService(id int)
- func (h *Harness) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Harness ¶
type Harness struct {
// contains filtered or unexported fields
}
func (*Harness) AddNodeToCluster ¶
func (*Harness) CheckAppend ¶
func (*Harness) CheckGetNotFound ¶
func (*Harness) CheckGetTimesOut ¶
func (*Harness) CheckPeerList ¶
func (*Harness) CheckPutWithLease ¶
func (*Harness) CheckSingleLeader ¶
func (*Harness) CrashService ¶
func (*Harness) DelayNextHTTPResponseFromService ¶
func (*Harness) DisconnectServiceFromPeers ¶
func (*Harness) NewClientSingleService ¶
func (*Harness) NewClientWithRandomAddrsOrder ¶
func (*Harness) ReconnectServiceToPeers ¶
func (*Harness) RemoveNodeFromCluster ¶
func (*Harness) RestartService ¶
Click to show internal directories.
Click to hide internal directories.