Help us shape the future of Go! Take the 2026 Go Developer Survey

vitess

package
v0.11.783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (c Config) GetIngestrURI() string

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

func (c Config) ToDBConnectionURI() string

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.

Jump to

Keyboard shortcuts

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