package
20.2.19+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

GetJSONProto uses the supplied client to GET the URL specified by the parameters and unmarshals the result into response.
GetJSONProtoWithAdminOption is like GetJSONProto but the caller can customize whether the request is performed with admin privilege.
InitTestClusterFactory should be called once to provide the implementation of the service.
InitTestServerFactory should be called once to provide the implementation of the service.
NewServer creates a test server.
NewTestCluster creates TestCluster made up of numNodes in-memory testing servers.
OpenDBConn sets up a gosql DB connection to the given server.
PostJSONProto uses the supplied client to POST the URL specified by the parameters and unmarshals the result into response.
PostJSONProtoWithAdminOption is like PostJSONProto but the caller can customize whether the request is performed with admin privilege.
StartNewTestCluster creates and starts up a TestCluster made up of numNodes in-memory testing servers.
StartServer creates and starts a test server, and sets up a gosql DB connection to it.
StartServerRaw creates and starts a TestServer.
StartTenant starts a tenant SQL server connecting to the supplied test server.

# Structs

KeyAndTargets contains replica startKey and targets.

# Interfaces

TestClusterFactory encompasses the actual implementation of the shim service.
TestClusterInterface defines TestCluster functionality used by tests.
TestServerFactory encompasses the actual implementation of the shim service.
TestServerInterface defines test server functionality that tests need; it is implemented by server.TestServer.
TestTenantInterface defines SQL-only tenant functionality that tests need; it is implemented by server.TestTenant.