MySQLProtocol

package
v0.0.0-...-a851535 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2016 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

View Source
const AUTO_INCREMENT_FLAG uint64 = 512
View Source
const BINARY_FLAG uint64 = 128
View Source
const BINCMP_FLAG uint64 = 131072
View Source
const BLOB_FLAG uint64 = 16
View Source
const CAN_CLIENT_COMPRESS uint64 = 0
View Source
const CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS uint64 = 1 << 22
View Source
const CLIENT_COMPRESS uint64 = 32
View Source
const CLIENT_CONNECT_ATTRS uint64 = 1 << 20
View Source
const CLIENT_CONNECT_WITH_DB uint64 = 8
View Source
const CLIENT_DEPRECATE_EOF uint64 = 1 << 24
View Source
const CLIENT_FOUND_ROWS uint64 = 2
View Source
const CLIENT_IGNORE_SIGPIPE uint64 = 4096
View Source
const CLIENT_IGNORE_SPACE uint64 = 256
View Source
const CLIENT_INTERACTIVE uint64 = 1024
View Source
const CLIENT_LOCAL_FILES uint64 = 128
View Source
const CLIENT_LONG_FLAG uint64 = 4
View Source
const CLIENT_LONG_PASSWORD uint64 = 1
View Source
const CLIENT_MULTI_RESULTS uint64 = 1 << 17
View Source
const CLIENT_MULTI_STATEMENTS uint64 = 1 << 16
View Source
const CLIENT_NO_SCHEMA uint64 = 16
View Source
const CLIENT_ODBC uint64 = 64
View Source
const CLIENT_PLUGIN_AUTH uint64 = 1 << 19
View Source
const CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA uint64 = 1 << 21
View Source
const CLIENT_PROTOCOL_41 uint64 = 512
View Source
const CLIENT_PS_MULTI_RESULTS uint64 = 1 << 18
View Source
const CLIENT_REMEMBER_OPTIONS uint64 = 1 << 31
View Source
const CLIENT_RESERVED uint64 = 16384
View Source
const CLIENT_SECURE_CONNECTION uint64 = 32768
View Source
const CLIENT_SESSION_TRACK uint64 = 1 << 23
View Source
const CLIENT_SSL uint64 = 2048
View Source
const CLIENT_SSL_VERIFY_SERVER_CERT uint64 = 1 << 30
View Source
const CLIENT_TRANSACTIONS uint64 = 8192
View Source
const COLUMN_COMMENT_MAXLEN uint64 = 1024
View Source
const COMP_HEADER_SIZE uint64 = 3
View Source
const COM_BINLOG_DUMP byte = 0x12
View Source
const COM_BINLOG_DUMP_GTID byte = 0x1E
View Source
const COM_CHANGE_USER byte = 0x11
View Source
const COM_CONNECT byte = 0x0B // deprecated
View Source
const COM_CONNECT_OUT byte = 0x14
View Source
const COM_CREATE_DB byte = 0x05
View Source
const COM_DAEMON byte = 0x1D // deprecated
View Source
const COM_DEBUG byte = 0x0D
View Source
const COM_DELAYED_INSERT byte = 0x10 // deprecated
View Source
const COM_DROP_DB byte = 0x06
View Source
const COM_FIELD_LIST byte = 0x04
View Source
const COM_INIT_DB byte = 0x02
View Source
const COM_PING byte = 0x0E
View Source
const COM_PROCESS_INFO byte = 0x0A // deprecated
View Source
const COM_PROCESS_KILL byte = 0x0C
View Source
const COM_QUERY byte = 0x03
View Source
const COM_QUIT byte = 0x01
View Source
const COM_REFRESH byte = 0x07
View Source
const COM_REGISTER_SLAVE byte = 0x15
View Source
const COM_RESET_CONNECTION byte = 0x1F // deprecated
View Source
const COM_SET_OPTION byte = 0x1B
View Source
const COM_SHUTDOWN byte = 0x08
View Source
const COM_SLEEP byte = 0x00
View Source
const COM_STATISTICS byte = 0x09
View Source
const COM_STMT_CLOSE byte = 0x19
View Source
const COM_STMT_EXECUTE byte = 0x17
View Source
const COM_STMT_FETCH byte = 0x1C
View Source
const COM_STMT_PREPARE byte = 0x16
View Source
const COM_STMT_RESET byte = 0x1A
View Source
const COM_STMT_SEND_LONG_DATA byte = 0x18
View Source
const COM_TABLE_DUMP byte = 0x13
View Source
const COM_TIME byte = 0x0F // deprecated
View Source
const CURSOR_TYPE_FOR_UPDATE uint64 = 2
View Source
const CURSOR_TYPE_NO_CURSOR uint64 = 0
View Source
const CURSOR_TYPE_READ_ONLY uint64 = 1
View Source
const CURSOR_TYPE_SCROLLABLE uint64 = 4
View Source
const Character_Set_binary byte = 0x3f
View Source
const Character_Set_latin1_swedish_ci byte = 0x08
View Source
const Character_Set_utf8_general_ci byte = 0x21
View Source
const DECIMAL_RESULT uint64 = 4
View Source
const ENUM_FLAG uint64 = 256
View Source
const EOF byte = 0xFE
View Source
const ERR byte = 0xFF
View Source
const FIELD_FLAGS_COLUMN_FORMAT uint64 = 24
View Source
const FIELD_FLAGS_COLUMN_FORMAT_MASK uint64 = 3 << FIELD_FLAGS_COLUMN_FORMAT
View Source
const FIELD_FLAGS_STORAGE_MEDIA uint64 = 22
View Source
const FIELD_FLAGS_STORAGE_MEDIA_MASK uint64 = 3 << FIELD_FLAGS_STORAGE_MEDIA
View Source
const FIELD_IN_ADD_INDEX uint64 = 1 << 20
View Source
const FIELD_IN_PART_FUNC_FLAG uint64 = 1 << 19
View Source
const FIELD_IS_DROPPED uint64 = 1 << 26
View Source
const FIELD_IS_RENAMED uint64 = 1 << 21
View Source
const GET_FIXED_FIELDS_FLAG uint64 = 1 << 18
View Source
const GROUP_FLAG uint64 = 32768
View Source
const HOSTNAME_LENGTH uint64 = 60
View Source
const INDEX_COMMENT_MAXLEN uint64 = 1024
View Source
const INT_RESULT uint64 = 2
View Source
const KILL_CONNECTION uint64 = 255
View Source
const KILL_QUERY uint64 = 254
View Source
const LOCAL_HOST string = "localhost"
View Source
const LOCAL_HOST_NAMEDPIPE string = "."
View Source
const LOCAL_INFILE byte = 0xFB
View Source
const MAX_BIGINT_WIDTH uint64 = 20
View Source
const MAX_BLOB_WIDTH uint64 = 16777216
View Source
const MAX_CHAR_WIDTH uint64 = 255
View Source
const MAX_INT_WIDTH uint64 = 10
View Source
const MAX_MEDIUMINT_WIDTH uint64 = 8
View Source
const MAX_PACKET_SIZE uint64 = 16777215
View Source
const MAX_SMALLINT_WIDTH uint64 = 5
View Source
const MAX_TINYINT_WIDTH uint64 = 3
View Source
const MIN_COMPRESS_LENGTH = 50
View Source
const MODE_CLEANUP uint64 = 11 // Connection closed
View Source
const MODE_INIT uint64 = 0 // Connection opened
View Source
const MODE_READ_AUTH uint64 = 3 // Read the reply from the client and process it
View Source
const MODE_READ_AUTH_RESULT uint64 = 5 // Read the reply from the server and process it
View Source
const MODE_READ_HANDSHAKE uint64 = 1 // Read the handshake from the server and process it
View Source
const MODE_READ_QUERY uint64 = 7 // Read the query from the client and process it
View Source
const MODE_READ_QUERY_RESULT uint64 = 9 // Read the result set from the server and and process it
View Source
const MODE_SEND_AUTH uint64 = 4 // Forward the reply from the client
View Source
const MODE_SEND_AUTH_RESULT uint64 = 6 // Forward the reply from the server
View Source
const MODE_SEND_HANDSHAKE uint64 = 2 // Forward the handshake from the server
View Source
const MODE_SEND_QUERY uint64 = 8 // Send the query to the server
View Source
const MODE_SEND_QUERY_RESULT uint64 = 10 // Send a result set to the client
View Source
const MULTIPLE_KEY_FLAG uint64 = 8
View Source
const MYSQL_AUTODETECT_CHARSET_NAME string = "auto"
View Source
const MYSQL_ERRMSG_SIZE uint64 = 512
View Source
const MYSQL_LONG_DATA_HEADER uint64 = 6
View Source
const MYSQL_OPTION_MULTI_STATEMENTS_OFF uint64 = 1
View Source
const MYSQL_OPTION_MULTI_STATEMENTS_ON uint64 = 0
View Source
const MYSQL_SHUTDOWN_KILLABLE_CONNECT uint64 = 1 << 0
View Source
const MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE uint64 = 1 << 2
View Source
const MYSQL_SHUTDOWN_KILLABLE_TRANS uint64 = 1 << 1
View Source
const MYSQL_SHUTDOWN_KILLABLE_UPDATE uint64 = 1 << 3
View Source
const MYSQL_STMT_HEADER uint64 = 4
View Source
const MYSQL_TYPE_BIT byte = 16
View Source
const MYSQL_TYPE_BLOB byte = 252
View Source
const MYSQL_TYPE_DATE byte = 10
View Source
const MYSQL_TYPE_DATETIME byte = 12
View Source
const MYSQL_TYPE_DATETIME2 byte = 18
View Source
const MYSQL_TYPE_DECIMAL byte = 0
View Source
const MYSQL_TYPE_DOUBLE byte = 5
View Source
const MYSQL_TYPE_ENUM byte = 247
View Source
const MYSQL_TYPE_FLOAT byte = 4
View Source
const MYSQL_TYPE_GEOMETRY byte = 255
View Source
const MYSQL_TYPE_INT24 byte = 9
View Source
const MYSQL_TYPE_LONG byte = 3
View Source
const MYSQL_TYPE_LONGLONG byte = 8
View Source
const MYSQL_TYPE_LONG_BLOB byte = 251
View Source
const MYSQL_TYPE_MEDIUM_BLOB byte = 250
View Source
const MYSQL_TYPE_NEWDATE byte = 14
View Source
const MYSQL_TYPE_NEWDECIMAL byte = 246
View Source
const MYSQL_TYPE_NULL byte = 6
View Source
const MYSQL_TYPE_SET byte = 248
View Source
const MYSQL_TYPE_SHORT byte = 2
View Source
const MYSQL_TYPE_STRING byte = 254
View Source
const MYSQL_TYPE_TIME byte = 11
View Source
const MYSQL_TYPE_TIME2 byte = 19
View Source
const MYSQL_TYPE_TIMESTAMP byte = 7
View Source
const MYSQL_TYPE_TIMESTAMP2 byte = 17
View Source
const MYSQL_TYPE_TINY byte = 1
View Source
const MYSQL_TYPE_TINY_BLOB byte = 249
View Source
const MYSQL_TYPE_UNKNOWN byte = 128

