conn

package
v2.3.0-beta27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package conn provides decoding and encoding of connection phase mysql packets

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAuthMoreData

func DecodeAuthMoreData(_ context.Context, data []byte) (*mysql.AuthMoreDataPacket, error)

func DecodeAuthNextFactor

func DecodeAuthNextFactor(_ context.Context, data []byte) (*mysql.AuthNextFactorPacket, error)

func DecodeAuthSwitchRequest

func DecodeAuthSwitchRequest(_ context.Context, data []byte) (*mysql.AuthSwitchRequestPacket, error)

func DecodeAuthSwitchResponse

func DecodeAuthSwitchResponse(_ context.Context, data []byte) (*mysql.AuthSwitchResponsePacket, error)

func DecodeHandshakeResponse41

func DecodeHandshakeResponse41(_ context.Context, _ *zap.Logger, data []byte) (*mysql.HandshakeResponse41Packet, error)

func DecodeHandshakeV10

func DecodeHandshakeV10(_ context.Context, _ *zap.Logger, data []byte) (*mysql.HandshakeV10Packet, error)

func EncodeAuthMoreData

func EncodeAuthMoreData(_ context.Context, packet *mysql.AuthMoreDataPacket) ([]byte, error)

func EncodeAuthNextFactor

func EncodeAuthNextFactor(_ context.Context, packet *mysql.AuthNextFactorPacket) ([]byte, error)

func EncodeAuthSwitchRequest

func EncodeAuthSwitchRequest(_ context.Context, packet *mysql.AuthSwitchRequestPacket) ([]byte, error)

func EncodeAuthSwitchResponse

func EncodeAuthSwitchResponse(_ context.Context, packet *mysql.AuthSwitchResponsePacket) ([]byte, error)

func EncodeHandshakeResponse41

func EncodeHandshakeResponse41(_ context.Context, _ *zap.Logger, packet *mysql.HandshakeResponse41Packet) ([]byte, error)

func EncodeHandshakeV10

func EncodeHandshakeV10(_ context.Context, _ *zap.Logger, packet *mysql.HandshakeV10Packet) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL