Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) ReadPacket() ([]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 Conn ¶
Conn is the base class to handle MySQL protocol.
func (*Conn) ReadPacket ¶
func (*Conn) ResetSequence ¶
func (c *Conn) ResetSequence()
func (*Conn) WriteAuthSwitchPacket ¶
func (*Conn) WriteClearAuthPacket ¶
Client clear text authentication packet
func (*Conn) WriteEncryptedPassword ¶
func (*Conn) WritePacket ¶
data already has 4 bytes header will modify data inplace
func (*Conn) WritePublicKeyAuthPacket ¶
Caching sha2 authentication. Public key request and send encrypted password
Click to show internal directories.
Click to hide internal directories.