This is used in the test code path to test a unknown type. In the event we get a new type with this value, just change it to another unused value.

View Source
const MYSQL_TYPE_VARCHAR byte = 15
View Source
const MYSQL_TYPE_VAR_STRING byte = 253
View Source
const MYSQL_TYPE_YEAR byte = 13
View Source
const NAME_CHAR_LEN uint64 = 64
View Source
const NET_HEADER_SIZE uint64 = 4
View Source
const NET_READ_TIMEOUT uint64 = 30
View Source
const NET_WAIT_TIMEOUT uint64 = 8 * 60 * 60
View Source
const NET_WRITE_TIMEOUT uint64 = 60
View Source
const NOT_FIXED_DEC uint64 = 31
View Source
const NOT_NULL_FLAG uint64 = 1
View Source
const NO_DEFAULT_VALUE_FLAG uint64 = 4096
View Source
const NULL_LENGTH int = ^0
View Source
const NUM_FLAG uint64 = 32768
View Source
const OK byte = 0x00
View Source
const ONLY_KILL_QUERY uint64 = 1
View Source
const ON_UPDATE_NOW_FLAG uint64 = 8192
View Source
const PART_KEY_FLAG uint64 = 16384
View Source
const PRI_KEY_FLAG uint64 = 2
View Source
const REAL_RESULT uint64 = 1
View Source
const REFRESH_BINARY_LOG uint64 = 1024
View Source
const REFRESH_DES_KEY_FILE uint64 = 0x40000
View Source
const REFRESH_ENGINE_LOG uint64 = 512
View Source
const REFRESH_ERROR_LOG uint64 = 256
View Source
const REFRESH_FAST uint64 = 32768
View Source
const REFRESH_FOR_EXPORT uint64 = 0x100000
View Source
const REFRESH_GENERAL_LOG uint64 = 4096
View Source
const REFRESH_GRANT uint64 = 1
View Source
const REFRESH_HOSTS uint64 = 8
View Source
const REFRESH_LOG uint64 = 2
View Source
const REFRESH_MASTER uint64 = 128
View Source
const REFRESH_QUERY_CACHE uint64 = 65536
View Source
const REFRESH_QUERY_CACHE_FREE uint64 = 0x20000
View Source
const REFRESH_READ_LOCK uint64 = 16384
View Source
const REFRESH_RELAY_LOG uint64 = 2048
View Source
const REFRESH_SLAVE uint64 = 64
View Source
const REFRESH_SLOW_LOG uint64 = 8192
View Source
const REFRESH_STATUS uint64 = 16
View Source
const REFRESH_TABLES uint64 = 4
View Source
const REFRESH_THREADS uint64 = 32
View Source
const REFRESH_USER_RESOURCES uint64 = 0x80000
View Source
const ROW_RESULT uint64 = 3
View Source
const ROW_TYPE_BINARY uint64 = 1
View Source
const ROW_TYPE_TEXT uint64 = 0
View Source
const RS_COL_DEF uint64 = 2
View Source
const RS_DATA_FILE uint64 = 3
View Source
const RS_FULL uint64 = 1
View Source
const RS_OK uint64 = 0
View Source
const SCRAMBLED_PASSWORD_CHAR_LENGTH uint64 = SCRAMBLE_LENGTH*2 + 1
View Source
const SCRAMBLED_PASSWORD_CHAR_LENGTH_323 uint64 = SCRAMBLE_LENGTH_323 * 2
View Source
const SCRAMBLE_LENGTH uint64 = 20
View Source
const SCRAMBLE_LENGTH_323 uint64 = 8
View Source
const SERVER_MORE_RESULTS_EXISTS uint16 = 0x0008
View Source
const SERVER_PS_OUT_PARAMS uint16 = 0x1000
View Source
const SERVER_QUERY_NO_GOOD_INDEX_USED uint16 = 0x0010
View Source
const SERVER_QUERY_NO_INDEX_USED uint16 = 0x0020
View Source
const SERVER_QUERY_WAS_SLOW uint16 = 0x0800
View Source
const SERVER_SESSION_STATE_CHANGED uint16 = 0x4000
View Source
const SERVER_STATUS_AUTOCOMMIT uint16 = 0x0002
View Source
const SERVER_STATUS_CURSOR_EXISTS uint16 = 0x0040
View Source
const SERVER_STATUS_DB_DROPPED uint16 = 0x0100
View Source
const SERVER_STATUS_IN_TRANS uint16 = 0x0001
View Source
const SERVER_STATUS_IN_TRANS_READONLY uint16 = 0x2000
View Source
const SERVER_STATUS_LAST_ROW_SENT uint16 = 0x0080
View Source
const SERVER_STATUS_METADATA_CHANGED uint16 = 0x0400
View Source
const SERVER_STATUS_NO_BACKSLASH_ESCAPES uint16 = 0x0200
View Source
const SERVER_STATUS_NO_GOOD_INDEX_USED uint16 = SERVER_QUERY_NO_GOOD_INDEX_USED
View Source
const SERVER_STATUS_NO_INDEX_USED uint16 = SERVER_QUERY_NO_INDEX_USED
View Source
const SERVER_VERSION_LENGTH uint64 = 60
View Source
const SESSION_TRACK_GTIDS uint8 = 0x03
View Source
const SESSION_TRACK_SCHEMA uint8 = 0x01
View Source
const SESSION_TRACK_STATE_CHANGE uint8 = 0x02
View Source
const SESSION_TRACK_SYSTEM_VARIABLES uint8 = 0x00
View Source
const SET_FLAG uint64 = 2048
View Source
const SHUTDOWN_DEFAULT uint64 = 0
View Source
const SHUTDOWN_WAIT_ALL_BUFFERS uint64 = MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1
View Source
const SHUTDOWN_WAIT_CONNECTIONS uint64 = MYSQL_SHUTDOWN_KILLABLE_CONNECT
View Source
const SHUTDOWN_WAIT_CRITICAL_BUFFERS uint64 = (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1
View Source
const SHUTDOWN_WAIT_TRANSACTIONS uint64 = MYSQL_SHUTDOWN_KILLABLE_TRANS
View Source
const SHUTDOWN_WAIT_UPDATES uint64 = MYSQL_SHUTDOWN_KILLABLE_UPDATE
View Source
const SQLSTATE_LENGTH uint64 = 5
View Source
const STRING_RESULT uint64 = 0
View Source
const SYSTEM_CHARSET_MBMAXLEN uint64 = 3
View Source
const TABLE_COMMENT_INLINE_MAXLEN uint64 = 180
View Source
const TABLE_COMMENT_MAXLEN uint64 = 2048
View Source
const TABLE_PARTITION_COMMENT_MAXLEN uint64 = 1024
View Source
const TIMESTAMP_FLAG uint64 = 1024
View Source
const UNIQUE_FLAG uint64 = 65536
View Source
const UNIQUE_KEY_FLAG uint64 = 4
View Source
const UNSIGNED_FLAG uint64 = 32
View Source
const USERNAME_CHAR_LENGTH uint64 = 16
View Source
const USER_HOST_BUFF_SIZE uint64 = HOSTNAME_LENGTH + USERNAME_LENGTH + 2
View Source
const ZEROFILL_FLAG uint64 = 64

Variables

This section is empty.

Functions

func BuildFixedLengthInteger1

func BuildFixedLengthInteger1(value uint8) (data []byte)

func BuildFixedLengthInteger2

func BuildFixedLengthInteger2(value uint16) (data []byte)

func BuildFixedLengthInteger3

func BuildFixedLengthInteger3(value uint32) (data []byte)

func BuildFixedLengthInteger4

func BuildFixedLengthInteger4(value uint32) (data []byte)

func BuildFixedLengthInteger6

func BuildFixedLengthInteger6(value uint64) (data []byte)

func BuildFixedLengthInteger8

func BuildFixedLengthInteger8(value uint64) (data []byte)

func BuildFixedLengthString

func BuildFixedLengthString(value string, size ...uint) (data []byte)

func BuildLengthEncodedInteger

func BuildLengthEncodedInteger(value uint64) (data []byte)

func BuildLengthEncodedString

func BuildLengthEncodedString(value string) (data []byte)

func BuildNulTerminatedString

func BuildNulTerminatedString(value string) (data []byte)

func CompressPacket

func CompressPacket(sequence_id uint8, input []byte) (output []byte)

func DumpPacket

func DumpPacket(data []byte) (hex_data string)

func EncryptPacket

func EncryptPacket(sequence_id uint8, input []byte) (output []byte)

func GetFixedLengthStringSize

func GetFixedLengthStringSize(value string, size ...uint) uint64

func GetLengthEncodedIntegerSize

func GetLengthEncodedIntegerSize(value uint64) (size uint64)

func GetLengthEncodedStringSize

func GetLengthEncodedStringSize(value string) uint64

func GetNulTerminatedStringSize

func GetNulTerminatedStringSize(value string) uint64

func Has_Flag

func Has_Flag(value uint64, flag uint64) bool

func Has_Flag_uint16

func Has_Flag_uint16(value uint16, flag uint16) bool

func Has_Flag_uint32

func Has_Flag_uint32(value uint32, flag uint32) bool

func Has_Flag_uint64

func Has_Flag_uint64(value uint64, flag uint64) bool

func Remove_Flag

func Remove_Flag(value uint64, flag uint64) uint64

func Remove_Flag_uint16

func Remove_Flag_uint16(value uint16, flag uint16) uint16

func Remove_Flag_uint32

func Remove_Flag_uint32(value uint32, flag uint32) uint32

func Remove_Flag_uint64

func Remove_Flag_uint64(value uint64, flag uint64) uint64

func Set_Flag

func Set_Flag(value uint64, flag uint64) uint64

func Set_Flag_uint16

func Set_Flag_uint16(value uint16, flag uint16) uint16

func Set_Flag_uint32

func Set_Flag_uint32(value uint32, flag uint32) uint32

func Set_Flag_uint64

func Set_Flag_uint64(value uint64, flag uint64) uint64

func StringToPacket

func StringToPacket(value string) (data []byte)

Types

type Attributes

type Attributes struct {
	// contains filtered or unexported fields
}

func (Attributes) BuildAttributes

func (attributes Attributes) BuildAttributes() (val []byte)

func (*Attributes) GetAttribute

func (attributes *Attributes) GetAttribute(attribute string) (value *string)

func (Attributes) GetAttributesSize

func (attributes Attributes) GetAttributesSize() uint64

func (*Attributes) RemoveAttribute

func (attributes *Attributes) RemoveAttribute(attribute string) bool

func (*Attributes) SetAttribute

func (attributes *Attributes) SetAttribute(attribute string, value string) bool

type Context

type Context struct {
	// contains filtered or unexported fields
}

type Field_BIT

type Field_BIT struct {
	// contains filtered or unexported fields
}

func (Field_BIT) Build

func (field Field_BIT) Build() []byte

func (*Field_BIT) Get

func (field *Field_BIT) Get(proto *Proto)

func (Field_BIT) GetType

func (field Field_BIT) GetType() byte

func (Field_BIT) PacketSize

func (field Field_BIT) PacketSize() uint64

type Field_BLOB

type Field_BLOB struct {
	// contains filtered or unexported fields
}

func (Field_BLOB) Build

func (field Field_BLOB) Build() []byte

func (*Field_BLOB) Get

func (field *Field_BLOB) Get(proto *Proto)

func (Field_BLOB) GetType

func (field Field_BLOB) GetType() byte

func (Field_BLOB) PacketSize

func (field Field_BLOB) PacketSize() uint64

type Field_DATE

type Field_DATE struct {
	// contains filtered or unexported fields
}

func (Field_DATE) Build

func (field Field_DATE) Build() []byte

func (*Field_DATE) Get

func (field *Field_DATE) Get(proto *Proto)

func (Field_DATE) GetType

func (field Field_DATE) GetType() byte

func (Field_DATE) PacketSize

func (field Field_DATE) PacketSize() uint64

func (Field_DATE) Size

func (field Field_DATE) Size() uint64

type Field_DATETIME

type Field_DATETIME struct {
	// contains filtered or unexported fields
}

func (Field_DATETIME) Build

func (field Field_DATETIME) Build() []byte

func (*Field_DATETIME) Get

func (field *Field_DATETIME) Get(proto *Proto)

func (Field_DATETIME) GetType

func (field Field_DATETIME) GetType() byte

func (Field_DATETIME) PacketSize

func (field Field_DATETIME) PacketSize() uint64

func (Field_DATETIME) Size

func (field Field_DATETIME) Size() uint64

type Field_DATETIME2

type Field_DATETIME2 struct {
	// contains filtered or unexported fields
}

func (Field_DATETIME2) Build

func (field Field_DATETIME2) Build() []byte

func (*Field_DATETIME2) Get

func (field *Field_DATETIME2) Get(proto *Proto)

func (Field_DATETIME2) GetType

func (field Field_DATETIME2) GetType() byte

func (Field_DATETIME2) PacketSize

func (field Field_DATETIME2) PacketSize() uint64

func (Field_DATETIME2) Size

func (field Field_DATETIME2) Size() uint64

type Field_DECIMAL

type Field_DECIMAL struct {
	// contains filtered or unexported fields
}

func (Field_DECIMAL) Build

func (field Field_DECIMAL) Build() []byte

func (*Field_DECIMAL) Get

func (field *Field_DECIMAL) Get(proto *Proto)

func (Field_DECIMAL) GetType

func (field Field_DECIMAL) GetType() byte

func (Field_DECIMAL) PacketSize

func (field Field_DECIMAL) PacketSize() uint64

type Field_DOUBLE

type Field_DOUBLE struct {
	// contains filtered or unexported fields
}

func (Field_DOUBLE) Build

func (field Field_DOUBLE) Build() []byte

func (*Field_DOUBLE) Get

func (field *Field_DOUBLE) Get(proto *Proto)

func (Field_DOUBLE) GetType

func (field Field_DOUBLE) GetType() byte

func (Field_DOUBLE) PacketSize

func (field Field_DOUBLE) PacketSize() uint64

type Field_ENUM

type Field_ENUM struct {
	// contains filtered or unexported fields
}

func (Field_ENUM) Build

func (field Field_ENUM) Build() []byte

func (*Field_ENUM) Get

func (field *Field_ENUM) Get(proto *Proto)

func (Field_ENUM) GetType

func (field Field_ENUM) GetType() byte

func (Field_ENUM) PacketSize

func (field Field_ENUM) PacketSize() uint64

type Field_FLOAT

type Field_FLOAT struct {
	// contains filtered or unexported fields
}

func (Field_FLOAT) Build

func (field Field_FLOAT) Build() []byte

func (*Field_FLOAT) Get

func (field *Field_FLOAT) Get(proto *Proto)

func (Field_FLOAT) GetType

func (field Field_FLOAT) GetType() byte

func (Field_FLOAT) PacketSize

func (field Field_FLOAT) PacketSize() uint64

type Field_GEOMETRY

type Field_GEOMETRY struct {
	// contains filtered or unexported fields
}

func (Field_GEOMETRY) Build

func (field Field_GEOMETRY) Build() []byte

func (*Field_GEOMETRY) Get

func (field *Field_GEOMETRY) Get(proto *Proto)

func (Field_GEOMETRY) GetType

func (field Field_GEOMETRY) GetType() byte

func (Field_GEOMETRY) PacketSize

func (field Field_GEOMETRY) PacketSize() uint64

type Field_INT24

type Field_INT24 struct {
	// contains filtered or unexported fields
}

func (Field_INT24) Build

func (field Field_INT24) Build() []byte

func (*Field_INT24) Get

func (field *Field_INT24) Get(proto *Proto)

func (Field_INT24) GetType

func (field Field_INT24) GetType() byte

func (Field_INT24) PacketSize

func (field Field_INT24) PacketSize() uint64

type Field_LONG

type Field_LONG struct {
	// contains filtered or unexported fields
}

func (Field_LONG) Build

func (field Field_LONG) Build() []byte

func (*Field_LONG) Get

func (field *Field_LONG) Get(proto *Proto)

func (Field_LONG) GetType

func (field Field_LONG) GetType() byte

func (Field_LONG) PacketSize

func (field Field_LONG) PacketSize() uint64

type Field_LONGLONG

type Field_LONGLONG struct {
	// contains filtered or unexported fields
}

func (Field_LONGLONG) Build

func (field Field_LONGLONG) Build() []byte

func (*Field_LONGLONG) Get

func (field *Field_LONGLONG) Get(proto *Proto)

func (Field_LONGLONG) GetType

func (field Field_LONGLONG) GetType() byte

func (Field_LONGLONG) PacketSize

func (field Field_LONGLONG) PacketSize() uint64

type Field_LONG_BLOB

type Field_LONG_BLOB struct {
	// contains filtered or unexported fields
}

func (Field_LONG_BLOB) Build

func (field Field_LONG_BLOB) Build() []byte

func (*Field_LONG_BLOB) Get

func (field *Field_LONG_BLOB) Get(proto *Proto)

func (Field_LONG_BLOB) GetType

func (field Field_LONG_BLOB) GetType() byte

func (Field_LONG_BLOB) PacketSize

func (field Field_LONG_BLOB) PacketSize() uint64

type Field_MEDIUM_BLOB

type Field_MEDIUM_BLOB struct {
	// contains filtered or unexported fields
}

func (Field_MEDIUM_BLOB) Build

func (field Field_MEDIUM_BLOB) Build() []byte

func (*Field_MEDIUM_BLOB) Get

func (field *Field_MEDIUM_BLOB) Get(proto *Proto)

func (Field_MEDIUM_BLOB) GetType

func (field Field_MEDIUM_BLOB) GetType() byte

func (Field_MEDIUM_BLOB) PacketSize

func (field Field_MEDIUM_BLOB) PacketSize() uint64

type Field_NEWDATE

type Field_NEWDATE struct {
	// contains filtered or unexported fields
}

func (Field_NEWDATE) Build

func (field Field_NEWDATE) Build() []byte

func (*Field_NEWDATE) Get

func (field *Field_NEWDATE) Get(proto *Proto)

func (Field_NEWDATE) GetType

func (field Field_NEWDATE) GetType() byte

func (Field_NEWDATE) PacketSize

func (field Field_NEWDATE) PacketSize() uint64

func (Field_NEWDATE) Size

func (field Field_NEWDATE) Size() uint64

type Field_NEWDECIMAL

type Field_NEWDECIMAL struct {
	// contains filtered or unexported fields
}

func (Field_NEWDECIMAL) Build

func (field Field_NEWDECIMAL) Build() []byte

func (*Field_NEWDECIMAL) Get

func (field *Field_NEWDECIMAL) Get(proto *Proto)

func (Field_NEWDECIMAL) GetType

func (field Field_NEWDECIMAL) GetType() byte

func (Field_NEWDECIMAL) PacketSize

func (field Field_NEWDECIMAL) PacketSize() uint64

type Field_NULL

type Field_NULL struct {
}

func (Field_NULL) Build

func (field Field_NULL) Build() []byte

func (*Field_NULL) Get

func (field *Field_NULL) Get(proto *Proto)

func (Field_NULL) GetType

func (field Field_NULL) GetType() byte

func (Field_NULL) PacketSize

func (field Field_NULL) PacketSize() uint64

type Field_SET

type Field_SET struct {
	// contains filtered or unexported fields
}

func (Field_SET) Build

func (field Field_SET) Build() []byte

func (*Field_SET) Get

func (field *Field_SET) Get(proto *Proto)

func (Field_SET) GetType

func (field Field_SET) GetType() byte

func (Field_SET) PacketSize

func (field Field_SET) PacketSize() uint64

type Field_SHORT

type Field_SHORT struct {
	// contains filtered or unexported fields
}

func (Field_SHORT) Build

func (field Field_SHORT) Build() []byte

func (*Field_SHORT) Get

func (field *Field_SHORT) Get(proto *Proto)

func (Field_SHORT) GetType

func (field Field_SHORT) GetType() byte

func (Field_SHORT) PacketSize

func (field Field_SHORT) PacketSize() uint64

type Field_STRING

type Field_STRING struct {
	// contains filtered or unexported fields
}

func (Field_STRING) Build

func (field Field_STRING) Build() []byte

func (*Field_STRING) Get

func (field *Field_STRING) Get(proto *Proto)

func (Field_STRING) GetType

func (field Field_STRING) GetType() byte

func (Field_STRING) PacketSize

func (field Field_STRING) PacketSize() uint64

type Field_TIME

type Field_TIME struct {
	// contains filtered or unexported fields
}

func (Field_TIME) Build

func (field Field_TIME) Build() []byte

func (*Field_TIME) Get

func (field *Field_TIME) Get(proto *Proto)

func (Field_TIME) GetType

func (field Field_TIME) GetType() byte

func (Field_TIME) PacketSize

func (field Field_TIME) PacketSize() uint64

func (Field_TIME) Size

func (field Field_TIME) Size() uint64

type Field_TIME2

type Field_TIME2 struct {
	// contains filtered or unexported fields
}

func (Field_TIME2) Build

func (field Field_TIME2) Build() []byte

func (*Field_TIME2) Get

func (field *Field_TIME2) Get(proto *Proto)

func (Field_TIME2) GetType

func (field Field_TIME2) GetType() byte

func (Field_TIME2) PacketSize

func (field Field_TIME2) PacketSize() uint64

func (Field_TIME2) Size

func (field Field_TIME2) Size() uint64

type Field_TIMESTAMP

type Field_TIMESTAMP struct {
	// contains filtered or unexported fields
}

func (Field_TIMESTAMP) Build

func (field Field_TIMESTAMP) Build() []byte

func (*Field_TIMESTAMP) Get

func (field *Field_TIMESTAMP) Get(proto *Proto)

func (Field_TIMESTAMP) GetType

func (field Field_TIMESTAMP) GetType() byte

func (Field_TIMESTAMP) PacketSize

func (field Field_TIMESTAMP) PacketSize() uint64

func (Field_TIMESTAMP) Size

func (field Field_TIMESTAMP) Size() uint64

type Field_TIMESTAMP2

type Field_TIMESTAMP2 struct {
	// contains filtered or unexported fields
}

func (Field_TIMESTAMP2) Build

func (field Field_TIMESTAMP2) Build() []byte

func (*Field_TIMESTAMP2) Get

func (field *Field_TIMESTAMP2) Get(proto *Proto)

func (Field_TIMESTAMP2) GetType

func (field Field_TIMESTAMP2) GetType() byte

func (Field_TIMESTAMP2) PacketSize

func (field Field_TIMESTAMP2) PacketSize() uint64

func (Field_TIMESTAMP2) Size

func (field Field_TIMESTAMP2) Size() uint64

type Field_TINY

type Field_TINY struct {
	// contains filtered or unexported fields
}

func (Field_TINY) Build

func (field Field_TINY) Build() []byte

func (*Field_TINY) Get

func (field *Field_TINY) Get(proto *Proto)

func (Field_TINY) GetType

func (field Field_TINY) GetType() byte

func (Field_TINY) PacketSize

func (field Field_TINY) PacketSize() uint64

type Field_TINY_BLOB

type Field_TINY_BLOB struct {
	// contains filtered or unexported fields
}

func (Field_TINY_BLOB) Build

func (field Field_TINY_BLOB) Build() []byte

func (*Field_TINY_BLOB) Get

func (field *Field_TINY_BLOB) Get(proto *Proto)

func (Field_TINY_BLOB) GetType

func (field Field_TINY_BLOB) GetType() byte

func (Field_TINY_BLOB) PacketSize

func (field Field_TINY_BLOB) PacketSize() uint64

type Field_VARCHAR

type Field_VARCHAR struct {
	// contains filtered or unexported fields
}

func (Field_VARCHAR) Build

func (field Field_VARCHAR) Build() []byte

func (*Field_VARCHAR) Get

func (field *Field_VARCHAR) Get(proto *Proto)

func (Field_VARCHAR) GetType

func (field Field_VARCHAR) GetType() byte

func (Field_VARCHAR) PacketSize

func (field Field_VARCHAR) PacketSize() uint64

type Field_VAR_STRING

type Field_VAR_STRING struct {
	// contains filtered or unexported fields
}

func (Field_VAR_STRING) Build

func (field Field_VAR_STRING) Build() []byte

func (*Field_VAR_STRING) Get

func (field *Field_VAR_STRING) Get(proto *Proto)

func (Field_VAR_STRING) GetType

func (field Field_VAR_STRING) GetType() byte

func (Field_VAR_STRING) PacketSize

func (field Field_VAR_STRING) PacketSize() uint64

type Field_YEAR

type Field_YEAR struct {
	// contains filtered or unexported fields
}

func (Field_YEAR) Build

func (field Field_YEAR) Build() []byte

func (*Field_YEAR) Get

func (field *Field_YEAR) Get(proto *Proto)

func (Field_YEAR) GetType

func (field Field_YEAR) GetType() byte

func (Field_YEAR) PacketSize

func (field Field_YEAR) PacketSize() uint64

type Field_interface

type Field_interface interface {
	Build() []byte
	Get(proto *Proto)
	GetType() byte
	PacketSize() uint64
}

type NULL_bitmap

type NULL_bitmap struct {
	// contains filtered or unexported fields
}

func (NULL_bitmap) BuildNullBitmap

func (null_bitmap NULL_bitmap) BuildNullBitmap() (val []byte)

func (NULL_bitmap) GetNullBitmapSize

func (null_bitmap NULL_bitmap) GetNullBitmapSize() uint64

func (NULL_bitmap) SetField

func (null_bitmap NULL_bitmap) SetField(field_pos uint16, null bool)

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

type Packet_AuthMoreData

type Packet_AuthMoreData struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_AuthMoreData) FromPacket

