conn

package
v1.1.0-beta.0...-cc83417 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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