tiproxyapi

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TiProxyClient

type TiProxyClient interface {
	// IsHealthy checks if the TiProxy is healthy.
	IsHealthy(ctx context.Context) (bool, error)
	// SetLabels sets the labels for TiProxy.
	SetLabels(ctx context.Context, labels map[string]string) error
}

TiProxyClient is the interface that knows how to control tiproxy clusters.

func NewTiProxyClient

func NewTiProxyClient(url string, timeout time.Duration, tlsConfig *tls.Config) TiProxyClient

NewTiProxyClient returns a new TiProxyClient.

Jump to

Keyboard shortcuts

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