func (packet *Packet_AuthMoreData) FromPacket(context Context, data Proto)

func (Packet_AuthMoreData) GetPacketSize

func (packet Packet_AuthMoreData) GetPacketSize(context Context) (size uint64)

func (Packet_AuthMoreData) ToPacket

func (packet Packet_AuthMoreData) ToPacket(context Context) (data []byte)

type Packet_AuthSwitchRequest

type Packet_AuthSwitchRequest struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_AuthSwitchRequest) FromPacket

func (packet *Packet_AuthSwitchRequest) FromPacket(context Context, data Proto)

func (Packet_AuthSwitchRequest) GetPacketSize

func (packet Packet_AuthSwitchRequest) GetPacketSize(context Context) (size uint64)

func (Packet_AuthSwitchRequest) ToPacket

func (packet Packet_AuthSwitchRequest) ToPacket(context Context) (data []byte)

type Packet_AuthSwitchResponse

type Packet_AuthSwitchResponse struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_AuthSwitchResponse) FromPacket

func (packet *Packet_AuthSwitchResponse) FromPacket(context Context, data Proto)

func (Packet_AuthSwitchResponse) GetPacketSize

func (packet Packet_AuthSwitchResponse) GetPacketSize(context Context) (size uint64)

func (Packet_AuthSwitchResponse) ToPacket

