Documentation ¶
Index ¶
- func DecodeResourceGroupTag(data []byte) (sqlDigest []byte, err error)
- func EncodeResourceGroupTag(sqlDigest, planDigest *parser.Digest, label tipb.ResourceGroupTagLabel) []byte
- func GetFirstKeyFromRequest(req *tikvrpc.Request) (firstKey []byte)
- func GetResourceGroupLabelByKey(key []byte) tipb.ResourceGroupTagLabel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResourceGroupTag ¶
DecodeResourceGroupTag decodes a resource group tag and return the sql digest.
func EncodeResourceGroupTag ¶
func EncodeResourceGroupTag(sqlDigest, planDigest *parser.Digest, label tipb.ResourceGroupTagLabel) []byte
EncodeResourceGroupTag encodes sql digest and plan digest into resource group tag.
func GetFirstKeyFromRequest ¶
GetFirstKeyFromRequest gets the first Key of the request from tikvrpc.Request.
func GetResourceGroupLabelByKey ¶
func GetResourceGroupLabelByKey(key []byte) tipb.ResourceGroupTagLabel
GetResourceGroupLabelByKey determines the tipb.ResourceGroupTagLabel of key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.