package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
CreateSessionToken creates a token for the proxy.
ReloadSigningCert is used to load the certificate periodically in a separate goroutine.
SetCertPath sets the path of key.pem and force load the certificate again.
SetKeyPath sets the path of key.pem and force load the certificate again.
ValidateSessionToken validates the token sent from the proxy.
# Constants
LoadCertInterval is the interval of reloading the certificate.
StateBinding represents session SQL bindings.
StatePrepareStmt represents prepared statements.
# Variables
ErrCannotMigrateSession indicates the session cannot be migrated.
# Structs
LastDDLInfo represents the information of last DDL.
PreparedStmtInfo contains the information about prepared statements, both text and binary protocols.
QueryInfo represents the information of last executed query.
SessionStates contains all the states in the session that should be migrated when the session is migrated to another server.
SessionToken represents the token used to authenticate with the new server.
# Type aliases
SessionStateType is the type of session states.