func (packet Packet_AuthSwitchResponse) ToPacket(context Context) (data []byte)

type Packet_COM_CHANGE_USER

type Packet_COM_CHANGE_USER struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_CHANGE_USER) FromPacket

func (packet *Packet_COM_CHANGE_USER) FromPacket(context Context, data Proto)

func (Packet_COM_CHANGE_USER) GetPacketSize

func (packet Packet_COM_CHANGE_USER) GetPacketSize(context Context) (size uint64)

func (Packet_COM_CHANGE_USER) ToPacket

func (packet Packet_COM_CHANGE_USER) ToPacket(context Context) (data []byte)

type Packet_COM_CONNECT

type Packet_COM_CONNECT struct {
	Packet
}

func (*Packet_COM_CONNECT) FromPacket

func (packet *Packet_COM_CONNECT) FromPacket(context Context, data Proto)

func (Packet_COM_CONNECT) GetPacketSize

func (packet Packet_COM_CONNECT) GetPacketSize(context Context) (size uint64)

func (Packet_COM_CONNECT) ToPacket

func (packet Packet_COM_CONNECT) ToPacket(context Context) (data []byte)

type Packet_COM_CREATE_DB

type Packet_COM_CREATE_DB struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_CREATE_DB) FromPacket

func (packet *Packet_COM_CREATE_DB) FromPacket(context Context, data Proto)

func (Packet_COM_CREATE_DB) GetPacketSize

func (packet Packet_COM_CREATE_DB) GetPacketSize(context Context) (size uint64)

func (Packet_COM_CREATE_DB) ToPacket

func (packet Packet_COM_CREATE_DB) ToPacket(context Context) (data []byte)

type Packet_COM_DAEMON

type Packet_COM_DAEMON struct {
	Packet
}

func (*Packet_COM_DAEMON) FromPacket

func (packet *Packet_COM_DAEMON) FromPacket(context Context, data Proto)

func (Packet_COM_DAEMON) GetPacketSize

func (packet Packet_COM_DAEMON) GetPacketSize(context Context) (size uint64)

func (Packet_COM_DAEMON) ToPacket

func (packet Packet_COM_DAEMON) ToPacket(context Context) (data []byte)

type Packet_COM_DEBUG

type Packet_COM_DEBUG struct {
	Packet
}

func (*Packet_COM_DEBUG) FromPacket

func (packet *Packet_COM_DEBUG) FromPacket(context Context, data Proto)

func (Packet_COM_DEBUG) GetPacketSize

func (packet Packet_COM_DEBUG) GetPacketSize(context Context) (size uint64)

func (Packet_COM_DEBUG) ToPacket

func (packet Packet_COM_DEBUG) ToPacket(context Context) (data []byte)

type Packet_COM_DELAYED_INSERT

type Packet_COM_DELAYED_INSERT struct {
	Packet
}

func (*Packet_COM_DELAYED_INSERT) FromPacket

func (packet *Packet_COM_DELAYED_INSERT) FromPacket(context Context, data Proto)

func (Packet_COM_DELAYED_INSERT) GetPacketSize

func (packet Packet_COM_DELAYED_INSERT) GetPacketSize(context Context) (size uint64)

func (Packet_COM_DELAYED_INSERT) ToPacket

func (packet Packet_COM_DELAYED_INSERT) ToPacket(context Context) (data []byte)

type Packet_COM_DROP_DB

type Packet_COM_DROP_DB struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_DROP_DB) FromPacket

func (packet *Packet_COM_DROP_DB) FromPacket(context Context, data Proto)

func (Packet_COM_DROP_DB) GetPacketSize

func (packet Packet_COM_DROP_DB) GetPacketSize(context Context) (size uint64)

func (Packet_COM_DROP_DB) ToPacket

func (packet Packet_COM_DROP_DB) ToPacket(context Context) (data []byte)

type Packet_COM_FIELD_LIST

type Packet_COM_FIELD_LIST struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_FIELD_LIST) FromPacket

func (packet *Packet_COM_FIELD_LIST) FromPacket(context Context, data Proto)

func (Packet_COM_FIELD_LIST) GetPacketSize

func (packet Packet_COM_FIELD_LIST) GetPacketSize(context Context) (size uint64)

func (Packet_COM_FIELD_LIST) ToPacket

func (packet Packet_COM_FIELD_LIST) ToPacket(context Context) (data []byte)

type Packet_COM_INIT_DB

type Packet_COM_INIT_DB struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_INIT_DB) FromPacket

func (packet *Packet_COM_INIT_DB) FromPacket(context Context, data Proto)

func (Packet_COM_INIT_DB) GetPacketSize

func (packet Packet_COM_INIT_DB) GetPacketSize(context Context) (size uint64)

func (Packet_COM_INIT_DB) ToPacket

func (packet Packet_COM_INIT_DB) ToPacket(context Context) (data []byte)

type Packet_COM_PING

type Packet_COM_PING struct {
	Packet
}

func (*Packet_COM_PING) FromPacket

func (packet *Packet_COM_PING) FromPacket(context Context, data Proto)

func (Packet_COM_PING) GetPacketSize

func (packet Packet_COM_PING) GetPacketSize(context Context) (size uint64)

func (Packet_COM_PING) ToPacket

func (packet Packet_COM_PING) ToPacket(context Context) (data []byte)

type Packet_COM_PROCESS_INFO

type Packet_COM_PROCESS_INFO struct {
	Packet
}

func (*Packet_COM_PROCESS_INFO) FromPacket

func (packet *Packet_COM_PROCESS_INFO) FromPacket(context Context, data Proto)

func (Packet_COM_PROCESS_INFO) GetPacketSize

func (packet Packet_COM_PROCESS_INFO) GetPacketSize(context Context) (size uint64)

func (Packet_COM_PROCESS_INFO) ToPacket

func (packet Packet_COM_PROCESS_INFO) ToPacket(context Context) (data []byte)

type Packet_COM_PROCESS_KILL

type Packet_COM_PROCESS_KILL struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_PROCESS_KILL) FromPacket

func (packet *Packet_COM_PROCESS_KILL) FromPacket(context Context, data Proto)

func (Packet_COM_PROCESS_KILL) GetPacketSize

func (packet Packet_COM_PROCESS_KILL) GetPacketSize(context Context) (size uint64)

func (Packet_COM_PROCESS_KILL) ToPacket

func (packet Packet_COM_PROCESS_KILL) ToPacket(context Context) (data []byte)

type Packet_COM_QUERY

type Packet_COM_QUERY struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_QUERY) FromPacket

func (packet *Packet_COM_QUERY) FromPacket(context Context, data Proto)

func (Packet_COM_QUERY) GetPacketSize

func (packet Packet_COM_QUERY) GetPacketSize(context Context) (size uint64)

func (Packet_COM_QUERY) ToPacket

func (packet Packet_COM_QUERY) ToPacket(context Context) (data []byte)

type Packet_COM_QUIT

type Packet_COM_QUIT struct {
	Packet
}

