Versions in this module Expand all Collapse all v1 v1.1.9 Oct 1, 2018 Changes in this version + func GetJSONProto(ts TestServerInterface, path string, response proto.Message) error + func InitTestClusterFactory(impl TestClusterFactory) + func InitTestServerFactory(impl TestServerFactory) + func PostJSONProto(ts TestServerInterface, path string, request, response proto.Message) error + type TestClusterFactory interface + StartTestCluster func(t testing.TB, numNodes int, args base.TestClusterArgs) TestClusterInterface + type TestClusterInterface interface + AddReplicas func(startKey roachpb.Key, targets ...roachpb.ReplicationTarget) (roachpb.RangeDescriptor, error) + FindRangeLeaseHolder func(rangeDesc roachpb.RangeDescriptor, hint *roachpb.ReplicationTarget) (roachpb.ReplicationTarget, error) + LookupRange func(key roachpb.Key) (roachpb.RangeDescriptor, error) + NumServers func() int + RemoveReplicas func(startKey roachpb.Key, targets ...roachpb.ReplicationTarget) (roachpb.RangeDescriptor, error) + Server func(idx int) TestServerInterface + ServerConn func(idx int) *gosql.DB + StopServer func(idx int) + Stopper func() *stop.Stopper + Target func(serverIdx int) roachpb.ReplicationTarget + TransferRangeLease func(rangeDesc roachpb.RangeDescriptor, dest roachpb.ReplicationTarget) error + func StartTestCluster(t testing.TB, numNodes int, args base.TestClusterArgs) TestClusterInterface + type TestServerFactory interface + New func(params base.TestServerArgs) interface{} + type TestServerInterface interface + Addr func() string + AdminURL func() string + Clock func() *hlc.Clock + ClusterSettings func() *cluster.Settings + DistSQLServer func() interface{} + DistSender func() *kv.DistSender + Executor func() interface{} + GetAuthenticatedHTTPClient func() (http.Client, error) + GetFirstStoreID func() roachpb.StoreID + GetHTTPClient func() (http.Client, error) + GetStores func() interface{} + Gossip func() *gossip.Gossip + HTTPAddr func() string + JobRegistry func() interface{} + KVClient func() interface{} + KVDB func() interface{} + LeaseManager func() interface{} + MustGetSQLCounter func(name string) int64 + MustGetSQLNetworkCounter func(name string) int64 + NodeID func() roachpb.NodeID + RPCContext func() *rpc.Context + ServingAddr func() string + SetDistSQLSpanResolver func(spanResolver interface{}) + SplitRange func(splitKey roachpb.Key) (left roachpb.RangeDescriptor, right roachpb.RangeDescriptor, err error) + Start func(params base.TestServerArgs) error + Stopper func() *stop.Stopper + WriteSummaries func() error + func StartServer(t testing.TB, params base.TestServerArgs) (TestServerInterface, *gosql.DB, *client.DB) + func StartServerRaw(args base.TestServerArgs) (TestServerInterface, error) Incompatible versions in this module v19.2.12+incompatible Jan 12, 2021