Documentation
¶
Index ¶
- func EnableDecoding(p *models.Proxy)
- func HandleConnection(c *models.Connection) error
- func NewConnection(host string, port int, conn net.Conn, id uint64, enableDecoding bool) *models.Connection
- func NewProxy(ctx context.Context, host string, port int, useSSL bool) *models.Proxy
- func StartProxy(p *models.Proxy, port int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableDecoding ¶
EnableDecoding enables protocol decoding for the proxy.
func HandleConnection ¶
func HandleConnection(c *models.Connection) error
HandleConnection starts the proxy connection, handling data transfer and optional protocol decoding.
func NewConnection ¶
func NewConnection(host string, port int, conn net.Conn, id uint64, enableDecoding bool) *models.Connection
NewConnection creates a new proxy connection to the target MySQL server.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.