func (*Packet_COM_QUIT) FromPacket

func (packet *Packet_COM_QUIT) FromPacket(context Context, data Proto)

func (Packet_COM_QUIT) GetPacketSize

func (packet Packet_COM_QUIT) GetPacketSize(context Context) (size uint64)

func (Packet_COM_QUIT) ToPacket

func (packet Packet_COM_QUIT) ToPacket(context Context) (data []byte)

type Packet_COM_REFRESH

type Packet_COM_REFRESH struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_REFRESH) FromPacket

func (packet *Packet_COM_REFRESH) FromPacket(context Context, data Proto)

func (Packet_COM_REFRESH) GetPacketSize

func (packet Packet_COM_REFRESH) GetPacketSize(context Context) (size uint64)

func (Packet_COM_REFRESH) ToPacket

func (packet Packet_COM_REFRESH) ToPacket(context Context) (data []byte)

type Packet_COM_RESET_CONNECTION

type Packet_COM_RESET_CONNECTION struct {
	Packet
}

func (*Packet_COM_RESET_CONNECTION) FromPacket

func (packet *Packet_COM_RESET_CONNECTION) FromPacket(context Context, data Proto)

func (Packet_COM_RESET_CONNECTION) GetPacketSize

func (packet Packet_COM_RESET_CONNECTION) GetPacketSize(context Context) (size uint64)

func (Packet_COM_RESET_CONNECTION) ToPacket

func (packet Packet_COM_RESET_CONNECTION) ToPacket(context Context) (data []byte)

type Packet_COM_SET_OPTION

type Packet_COM_SET_OPTION struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_SET_OPTION) FromPacket

func (packet *Packet_COM_SET_OPTION) FromPacket(context Context, data Proto)

func (Packet_COM_SET_OPTION) GetPacketSize

func (packet Packet_COM_SET_OPTION) GetPacketSize(context Context) (size uint64)

func (Packet_COM_SET_OPTION) ToPacket

func (packet Packet_COM_SET_OPTION) ToPacket(context Context) (data []byte)

type Packet_COM_SHUTDOWN

type Packet_COM_SHUTDOWN struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_SHUTDOWN) FromPacket

func (packet *Packet_COM_SHUTDOWN) FromPacket(context Context, data Proto)

func (Packet_COM_SHUTDOWN) GetPacketSize

func (packet Packet_COM_SHUTDOWN) GetPacketSize(context Context) (size uint64)

func (Packet_COM_SHUTDOWN) ToPacket

func (packet Packet_COM_SHUTDOWN) ToPacket(context Context) (data []byte)

type Packet_COM_SLEEP

type Packet_COM_SLEEP struct {
	Packet
}

func (*Packet_COM_SLEEP) FromPacket

func (packet *Packet_COM_SLEEP) FromPacket(context Context, data Proto)

func (Packet_COM_SLEEP) GetPacketSize

func (packet Packet_COM_SLEEP) GetPacketSize(context Context) (size uint64)

func (Packet_COM_SLEEP) ToPacket

func (packet Packet_COM_SLEEP) ToPacket(context Context) (data []byte)

type Packet_COM_STATISTICS

type Packet_COM_STATISTICS struct {
	Packet
}

func (*Packet_COM_STATISTICS) FromPacket

func (packet *Packet_COM_STATISTICS) FromPacket(context Context, data Proto)

func (Packet_COM_STATISTICS) GetPacketSize

func (packet Packet_COM_STATISTICS) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STATISTICS) ToPacket

func (packet Packet_COM_STATISTICS) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_CLOSE

type Packet_COM_STMT_CLOSE struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_CLOSE) FromPacket

func (packet *Packet_COM_STMT_CLOSE) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_CLOSE) GetPacketSize

func (packet Packet_COM_STMT_CLOSE) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_CLOSE) ToPacket

func (packet Packet_COM_STMT_CLOSE) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_EXECUTE

type Packet_COM_STMT_EXECUTE struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_EXECUTE) FromPacket

func (packet *Packet_COM_STMT_EXECUTE) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_EXECUTE) GetPacketSize

func (packet Packet_COM_STMT_EXECUTE) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_EXECUTE) ToPacket

func (packet Packet_COM_STMT_EXECUTE) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_FETCH

type Packet_COM_STMT_FETCH struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_FETCH) FromPacket

func (packet *Packet_COM_STMT_FETCH) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_FETCH) GetPacketSize

func (packet Packet_COM_STMT_FETCH) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_FETCH) ToPacket

func (packet Packet_COM_STMT_FETCH) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_PREPARE

type Packet_COM_STMT_PREPARE struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_PREPARE) FromPacket

func (packet *Packet_COM_STMT_PREPARE) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_PREPARE) GetPacketSize

func (packet Packet_COM_STMT_PREPARE) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_PREPARE) ToPacket

func (packet Packet_COM_STMT_PREPARE) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_PREPARE_OK

type Packet_COM_STMT_PREPARE_OK struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_PREPARE_OK) FromPacket

func (packet *Packet_COM_STMT_PREPARE_OK) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_PREPARE_OK) GetPacketSize

func (packet Packet_COM_STMT_PREPARE_OK) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_PREPARE_OK) ToPacket

func (packet Packet_COM_STMT_PREPARE_OK) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_RESET

type Packet_COM_STMT_RESET struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_RESET) FromPacket

func (packet *Packet_COM_STMT_RESET) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_RESET) GetPacketSize

func (packet Packet_COM_STMT_RESET) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_RESET) ToPacket

func (packet Packet_COM_STMT_RESET) ToPacket(context Context) (data []byte)

type Packet_COM_STMT_SEND_LONG_DATA

type Packet_COM_STMT_SEND_LONG_DATA struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_COM_STMT_SEND_LONG_DATA) FromPacket

func (packet *Packet_COM_STMT_SEND_LONG_DATA) FromPacket(context Context, data Proto)

func (Packet_COM_STMT_SEND_LONG_DATA) GetPacketSize

func (packet Packet_COM_STMT_SEND_LONG_DATA) GetPacketSize(context Context) (size uint64)

func (Packet_COM_STMT_SEND_LONG_DATA) ToPacket

func (packet Packet_COM_STMT_SEND_LONG_DATA) ToPacket(context Context) (data []byte)

type Packet_COM_TIME

type Packet_COM_TIME struct {
	Packet
}

func (*Packet_COM_TIME) FromPacket

func (packet *Packet_COM_TIME) FromPacket(context Context, data Proto)

func (Packet_COM_TIME) GetPacketSize

func (packet Packet_COM_TIME) GetPacketSize(context Context) (size uint64)

func (Packet_COM_TIME) ToPacket

func (packet Packet_COM_TIME) ToPacket(context Context) (data []byte)

type Packet_ColumnDefinition320

type Packet_ColumnDefinition320 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_ColumnDefinition320) FromPacket

func (packet *Packet_ColumnDefinition320) FromPacket(context Context, data Proto)

func (Packet_ColumnDefinition320) GetPacketSize

func (packet Packet_ColumnDefinition320) GetPacketSize(context Context) (size uint64)

func (Packet_ColumnDefinition320) ToPacket

func (packet Packet_ColumnDefinition320) ToPacket(context Context) (data []byte)

type Packet_ColumnDefinition41

type Packet_ColumnDefinition41 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_ColumnDefinition41) FromPacket

func (packet *Packet_ColumnDefinition41) FromPacket(context Context, data Proto)

func (Packet_ColumnDefinition41) GetPacketSize

func (packet Packet_ColumnDefinition41) GetPacketSize(context Context) (size uint64)

func (Packet_ColumnDefinition41) ToPacket

