proxy

package
v0.0.0-...-f04b8cf Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableDecoding

func EnableDecoding(p *models.Proxy)

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.

func NewProxy

func NewProxy(ctx context.Context, host string, port int, useSSL bool) *models.Proxy

NewProxy creates a new instance of the Proxy server with optional SSL configuration.

func StartProxy

func StartProxy(p *models.Proxy, port int) error

StartProxy starts the proxy server listening for incoming connections.

Types

This section is empty.

Jump to

Keyboard shortcuts

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