package
0.2.0
Repository: https://github.com/pingcap/tiproxy.git
Documentation: pkg.go.dev

# Functions

NewBackendObserver creates a BackendObserver.
No description provided by the author
No description provided by the author
NewScoreBasedRouter creates a ScoreBasedRouter.
No description provided by the author
No description provided by the author
StartBackendObserver creates a BackendObserver and starts watching.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
BackendInfo stores the status info of each backend.
BackendObserver refreshes backend list and notifies BackendEventReceiver.
No description provided by the author
No description provided by the author
PDFetcher fetches backend list from PD.
ScoreBasedRouter is an implementation of Router interface.
StaticFetcher uses configured static addrs.
No description provided by the author

# Interfaces

BackendEventReceiver receives the event of backend status change.
BackendFetcher is an interface to fetch the backend list.
BackendInst defines a backend that a connection is redirecting to.
ConnEventReceiver receives connection events.
HealthCheck is used to check the backends of one backend.
RedirectableConn indicates a redirect-able connection.
Router routes client connections to backends.
TopologyFetcher is an interface to fetch the tidb topology from ETCD.

# Type aliases

No description provided by the author