func (packet Packet_ColumnDefinition41) ToPacket(context Context) (data []byte)

type Packet_EOF

type Packet_EOF struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_EOF) FromPacket

func (packet *Packet_EOF) FromPacket(context Context, data Proto)

func (Packet_EOF) GetPacketSize

func (packet Packet_EOF) GetPacketSize(context Context) (size uint64)

func (Packet_EOF) ToPacket

func (packet Packet_EOF) ToPacket(context Context) (data []byte)

type Packet_ERR

type Packet_ERR struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_ERR) FromPacket

func (packet *Packet_ERR) FromPacket(context Context, data Proto)

func (Packet_ERR) GetPacketSize

func (packet Packet_ERR) GetPacketSize(context Context) (size uint64)

func (Packet_ERR) ToPacket

func (packet Packet_ERR) ToPacket(context Context) (data []byte)

type Packet_HandshakeResponse320

type Packet_HandshakeResponse320 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_HandshakeResponse320) FromPacket

func (packet *Packet_HandshakeResponse320) FromPacket(context Context, data Proto)

func (Packet_HandshakeResponse320) GetPacketSize

func (packet Packet_HandshakeResponse320) GetPacketSize(context Context) (size uint64)

func (Packet_HandshakeResponse320) ToPacket

func (packet Packet_HandshakeResponse320) ToPacket(context Context) (data []byte)

type Packet_HandshakeResponse41

type Packet_HandshakeResponse41 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_HandshakeResponse41) FromPacket

func (packet *Packet_HandshakeResponse41) FromPacket(context Context, data Proto)

func (Packet_HandshakeResponse41) GetPacketSize

func (packet Packet_HandshakeResponse41) GetPacketSize(context Context) (size uint64)

func (Packet_HandshakeResponse41) ToPacket

func (packet Packet_HandshakeResponse41) ToPacket(context Context) (data []byte)

type Packet_HandshakeV10

type Packet_HandshakeV10 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_HandshakeV10) FromPacket

func (packet *Packet_HandshakeV10) FromPacket(context Context, data Proto)

func (Packet_HandshakeV10) GetPacketSize

func (packet Packet_HandshakeV10) GetPacketSize(context Context) (size uint64)

func (Packet_HandshakeV10) ToPacket

func (packet Packet_HandshakeV10) ToPacket(context Context) (data []byte)

type Packet_HandshakeV9

type Packet_HandshakeV9 struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_HandshakeV9) FromPacket

func (packet *Packet_HandshakeV9) FromPacket(context Context, data Proto)

func (Packet_HandshakeV9) GetPacketSize

func (packet Packet_HandshakeV9) GetPacketSize(context Context) (size uint64)

func (Packet_HandshakeV9) ToPacket

func (packet Packet_HandshakeV9) ToPacket(context Context) (data []byte)

type Packet_LOCAL_INFILE_Data

type Packet_LOCAL_INFILE_Data struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_LOCAL_INFILE_Data) FromPacket

func (packet *Packet_LOCAL_INFILE_Data) FromPacket(context Context, data Proto)

func (Packet_LOCAL_INFILE_Data) GetPacketSize

func (packet Packet_LOCAL_INFILE_Data) GetPacketSize(context Context) (size uint64)

func (Packet_LOCAL_INFILE_Data) ToPacket

func (packet Packet_LOCAL_INFILE_Data) ToPacket(context Context) (data []byte)

type Packet_LOCAL_INFILE_Request

type Packet_LOCAL_INFILE_Request struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_LOCAL_INFILE_Request) FromPacket

func (packet *Packet_LOCAL_INFILE_Request) FromPacket(context Context, data Proto)

func (Packet_LOCAL_INFILE_Request) GetPacketSize

func (packet Packet_LOCAL_INFILE_Request) GetPacketSize(context Context) (size uint64)

func (Packet_LOCAL_INFILE_Request) ToPacket

func (packet Packet_LOCAL_INFILE_Request) ToPacket(context Context) (data []byte)

type Packet_OK

type Packet_OK struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_OK) FromPacket

func (packet *Packet_OK) FromPacket(context Context, data Proto)

func (Packet_OK) GetPacketSize

func (packet Packet_OK) GetPacketSize(context Context) (size uint64)

func (Packet_OK) ToPacket

func (packet Packet_OK) ToPacket(context Context) (data []byte)

type Packet_OldAuthSwitchRequest

type Packet_OldAuthSwitchRequest struct {
	Packet
}

func (*Packet_OldAuthSwitchRequest) FromPacket

func (packet *Packet_OldAuthSwitchRequest) FromPacket(context Context, data Proto)

func (Packet_OldAuthSwitchRequest) GetPacketSize

func (packet Packet_OldAuthSwitchRequest) GetPacketSize(context Context) (size uint64)

func (Packet_OldAuthSwitchRequest) ToPacket

func (packet Packet_OldAuthSwitchRequest) ToPacket(context Context) (data []byte)

type Packet_SSLRequest

type Packet_SSLRequest struct {
	Packet
	// contains filtered or unexported fields
}

func (*Packet_SSLRequest) FromPacket

func (packet *Packet_SSLRequest) FromPacket(context Context, data Proto)

func (Packet_SSLRequest) GetPacketSize

func (packet Packet_SSLRequest) GetPacketSize(context Context) (size uint64)

func (Packet_SSLRequest) ToPacket

func (packet Packet_SSLRequest) ToPacket(context Context) (data []byte)

type Packet_interface

type Packet_interface interface {
	GetPacketSize(Context) uint64
	ToPacket(Context) []byte
	FromPacket(Context, Proto)
}

type Proto

type Proto struct {
	// contains filtered or unexported fields
}

func DecompressPacket

func DecompressPacket(input Proto) (output Proto)

func DecryptPacket

func DecryptPacket(input Proto) (output Proto)

func (*Proto) ExtractSlice

func (proto *Proto) ExtractSlice(size uint) (data []byte)

func (*Proto) GetAttributes

func (proto *Proto) GetAttributes() (attributes Attributes)

func (*Proto) GetField

func (proto *Proto) GetField(field_type byte) (field Field_interface)

func (*Proto) GetFixedLengthInteger1

func (proto *Proto) GetFixedLengthInteger1() (value uint8)

func (*Proto) GetFixedLengthInteger2

func (proto *Proto) GetFixedLengthInteger2() (value uint16)

func (*Proto) GetFixedLengthInteger3

func (proto *Proto) GetFixedLengthInteger3() (value uint32)

func (*Proto) GetFixedLengthInteger4

func (proto *Proto) GetFixedLengthInteger4() (value uint32)

func (*Proto) GetFixedLengthInteger6

func (proto *Proto) GetFixedLengthInteger6() (value uint64)

func (*Proto) GetFixedLengthInteger8

func (proto *Proto) GetFixedLengthInteger8() (value uint64)

func (*Proto) GetFixedLengthString

func (proto *Proto) GetFixedLengthString(size ...uint) (value string)

func (*Proto) GetLengthEncodedInteger

func (proto *Proto) GetLengthEncodedInteger() (value uint64)

func (*Proto) GetLengthEncodedString

func (proto *Proto) GetLengthEncodedString() (value string)

func (*Proto) GetNulTerminatedString

func (proto *Proto) GetNulTerminatedString() (value string)

func (*Proto) GetNullBitmap

func (proto *Proto) GetNullBitmap(num_fields uint16, offset uint8) (null_bitmap NULL_bitmap)

func (*Proto) HasRemainingData

func (proto *Proto) HasRemainingData() bool

Source Files

Jump to

Keyboard shortcuts

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