# Functions
NewServer creates the proxy server.
No description provided by the author
WithRuntime sets the runtime of proxy server.
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.
TypeDropAccount indicates the drop account statement.
TypeKillQuery indicates the kill query statement.
TypeMin is the minimal event type.
TypeSetVar indicates the set variable statement.
TypeSuspendAccount indicates the suspend account statement.
# Variables
EmptyTenant is an empty tenant.
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.
Router is an interface to select CN server and connects to it.
ServerConn is the connection to the backend server.