package
5.5.0-alpha+incompatible
Repository: https://github.com/tikv/pd.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

DeferClose captures the error returned from closing (if an error occurs).
ErrorResp Respond to the client about the given error, integrating with errcode.ErrorCode.
GetComponentNameOnHTTP returns component name from Request Header.
NewComponentSignatureRoundTripper returns a new ComponentSignatureRoundTripper.
ParseUint64VarsField connects strconv.ParseUint with request variables It hardcodes the base to 10 and bit size to 64 Any error returned will connect the requested field to the error via FieldError.
ReadJSON reads a JSON data from r and then closes it.
ReadJSONRespondError writes json into data.

# Structs

ComponentSignatureRoundTripper is used to add component signature in HTTP header.
FieldError connects an error to a particular field.
JSONError lets callers check for just one error type.