resourcegrouptag

package
v1.1.0-beta.0...-33f0727 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeResourceGroupTag

func DecodeResourceGroupTag(data []byte) (sqlDigest []byte, err error)

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

func GetFirstKeyFromRequest(req *tikvrpc.Request) (firstKey []byte)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL