//
pkg.gl
Category
github.com/xelabs/go-mysqlstack
packet
package
1.0.0
Repository:
https://github.com/xelabs/go-mysqlstack.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
11
Dependents
5
Files
480 SLOC
#
Functions
NewMockConn
NewMockConn creates new mock connection.
NewPackets
NewPackets creates the new packets.
NewStream
NewStream creates a new stream.
#
Constants
PACKET_BUFFER_SIZE
PACKET_BUFFER_SIZE is how much we buffer for reading.
PACKET_MAX_SIZE
(16MB - 1).
#
Variables
ErrBadConn
ErrBadConn used for the error of bad connection.
ErrMalformPacket
ErrMalformPacket used for the bad packet.
#
Structs
MockConn
MockConn used to mock a net.Conn for testing purposes.
Packet
Packet presents the packet tuple.
Packets
Packets presents the stream tuple.
Stream
Stream represents the stream tuple.