package
1.1.0
Repository: https://github.com/pingcap/tiproxy.git
Documentation: pkg.go.dev

# Functions

Attr2ZapFields converts connection attributes to log fields.
CheckSqlPort checks whether the SQL port is available.
No description provided by the author
DumpLengthEncodedString dumps string<int>.
No description provided by the author
No description provided by the author
IsDisconnectError returns whether the error is caused by peer disconnection.
IsEOFPacket returns true if it's an EOF packet.
IsErrorPacket returns true if it's an error packet.
IsMySQLError returns true if the error is a MySQL error.
IsOKPacket returns true if it's an OK packet (but not ResultSet OK).
IsResultSetOKPacket returns true if it's an OK packet after the result set when CLIENT_DEPRECATE_EOF is enabled.
No description provided by the author
MakeChangeUser creates the data of COM_CHANGE_USER.
No description provided by the author
No description provided by the author
ParseChangeUser parses the data of COM_CHANGE_USER.
ParseErrorPacket transforms an error packet into a MyError object.
No description provided by the author
ParseInitialHandshake parses the initial handshake received from the server.
No description provided by the author
No description provided by the author
No description provided by the author
ParseOKPacket parses an OK packet and only returns server status.
ParseQueryPacket returns the statement in the CMD_QUERY packet.
ReadFull is used to replace io.ReadFull to erase boundary check, function calls and interface conversion.
SkipLengthEncodedInt skips the int and only returns the length of the encoded int.
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

libmysqlclient & Connector/C++ & Connector/J & Connector/Python & mysqlnd.
Connector/Net.
libmysqlclient & Connector/C++ & Connector/J & Connector/Net & Connector/Python.
MySQL Client & MySQL Shell.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Header information.
No description provided by the author
No description provided by the author
No description provided by the author
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Capability flags.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Not a real command.
Command information.
Command information.
Command information.
CompressionNone indicates no compression in use.
CompressionZlib is zlib/deflate.
CompressionZstd is Facebook's Zstandard.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
Command information.
No description provided by the author
Header information.
Header information.
No description provided by the author
Header information.
MaxPayloadLen is the max packet payload length.
Capability flags.
Header information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
Server information.
No description provided by the author

# Variables

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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
HandshakeResp indicates the response read from the client.
PacketIO is a helper to read and write sql and proxy protocol.

# Type aliases

No description provided by the author
No description provided by the author
CompressAlgorithm is the algorithm for MySQL compressed protocol.
No description provided by the author
No description provided by the author