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

# Functions

Proxy takes an incoming client connection and relays it to a backend SQL server.
Serve serves a listener according to the given Options.

# Constants

CodeBackendDisconnected indicates that the backend disconnected (with a connection error) while serving client traffic.
CodeBackendDown indicates an error establishing or maintaining a connection to the backend SQL server.
CodeBackendRefusedTLS indicates that the backend SQL server refused a TLS- enabled SQL connection.
CodeClientDisconnected indicates that the client disconnected unexpectedly (with a connection error) while in a session with backend SQL server.
CodeClientReadFailed indicates an error reading from the client connection.
CodeClientWriteFailed indicates an error writing to the client connection.
CodeParamsRoutingFailed indicates an error choosing a backend address based on the client's session parameters.
CodeSNIRoutingFailed indicates an error choosing a backend address based on the client's SNI header.
CodeUnexpectedInsecureStartupMessage indicates that the client sent a StartupMessage which was unexpected.
CodeUnexpectedStartupMessage indicates an unexpected startup message received from the client after TLS negotiation.

# Structs

Options are the options to the Proxy method.

# Type aliases

ErrorCode classifies errors emitted by Proxy().go:generate stringer -type=ErrorCode.