Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Username string
Password string
Host string
Port int
Database string
GrpcPort int
GrpcHost string
GrpcTLS bool
SslCaPath string
SslCertPath string
SslKeyPath string
}
Config describes a connection to a Vitess cluster through vtgate. Vitess speaks the MySQL wire protocol, so the actual database connection reuses the MySQL driver; only the ingestr URI scheme differs (ingestr now routes Vitess purely by the "vitess" scheme).
func (Config) GetIngestrURI ¶
GetIngestrURI builds the ingestr source/destination URI. It emits the dedicated "vitess" scheme (not "mysql"); ingestr rejects "mysql://" pointed at a Vitess server. The vtgate gRPC settings and SSL paths are carried as query params so they survive into ingestr's CDC scheme (vitess+cdc://), which the ingestr operator derives by appending "+cdc" to this scheme.
func (Config) ToDBConnectionURI ¶
ToDBConnectionURI builds the go-sql-driver/mysql DSN used to open a direct connection (e.g. for `bruin connections test`). Vitess is reached over vtgate's MySQL-protocol port.