models

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Host           string
	Port           int
	Conn           net.Conn
	ID             uint64
	EnableDecoding bool
}

Connection represents a proxy connection to a MySQL server.

func (*Connection) Read

func (c *Connection) Read(p []byte) (int, error)

func (*Connection) Write

func (c *Connection) Write(p []byte) (int, error)

type Proxy

type Proxy struct {
	Host           string
	Port           int
	UseSSL         bool
	ConnectionID   uint64
	EnableDecoding bool
	Ctx            context.Context
	ShutDownAsked  bool
}

Proxy represents the proxy server configuration and state.

Jump to

Keyboard shortcuts

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