Documentation ¶
Index ¶
- type BufPool
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) ReadPacket() ([]byte, error)
- func (c *Conn) ReadPacketReuseMem(dst []byte) ([]byte, error)
- func (c *Conn) ReadPacketTo(w io.Writer) error
- func (c *Conn) ResetSequence()
- func (c *Conn) WriteAuthSwitchPacket(authData []byte, addNUL bool) error
- func (c *Conn) WriteClearAuthPacket(password string) error
- func (c *Conn) WriteEncryptedPassword(password string, seed []byte, pub *rsa.PublicKey) error
- func (c *Conn) WritePacket(data []byte) error
- func (c *Conn) WritePublicKeyAuthPacket(password string, cipher []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufPool ¶
type BufPool struct {
// contains filtered or unexported fields
}
func NewBufPool ¶
func NewBufPool() *BufPool
type Conn ¶
Conn is the base class to handle MySQL protocol.
func NewTLSConn ¶
func (*Conn) ReadPacket ¶
func (*Conn) ResetSequence ¶
func (c *Conn) ResetSequence()
func (*Conn) WriteAuthSwitchPacket ¶
func (*Conn) WriteClearAuthPacket ¶
WriteClearAuthPacket: Client clear text authentication packet http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchResponse
func (*Conn) WriteEncryptedPassword ¶
func (*Conn) WritePacket ¶
WritePacket: data already has 4 bytes header will modify data inplace
func (*Conn) WritePublicKeyAuthPacket ¶
WritePublicKeyAuthPacket: Caching sha2 authentication. Public key request and send encrypted password http://dev.mysql.com/doc/internals/en/connection-phase-packets.html#packet-Protocol::AuthSwitchResponse
Click to show internal directories.
Click to hide internal directories.