Versions in this module Expand all Collapse all v3 v3.4.9 May 9, 2020 Changes in this version + const RequestWaitTimeout + const URLScheme + const URLSchemeTLS + func MustNewHTTPClient(t testing.TB, eps []string, tls *transport.TLSInfo) client.Client + func NewClientV3(m *member) (*clientv3.Client, error) + func NewCluster(t testing.TB, size int) *cluster + func NewClusterByConfig(t testing.TB, cfg *ClusterConfig) *cluster + func NewListenerWithAddr(t testing.TB, addr string) net.Listener + func WaitClientV3(t testing.TB, kv clientv3.KV) + type ClusterConfig struct + AuthToken string + ClientMaxCallRecvMsgSize int + ClientMaxCallSendMsgSize int + ClientTLS *transport.TLSInfo + DiscoveryURL string + EnableLeaseCheckpoint bool + GRPCKeepAliveInterval time.Duration + GRPCKeepAliveMinTime time.Duration + GRPCKeepAliveTimeout time.Duration + LeaseCheckpointInterval time.Duration + MaxRequestBytes uint + MaxTxnOps uint + PeerTLS *transport.TLSInfo + QuotaBackendBytes int64 + Size int + SkipCreatingClient bool + SnapshotCatchUpEntries uint64 + SnapshotCount uint64 + UseGRPC bool + UseIP bool + type ClusterV3 struct + func NewClusterV3(t testing.TB, cfg *ClusterConfig) *ClusterV3 + func (c *ClusterV3) AddAndLaunchLearnerMember(t testing.TB) + func (c *ClusterV3) Client(i int) *clientv3.Client + func (c *ClusterV3) GetLearnerMembers() ([]*pb.Member, error) + func (c *ClusterV3) MustNewMember(t testing.TB, resp *clientv3.MemberAddResponse) *member + func (c *ClusterV3) RandClient() *clientv3.Client + func (c *ClusterV3) TakeClient(idx int) + func (c *ClusterV3) Terminate(t testing.TB) + func (c ClusterV3) AddMember(t testing.TB) + func (c ClusterV3) HTTPMembers() []client.Member + func (c ClusterV3) Launch(t testing.TB) + func (c ClusterV3) RemoveMember(t testing.TB, id uint64) + func (c ClusterV3) URL(i int) string + func (c ClusterV3) URLs() []string + func (c ClusterV3) WaitLeader(t testing.TB) int + func (c ClusterV3) WaitNoLeader() + type SortableMemberSliceByPeerURLs []client.Member + func (p SortableMemberSliceByPeerURLs) Len() int + func (p SortableMemberSliceByPeerURLs) Less(i, j int) bool + func (p SortableMemberSliceByPeerURLs) Swap(i, j int) + type SortableProtoMemberSliceByPeerURLs []*pb.Member + func (p SortableProtoMemberSliceByPeerURLs) Len() int + func (p SortableProtoMemberSliceByPeerURLs) Less(i, j int) bool + func (p SortableProtoMemberSliceByPeerURLs) Swap(i, j int)