Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConn ¶
type AuthConn interface { // WriteAuthMoreData should write a (u8)1 before data. // also see `client_mpvio_read_packet` in the MySQL client. It'll ignore the first byte if it's 1. WriteAuthMoreData(data []byte) error // ReadPacket reads one more packet. // also see `client_mpvio_write_packet` in the MySQL client. It's just a normal packet without any prefixing. // NOTE: the first packet returned by the client is appended in the `Protocol::AuthSwitchResponse`, also see `client_mpvio_write_packet`. ReadPacket() ([]byte, error) // Flush flushes all packets in the connection and sends them to the client Flush(ctx context.Context) error }
AuthConn is an interface to help auth plugin to communicate with the client.
Click to show internal directories.
Click to hide internal directories.