# Functions
Error2Source returns the ErrorSource by the error.
ErrToClient returns the error that needs to be sent to the client.
Buf generates a random string using ASCII characters but avoid separator character.
No description provided by the author
NewBackendConnManager creates a BackendConnManager.
No description provided by the author
No description provided by the author
go:linkname Uint32N runtime.fastrandn.
# Constants
CheckBackendInterval is the interval for checking if the backend is still connected.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ConnectTimeout is the timeout for choosing and connecting to an available backend.
DialTimeout is the timeout for each dial.
No description provided by the author
SrcBackendHandshake includes: dial failure; backend capability unsupported; backend disables TLS; TLS handshake fails; proxy protocol fails.
SrcBackendNetwork includes: EOF; reset by peer; connection refused; io timeout.
SrcClientAuthFail includes: backend returns auth fail.
SrcClientHandshake includes: client capability unsupported; TLS handshake fails.
SrcClientNetwork includes: EOF; reset by peer; connection refused; io timeout.
SrcClientSQLErr includes: SQL error.
SrcNone includes: succeed for OnHandshake; client normally quit for OnConnClose.
SrcProxyErr includes: HandshakeHandler returns error; proxy disables TLS; unexpected errors.
SrcProxyMalformed includes: malformed packet.
SrcProxyNoBackend includes: no backends.
SrcProxyQuit includes: proxy graceful shutdown.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SupportedServerCapabilities is the default supported capabilities.
TickerInterval is the interval for checking backend status.
# Variables
These errors are used to track internal errors.
These errors may not be disconnection errors.
These errors are used to track internal errors.
These errors are used to track internal errors.
These errors are used to track internal errors.
These errors are used to track internal errors.
These errors are used to track internal errors.
These errors may not be disconnection errors.
These errors are used to track internal errors.
No description provided by the author
These errors are used to track internal errors.
These errors are used to track internal errors.
These errors are used to track internal errors.
No description provided by the author
# Structs
Authenticator handshakes with the client and the backend.
BackendConnManager migrates a session from one BackendConnection to another.
No description provided by the author
CmdProcessor maintains the transaction and prepared statement status and decides whether the session can be redirected.
No description provided by the author
No description provided by the author
# Interfaces
ConnContext saves the connection attributes that are read by HandshakeHandler.
HandshakeHandler contains the hooks that are called during the connection lifecycle.
# Type aliases
Context keys.
No description provided by the author
No description provided by the author