package
9.0.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev

# Functions

Add will add a new attribute, with validation of all attributes.
CompatibleWith will check if two constraints are compatible.
NewLabel creates a new label for a given string.
NewLabels creates a slice of Label for given attributes.
NewRule creates a rule.
NewRulePatch returns a patch of rules which need to be set or deleted.
RestoreRegionLabel converts a Attribute to a string.
RestoreRegionLabels converts Attributes to a string.

# Constants

AttributesCompatible indicates two attributes are compatible.
AttributesDuplicated indicates two attributes are duplicated.
AttributesIncompatible indicates two attributes are incompatible.
IDPrefix is the prefix for label rule ID.
RuleIndexDatabase is the index for a rule of database.
RuleIndexDefault is the default index for a rule.
RuleIndexPartition is the index for a rule of partition.
RuleIndexTable is the index for a rule of table.

# Variables

ErrInvalidAttributesFormat is from attributes.go.
PartitionIDFormat is the format of the label rule ID for a partition.
TableIDFormat is the format of the label rule ID for a table.

# Type aliases

AttributesCompatibility is the return type of CompatibleWith.
Rule is used to establish the relationship between labels and a key range.