package
19.2.12+incompatible
Repository: https://github.com/roachrail/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.
PostJSONProtoWithAdminOption is like PostJSONProto but the caller can customize whether the request is performed with admin privilege.
StartServer creates a test server and sets up a gosql DB connection.
StartServerRaw creates and starts a TestServer.
StartTestCluster starts up a TestCluster made up of numNodes in-memory testing servers.
# 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.