package
0.0.0-20230329140122-5d1382d9015e
Repository: https://github.com/wangyihang/zgrab2.git
Documentation: pkg.go.dev

# Functions

GetClientCapabilityFlags returns a map[string]bool representation of the given flags.
GetServerStatusFlags returns a map[string]bool representation of the given flags.
InitConfig fills in a (possibly newly-created) Config instance with the default values where values are not present.
NewConnection creates a new connection object with the given config (using defaults where none is specified).

# Constants

Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Capability flags: See https://dev.mysql.com/doc/dev/mysql-server/8.0.1/group__group__cs__capabilities__flags.html.
Config defaults.
Config defaults.
Config defaults.
Config defaults.
STATE_CONNECTED is the state after the TCP connection is completed.
STATE_FINISHED is the state after the connection has been negotiated (from either CONNECTED or SSL_HANDSHAKE).
STATE_NOT_CONNECTED is the start state.
STATE_SSL_HANDSHAKE is the state after sending an SSLRequest packet, before peforming an SSL handshake.
STATE_SSL_REQUEST is the state after reading a HandshakePacket with SSL capabilities, before sending the SSLRequest packet.

# Variables

ErrorCodes maps the 16-bit error codes to the "ErrorID"s defined in the docs.

# Structs

Config specifies the client settings for the connection.
Connection holds the state of a single connection.
ConnectionLog is a log of packets sent/received during the connection.
ConnectionLogEntry is an entry in the ConnectionLog.Entry in the ConnectionLog.
ERRPacket is returned by the server when there is an error.
HandshakePacket is the packet the server sends immediately upon a client connecting (unless there is an error, like there are no users allowed to connect from the client's host).
OKPacket is sent by the server in response to a successful command.
SSLRequestPacket is the packet sent by the client to inform the server that a TLS handshake follows.

# Interfaces

PacketInfo is the top-level interface for all packets.
WritablePacket is a sub-interface for those packets that must be sent by the client to the server, and not just read.

# Type aliases

ConnectionState tracks the state of the Connection instance.