# Functions
NewServer creates the proxy server.
WithConfigData saves the data from the config file.
No description provided by the author
WithRuntime sets the runtime of proxy server.
WithTest set the test field to true.
WithTLSCAFile sets the CA file.
WithTLSCertFile sets the cert file.
WithTLSEnabled enable the TLS.
WithTLSKeyFile sets the key file.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
ProxyProtocolV2Signature is the signature of the Proxy Protocol version 2 header.
No description provided by the author
No description provided by the author
No description provided by the author
TypeKillQuery indicates the kill query statement.
TypeMin is the minimal event type.
TypeSetVar indicates the set variable statement.
TypeUpgrade indicates the "upgrade account all" statement.
# Variables
EmptyTenant is an empty tenant.
No description provided by the author
No description provided by the author
# Structs
CNServer represents the backend CN server, including salt, tenant, uuid and address.
Config is the configuration of proxy server.
MySQLConn contains a buffer to save data which may be only part of a packet.
No description provided by the author
ProxyAddr contains the source and target address.
ProxyHeaderV2 is the structure of the Proxy Protocol version 2 header.
No description provided by the author
# Interfaces
ClientConn is the connection to the client.
IEvent is the event interface.
Plugin is the interface of proxy plugin.
RefreshableRouter is a router that can be refreshed to get latest route strategy.
Router is an interface to select CN server and connects to it.
ServerConn is the connection to the backend server.
SQLRouter routes connections with SQL query.
SQLWorker is the interface which contains methods to init the SQL worker.
No description provided by the author
# Type aliases
LabelHash defines hash value, which is hashed from labelInfo.
MySQLCmd is the type indicate the cmd of statement.
Option is used to set up configuration.
No description provided by the author
Tenant defines alias tenant name type of string.