Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Proxy Proxy `toml:"proxy"`
API API `toml:"api"`
Security Security `toml:"security"`
Labels map[string]string `toml:"labels"`
}
Config is a subset config of TiProxy. Only TiDB Operator managed fields are defined here. ref: https://docs.pingcap.com/tidb/stable/tiproxy-configuration/
type Security ¶
type Security struct {
// ServerSQLTLS is used to provide TLS between TiProxy and MySQL client.
ServerSQLTLS TLSConfig `toml:"server-tls,omitempty"`
// ServerHTTPTLS is used to provide TLS on HTTP status port.
ServerHTTPTLS TLSConfig `toml:"server-http-tls,omitempty"`
// ClusterTLS is used to access TiDB or PD.
ClusterTLS TLSConfig `toml:"cluster-tls,omitempty"`
// SQLTLS is used to access TiDB SQL port.
SQLTLS TLSConfig `toml:"sql-tls,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.