package
20.1.0-alpha20191216+incompatible
Repository: https://github.com/knz/cockroach.git
Documentation: pkg.go.dev
# Functions
FatalIfUnexpected calls Log.Fatal(err) unless err is nil, cmux.ErrListenerClosed, or the net package's errClosed.
IsClosedConnection returns true if err is cmux.ErrListenerClosed, grpc.ErrServerStopped, io.EOF, or the net package's errClosed.
ListenAndServeGRPC creates a listener and serves the specified grpc Server on it, closing the listener when signaled by the stopper.
MakeServer constructs a Server that tracks active connections, closing them when signaled by stopper.
NewInitialHeartBeatFailedError creates a new InitialHeartbeatFailedError.
SplitHostPort is like net.SplitHostPort however it supports addresses without a port number.
# Structs
InitialHeartbeatFailedError indicates that while attempting a GRPC connection to a node, we aren't successful and have never seen a heartbeat over that connection before.
Server is a thin wrapper around http.Server.