package
0.0.0-20140721202556-2b2087e3d869
Repository: https://github.com/joinhack/cockroach.git
Documentation: pkg.go.dev
# Functions
NewClient returns a client RPC stub for the specified address (usually a TCP host:port, but for testing may be a unix domain socket).
NewServer creates a new instance of Server.
Send sends one or more RPCs to clients specified by the keys of argsMap (with corresponding values of the map as arguments) according to availability and the number of required responses specified by opts.N.
# Structs
Client is a Cockroach-specific RPC client with an embedded go rpc.Client struct.
A HeartbeatService exposes a method to echo its request params.
An Options structure describes the algorithm for sending RPCs to one or more replicas, depending on error conditions and how many successful responses are required.
A PingRequest specifies the string to echo in response.
A PingResponse contains the echoed ping request string.
A SendError indicates that too many RPCs to the replica set failed to achieve requested number of successful responses.
Server is a Cockroach-specific RPC server with an embedded go RPC server struct.