Documentation ¶
Overview ¶
Package mysql provides integration with MySQL outgoing.
Index ¶
- Constants
- func DecodeMySQLPacket(logger *zap.Logger, packet models.Packet, clientConn net.Conn, ...) (string, models.SQLPacketHeaderInfo, interface{}, error)
- func Encode(p *models.Packet) ([]byte, error)
- func GetAuthMethod(packet *models.MySQLHandshakeV10Packet) string
- func NewMySQL(logger *zap.Logger) integrations.Integrations
- func ShouldUseSSL(packet *models.MySQLHandshakeV10Packet) bool
- func Uint24(data []byte) uint32
- type BoundParameter
- type CapabilityFlags
- type ComInitDbPacket
- type MySQL
- type PacketType2
- type PasswordData
Constants ¶
View Source
const ( // CLIENT_PLUGIN_AUTH indicates that the client supports plugin authentication. CLIENT_PLUGIN_AUTH = 0x00080000 // CLIENT_CONNECT_WITH_DB indicates that client is connecting to server with database name. CLIENT_CONNECT_WITH_DB = 0x00000008 // CLIENT_CONNECT_ATTRS indicates that the client supports connection attributes. CLIENT_CONNECT_ATTRS = 0x00100000 // CLIENT_ZSTD_COMPRESSION_ALGORITHM indicates support for Zstandard compression algorithm CLIENT_ZSTD_COMPRESSION_ALGORITHM = 0x00010000 )
Variables ¶
This section is empty.
Functions ¶
func DecodeMySQLPacket ¶
func GetAuthMethod ¶
func GetAuthMethod(packet *models.MySQLHandshakeV10Packet) string
func NewMySQL ¶
func NewMySQL(logger *zap.Logger) integrations.Integrations
func ShouldUseSSL ¶
func ShouldUseSSL(packet *models.MySQLHandshakeV10Packet) bool
Types ¶
type BoundParameter ¶
type CapabilityFlags ¶
type CapabilityFlags uint32
type ComInitDbPacket ¶
type MySQL ¶
type MySQL struct {
// contains filtered or unexported fields
}
func (*MySQL) MockOutgoing ¶
func (m *MySQL) MockOutgoing(ctx context.Context, src net.Conn, dstCfg *integrations.ConditionalDstCfg, mockDb integrations.MockMemDb, opts models.OutgoingOptions) error
type PacketType2 ¶
type PasswordData ¶
Source Files ¶
- authMoreData.go
- authSwitchRequestPacket.go
- authSwitchResponsePacket.go
- comChangeUserPacket.go
- comFetchPacket.go
- comInitDb.go
- comPingPacket.go
- comStmtCloseMoreData.go
- comStmtClosePacket.go
- comStmtPrepareOk.go
- comStmtPreparePacket.go
- comStmtResetPacket.go
- comStmtSendLongDataPacket.go
- decode.go
- encode.go
- encryptPassword.go
- eofPacket.go
- errPacket.go
- executePacket.go
- handshakeResponseOkPacket.go
- handshakeResponsePacket.go
- handshakeV10Packet.go
- match.go
- mysql.go
- okPacket.go
- operation.go
- queryPacket.go
- resultsetPacket.go
- type2Packet.go
- util.go
Click to show internal directories.
Click to hide internal directories.