phase

package
v2.3.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package phase contains the encoding and decoding functions for the different phases of the MySQL protocol. And also contains the same for EOF, ERR, and OK packets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeEOF

func DecodeEOF(_ context.Context, data []byte, capabilities uint32) (*mysql.EOFPacket, error)

func DecodeERR

func DecodeERR(_ context.Context, data []byte, capabilities uint32) (*mysql.ERRPacket, error)

func DecodeOk

func DecodeOk(_ context.Context, data []byte, capabilities uint32) (*mysql.OKPacket, error)

func EncodeEOF

func EncodeEOF(_ context.Context, packet *mysql.EOFPacket, capabilities uint32) ([]byte, error)

func EncodeErr

func EncodeErr(_ context.Context, packet *mysql.ERRPacket, capabilities uint32) ([]byte, error)

func EncodeOk

func EncodeOk(_ context.Context, packet *mysql.OKPacket, capabilities uint32) ([]byte, error)

Types

This section is empty.

Directories

Path Synopsis
Package conn provides decoding and encoding of connection phase mysql packets
Package conn provides decoding and encoding of connection phase mysql packets
Package query provides functions to decode MySQL command phase packets.
Package query provides functions to decode MySQL command phase packets.
preparedstmt
Package preparedstmt provides functionality for decoding prepared statement packets.
Package preparedstmt provides functionality for decoding prepared statement packets.
rowscols
Package rowscols provides encoding and decoding of MySQL row & column packets.
Package rowscols provides encoding and decoding of MySQL row & column packets.
utility
Package utility provides encoding and decoding of utility command packets.
Package utility provides encoding and decoding of utility command packets.

Jump to

Keyboard shortcuts

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