Documentation ¶
Index ¶
Constants ¶
View Source
const ClientVersionHeader = "X-client-version"
ClientVersionHeader is the header name of client version
Variables ¶
This section is empty.
Functions ¶
func AuthenticateMiddleware ¶
func AuthenticateMiddleware(capture capture.Capture) gin.HandlerFunc
AuthenticateMiddleware authenticates the request by query upstream TiDB.
func CheckServerReadyMiddleware ¶
func CheckServerReadyMiddleware(capture capture.Capture) gin.HandlerFunc
CheckServerReadyMiddleware checks if the server is ready
func ErrorHandleMiddleware ¶
func ErrorHandleMiddleware() gin.HandlerFunc
ErrorHandleMiddleware puts the error into response
func ForwardToOwnerMiddleware ¶
func ForwardToOwnerMiddleware(p capture.Capture) gin.HandlerFunc
ForwardToOwnerMiddleware forward a request to controller if current server is not controller, or handle it locally.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.